Massive spec cleanup/rework preparing for merge review:
- split apidocs to separate package (they're huge) - use system macros for bindir etc instead of defining our own - remove NPTL-related LD_ASSUME_KERNEL stuff, no longer functional anyway - remove various hacks that are no longer needed - ensure correct permissions of debug sources - follow fedora guidelines for user/group manipulation - clean up any non-matching bdb environment on post, not just 4.3 - visual cleanup of spec
This commit is contained in:
parent
6419a41ab6
commit
f780b84693
358
rpm.spec
358
rpm.spec
@ -1,23 +1,15 @@
|
|||||||
%define with_python_version 2.5%{nil}
|
%define with_python_version 2.5%{nil}
|
||||||
%define with_apidocs 1%{nil}
|
%define with_apidocs 1%{nil}
|
||||||
|
|
||||||
%define __prefix %{?_prefix}%{!?_prefix:/usr}
|
%define rpmhome /usr/lib/rpm
|
||||||
%{?!_lib: %define _lib lib}
|
|
||||||
%{expand: %%define __share %(if [ -d %{__prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
|
|
||||||
|
|
||||||
%define __bindir %{__prefix}/bin
|
|
||||||
%define __includedir %{__prefix}/include
|
|
||||||
%define __libdir %{__prefix}/%{_lib}
|
|
||||||
%define __mandir %{__prefix}%{__share}/man
|
|
||||||
|
|
||||||
Summary: The RPM package management system
|
Summary: The RPM package management system
|
||||||
Name: rpm
|
Name: rpm
|
||||||
Version: 4.4.2.1
|
Version: 4.4.2.1
|
||||||
%{expand: %%define rpm_version %{version}}
|
Release: 10%{?dist}
|
||||||
Release: 9%{?dist}
|
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: http://www.rpm.org/
|
Url: http://www.rpm.org/
|
||||||
Source: rpm-%{rpm_version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
Patch1: rpm-4.4.1-prereq.patch
|
Patch1: rpm-4.4.1-prereq.patch
|
||||||
Patch2: rpm-4.4.2-ghost-conflicts.patch
|
Patch2: rpm-4.4.2-ghost-conflicts.patch
|
||||||
Patch3: rpm-4.4.2-trust.patch
|
Patch3: rpm-4.4.2-trust.patch
|
||||||
@ -47,7 +39,6 @@ Patch22: rpm-4.4.2.1-no-popt.patch
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(postun): shadow-utils
|
|
||||||
Requires(post): coreutils
|
Requires(post): coreutils
|
||||||
Requires: popt >= 1.10.2.1
|
Requires: popt >= 1.10.2.1
|
||||||
Requires: crontabs
|
Requires: crontabs
|
||||||
@ -58,6 +49,9 @@ Source2: find-debuginfo.sh
|
|||||||
|
|
||||||
# XXX for autoreconf due to popt removal
|
# XXX for autoreconf due to popt removal
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
|
# XXX generally assumed to be installed but make it explicit as rpm
|
||||||
|
# is a bit special...
|
||||||
|
BuildRequires: redhat-rpm-config
|
||||||
BuildRequires: gawk
|
BuildRequires: gawk
|
||||||
BuildRequires: elfutils-devel >= 0.112
|
BuildRequires: elfutils-devel >= 0.112
|
||||||
BuildRequires: elfutils-libelf-devel-static
|
BuildRequires: elfutils-libelf-devel-static
|
||||||
@ -72,7 +66,6 @@ BuildRequires: libselinux-devel
|
|||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: bzip2-devel >= 0.9.0c-2
|
BuildRequires: bzip2-devel >= 0.9.0c-2
|
||||||
BuildRequires: python-devel >= %{with_python_version}
|
BuildRequires: python-devel >= %{with_python_version}
|
||||||
BuildRequires: doxygen
|
|
||||||
|
|
||||||
BuildConflicts: neon-devel
|
BuildConflicts: neon-devel
|
||||||
|
|
||||||
@ -100,7 +93,7 @@ Summary: Development files for manipulating RPM packages
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPLv2+ and LGPLv2+ with exceptions
|
License: GPLv2+ and LGPLv2+ with exceptions
|
||||||
Requires: rpm = %{version}-%{release}
|
Requires: rpm = %{version}-%{release}
|
||||||
Requires: beecrypt >= 4.1.2
|
Requires: beecrypt-devel >= 4.1.2
|
||||||
Requires: sqlite-devel
|
Requires: sqlite-devel
|
||||||
Requires: libselinux-devel
|
Requires: libselinux-devel
|
||||||
Requires: elfutils-libelf-devel
|
Requires: elfutils-libelf-devel
|
||||||
@ -122,7 +115,6 @@ Group: Development/Tools
|
|||||||
Requires: rpm = %{version}-%{release}, patch >= 2.5, file
|
Requires: rpm = %{version}-%{release}, patch >= 2.5, file
|
||||||
Requires: elfutils >= 0.128
|
Requires: elfutils >= 0.128
|
||||||
Requires: findutils
|
Requires: findutils
|
||||||
Provides: rpmbuild(VendorConfig) = 4.1-1
|
|
||||||
|
|
||||||
%description build
|
%description build
|
||||||
The rpm-build package contains the scripts and executable programs
|
The rpm-build package contains the scripts and executable programs
|
||||||
@ -141,8 +133,19 @@ supplied by RPM Package Manager libraries.
|
|||||||
This package should be installed if you want to develop Python
|
This package should be installed if you want to develop Python
|
||||||
programs that will manipulate RPM packages and databases.
|
programs that will manipulate RPM packages and databases.
|
||||||
|
|
||||||
|
%if %{with_apidocs}
|
||||||
|
%package apidocs
|
||||||
|
Summary: API documentation for RPM libraries
|
||||||
|
Group: Documentation
|
||||||
|
BuildRequires: doxygen
|
||||||
|
|
||||||
|
%description apidocs
|
||||||
|
This package contains API documentation for developing applications
|
||||||
|
that will manipulate RPM packages and databases.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{rpm_version}
|
%setup -q
|
||||||
%patch1 -p1 -b .prereq
|
%patch1 -p1 -b .prereq
|
||||||
%patch2 -p1 -b .ghostconflicts
|
%patch2 -p1 -b .ghostconflicts
|
||||||
%patch3 -p1 -b .trust
|
%patch3 -p1 -b .trust
|
||||||
@ -181,63 +184,50 @@ for i in doc/{sk,pl}/*.[1-8]; do
|
|||||||
mv -f ${i}.tmp ${i}
|
mv -f ${i}.tmp ${i}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# ensure sane source permissions
|
||||||
|
find -name "*.[ch]"|xargs chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
# XXX rpm needs functioning nptl for configure tests
|
|
||||||
unset LD_ASSUME_KERNEL || :
|
|
||||||
|
|
||||||
WITH_PYTHON="--with-python=%{with_python_version}"
|
|
||||||
|
|
||||||
# XXX pull in updated config.guess and config.sub as done by %configure
|
# XXX pull in updated config.guess and config.sub as done by %configure
|
||||||
# which cannot be used to build rpm itself due to makefile brokenness
|
# which cannot be used to build rpm itself due to makefile brokenness
|
||||||
for i in $(find . -name config.guess -o -name config.sub) ; do
|
for i in $(find . -name config.guess -o -name config.sub) ; do
|
||||||
[ -f /usr/lib/rpm/redhat/$(basename $i) ] && %{__rm} -f $i && %{__cp} -fv /usr/lib/rpm/redhat/$(basename $i) $i
|
[ -f /usr/lib/rpm/redhat/$(basename $i) ] && %{__rm} -f $i && %{__cp} -fv /usr/lib/rpm/redhat/$(basename $i) $i
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# XXX rpm 4.4.2.1 can't be built with %configure due to makefile brokenness
|
||||||
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
|
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
|
||||||
./configure --prefix=%{__prefix} --sysconfdir=/etc \
|
./configure --prefix=%{_usr} \
|
||||||
--localstatedir=/var --infodir='${prefix}%{__share}/info' \
|
--sysconfdir=%{_sysconfdir} \
|
||||||
--mandir='${prefix}%{__share}/man' \
|
--localstatedir=%{_var} \
|
||||||
$WITH_PYTHON --enable-posixmutexes --without-javaglue
|
--infodir=%{_infodir} \
|
||||||
|
--mandir=%{_mandir} \
|
||||||
|
--with-python=%{with_python_version} \
|
||||||
|
--enable-posixmutexes
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# XXX rpm needs functioning nptl for configure tests
|
|
||||||
unset LD_ASSUME_KERNEL || :
|
|
||||||
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
make DESTDIR="$RPM_BUILD_ROOT" install
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
||||||
|
|
||||||
# Working around breakage from the -L$(RPM_BUILD_ROOT)... -L$(DESTDIR)...
|
|
||||||
# workaround to #132435,
|
|
||||||
# and from linking to included zlib
|
|
||||||
for i in librpm.la librpmbuild.la librpmdb.la librpmio.la ; do
|
|
||||||
sed -i -e 's~-L'"$RPM_BUILD_ROOT"'[^ ]* ~~g' \
|
|
||||||
-e 's~-L'"$RPM_BUILD_DIR"'[^ ]* ~~g' \
|
|
||||||
"$RPM_BUILD_ROOT%{__libdir}/$i"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Clean up dangling symlinks
|
# Clean up dangling symlinks
|
||||||
# XXX Fix in rpm tree
|
for i in rpme rpmi rpmu; do
|
||||||
for i in /usr/bin/rpme /usr/bin/rpmi /usr/bin/rpmu; do
|
rm -f $RPM_BUILD_ROOT%{_bindir}/$i
|
||||||
rm -f "$RPM_BUILD_ROOT"/"$i"
|
|
||||||
done
|
done
|
||||||
|
for i in rpmpopt rpmrc; do
|
||||||
# Clean up dangling symlinks
|
rm -f $RPM_BUILD_ROOT/usr/lib/$i
|
||||||
for i in /usr/lib/rpmpopt /usr/lib/rpmrc; do
|
|
||||||
rm -f "$RPM_BUILD_ROOT"/"$i"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Save list of packages through cron
|
# Save list of packages through cron
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/etc/cron.daily
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily
|
||||||
install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}/etc/cron.daily/rpm
|
install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm
|
||||||
|
|
||||||
mkdir -p ${RPM_BUILD_ROOT}/etc/logrotate.d
|
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
||||||
install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}/etc/logrotate.d/rpm
|
install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rpm
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/spool/repackage
|
mkdir -p $RPM_BUILD_ROOT/var/spool/repackage
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
|
mkdir -p $RPM_BUILD_ROOT/var/lib/rpm
|
||||||
@ -261,214 +251,208 @@ cp -p lua/COPYRIGHT COPYRIGHT-lua
|
|||||||
# Get rid of unpackaged files
|
# Get rid of unpackaged files
|
||||||
{ cd $RPM_BUILD_ROOT
|
{ cd $RPM_BUILD_ROOT
|
||||||
rm -f .%{_libdir}/lib*.la
|
rm -f .%{_libdir}/lib*.la
|
||||||
rm -f .%{__prefix}/lib/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req,rpm.*}
|
rm -f .%{rpmhome}/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req,rpm.*}
|
||||||
rm -rf .%{__mandir}/{fr,ko}
|
rm -rf .%{_mandir}/{fr,ko}
|
||||||
rm -f .%{__libdir}/python%{with_python_version}/site-packages/*.{a,la}
|
rm -f .%{_libdir}/python%{with_python_version}/site-packages/*.{a,la}
|
||||||
rm -f .%{__libdir}/python%{with_python_version}/site-packages/rpm/*.{a,la}
|
rm -f .%{_libdir}/python%{with_python_version}/site-packages/rpm/*.{a,la}
|
||||||
rm -f .%{__libdir}/python%{with_python_version}/site-packages/rpmdb/*.{a,la}
|
rm -f .%{_libdir}/python%{with_python_version}/site-packages/rpmdb/*.{a,la}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
find $RPM_BUILD_ROOT/%{_libdir}/python%{with_python_version} -name "*.py"|xargs chmod 644
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd -g 37 rpm > /dev/null 2>&1
|
getent group rpm > /dev/null || groupadd -g 37 rpm
|
||||||
/usr/sbin/useradd -r -d /var/lib/rpm -u 37 -g 37 rpm -s /sbin/nologin > /dev/null 2>&1
|
getent passwd rpm > /dev/null || \
|
||||||
|
/usr/sbin/useradd -r -d /var/lib/rpm -u 37 -g 37 -s /sbin/nologin \
|
||||||
|
-c "RPM user" rpm > /dev/null 2>&1
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Establish correct rpmdb ownership.
|
# XXX Detect (and remove) incompatible dbenv files during upgrade.
|
||||||
/bin/chown rpm.rpm /var/lib/rpm/[A-Z]*
|
|
||||||
|
|
||||||
# XXX Detect (and remove) incompatible dbenv files during db-4.3.14 upgrade.
|
|
||||||
# XXX Removing dbenv files in %%post opens a lock race window, a tolerable
|
# XXX Removing dbenv files in %%post opens a lock race window, a tolerable
|
||||||
# XXX risk compared to the support issues involved with upgrading Berkeley DB.
|
# XXX risk compared to the support issues involved with upgrading Berkeley DB.
|
||||||
[ -w /var/lib/rpm/__db.001 ] &&
|
[ -w /var/lib/rpm/__db.001 ] &&
|
||||||
/usr/lib/rpm/rpmdb_stat -CA -h /var/lib/rpm 2>&1 |
|
/usr/lib/rpm/rpmdb_stat -CA -h /var/lib/rpm 2>&1 |
|
||||||
grep "db_stat: Program version 4.3 doesn't match environment version" 2>&1 > /dev/null &&
|
grep "db_stat: Program version ... doesn't match environment version" 2>&1 > /dev/null &&
|
||||||
rm -f /var/lib/rpm/__db*
|
rm -f /var/lib/rpm/__db*
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
/usr/sbin/userdel rpm > /dev/null 2>&1
|
|
||||||
/usr/sbin/groupdel rpm > /dev/null 2>&1
|
|
||||||
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
%post devel -p /sbin/ldconfig
|
|
||||||
%postun devel -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%define rpmattr %attr(0755, rpm, rpm)
|
%define rpmattr %attr(0755, rpm, rpm)
|
||||||
|
%define rpmdbattr %attr(0644, rpm, rpm) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES GROUPS COPYING LICENSE-bdb LEGAL.NOTICE-file CREDITS ChangeLog
|
%doc CHANGES GROUPS COPYING LICENSE-bdb LEGAL.NOTICE-file CREDITS ChangeLog
|
||||||
%doc COPYRIGHT-lua doc/manual/[a-z]*
|
%doc COPYRIGHT-lua doc/manual/[a-z]*
|
||||||
%attr(0755, rpm, rpm) /bin/rpm
|
|
||||||
|
|
||||||
/etc/cron.daily/rpm
|
%{_sysconfdir}/cron.daily/rpm
|
||||||
%config(noreplace,missingok) /etc/logrotate.d/rpm
|
%config(noreplace,missingok) %{_sysconfdir}/logrotate.d/rpm
|
||||||
%dir /etc/rpm
|
%dir %{_sysconfdir}/rpm
|
||||||
#%config(noreplace,missingok) /etc/rpm/macros.*
|
# XXX teach rpm to skip .rpmnew etc first...
|
||||||
|
#%ghost %config(noreplace,missingok) %{_sysconfdir}/rpm/platform
|
||||||
|
#%ghost %config(noreplace,missingok) %{_sysconfdir}/rpm/macros.tscolor
|
||||||
|
|
||||||
%attr(0755, rpm, rpm) %dir /var/lib/rpm
|
%attr(0755, rpm, rpm) %dir /var/lib/rpm
|
||||||
%attr(0755, rpm, rpm) %dir /var/spool/repackage
|
%rpmdbattr /var/lib/rpm/*
|
||||||
|
%attr(0755, rpm, rpm) %dir /var/spool/repackage
|
||||||
|
%attr(0755, rpm, rpm) %dir %{rpmhome}
|
||||||
|
|
||||||
%define rpmdbattr %attr(0644, rpm, rpm) %verify(not md5 size mtime) %ghost %config(missingok,noreplace)
|
%{rpmattr} /bin/rpm
|
||||||
%rpmdbattr /var/lib/rpm/*
|
%{rpmattr} %{_bindir}/rpm2cpio
|
||||||
|
%{rpmattr} %{_bindir}/gendiff
|
||||||
|
%{rpmattr} %{_bindir}/rpmdb
|
||||||
|
%{rpmattr} %{_bindir}/rpmsign
|
||||||
|
%{rpmattr} %{_bindir}/rpmquery
|
||||||
|
%{rpmattr} %{_bindir}/rpmverify
|
||||||
|
|
||||||
%rpmattr %{__bindir}/rpm2cpio
|
%{rpmattr} %{rpmhome}/config.guess
|
||||||
%rpmattr %{__bindir}/gendiff
|
%{rpmattr} %{rpmhome}/config.sub
|
||||||
%rpmattr %{__bindir}/rpmdb
|
%{rpmattr} %{rpmhome}/convertrpmrc.sh
|
||||||
#%rpmattr %{__bindir}/rpm[eiu]
|
%{rpmattr} %{rpmhome}/freshen.sh
|
||||||
%rpmattr %{__bindir}/rpmsign
|
%{rpmattr} %{rpmhome}/mkinstalldirs
|
||||||
%rpmattr %{__bindir}/rpmquery
|
%{rpmattr} %{rpmhome}/rpm2cpio.sh
|
||||||
%rpmattr %{__bindir}/rpmverify
|
%{rpmattr} %{rpmhome}/rpm[deiukqv]
|
||||||
|
%{rpmattr} %{rpmhome}/tgpg
|
||||||
|
%{rpmattr} %{rpmhome}/rpmdb_*
|
||||||
|
%{rpmattr} %{rpmhome}/rpmfile
|
||||||
|
|
||||||
%attr(0755, rpm, rpm) %dir %{__prefix}/lib/rpm
|
%attr(0644, rpm, rpm) %{rpmhome}/macros
|
||||||
%rpmattr %{__prefix}/lib/rpm/config.guess
|
%attr(0644, rpm, rpm) %{rpmhome}/rpmpopt*
|
||||||
%rpmattr %{__prefix}/lib/rpm/config.sub
|
%attr(0644, rpm, rpm) %{rpmhome}/rpmrc
|
||||||
%rpmattr %{__prefix}/lib/rpm/convertrpmrc.sh
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/freshen.sh
|
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/macros
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/mkinstalldirs
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpm2cpio.sh
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpm[deiukqv]
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/tgpg
|
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/rpmpopt*
|
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/rpmrc
|
|
||||||
|
|
||||||
%ifarch i386 i486 i586 i686 athlon pentium3 pentium4
|
%ifarch i386 i486 i586 i686 athlon pentium3 pentium4
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/i[3456]86*
|
%attr(-, rpm, rpm) %{rpmhome}/i[3456]86*
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/athlon*
|
%attr(-, rpm, rpm) %{rpmhome}/athlon*
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/pentium*
|
%attr(-, rpm, rpm) %{rpmhome}/pentium*
|
||||||
%endif
|
%endif
|
||||||
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
|
%ifarch alpha alphaev5 alphaev56 alphapca56 alphaev6 alphaev67
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/alpha*
|
%attr(-, rpm, rpm) %{rpmhome}/alpha*
|
||||||
%endif
|
%endif
|
||||||
%ifarch sparc sparcv8 sparcv9 sparc64
|
%ifarch sparc sparcv8 sparcv9 sparc64
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/sparc*
|
%attr(-, rpm, rpm) %{rpmhome}/sparc*
|
||||||
%endif
|
%endif
|
||||||
%ifarch ia64
|
%ifarch ia64
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/ia64*
|
%attr(-, rpm, rpm) %{rpmhome}/ia64*
|
||||||
%endif
|
%endif
|
||||||
%ifarch powerpc ppc ppciseries ppcpseries ppcmac ppc64
|
%ifarch powerpc ppc ppciseries ppcpseries ppcmac ppc64
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/ppc*
|
%attr(-, rpm, rpm) %{rpmhome}/ppc*
|
||||||
%endif
|
%endif
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/s390*
|
%attr(-, rpm, rpm) %{rpmhome}/s390*
|
||||||
%endif
|
%endif
|
||||||
%ifarch %{arm}
|
%ifarch %{arm}
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/arm*
|
%attr(-, rpm, rpm) %{rpmhome}/arm*
|
||||||
%endif
|
%endif
|
||||||
%ifarch mips mipsel
|
%ifarch mips mipsel
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/mips*
|
%attr(-, rpm, rpm) %{rpmhome}/mips*
|
||||||
%endif
|
%endif
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/x86_64*
|
%attr(-, rpm, rpm) %{rpmhome}/x86_64*
|
||||||
%endif
|
%endif
|
||||||
%attr(-, rpm, rpm) %{__prefix}/lib/rpm/noarch*
|
%attr(-, rpm, rpm) %{rpmhome}/noarch*
|
||||||
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpmdb_*
|
%{_mandir}/man1/gendiff.1*
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpmfile
|
%{_mandir}/man8/rpm.8*
|
||||||
|
%{_mandir}/man8/rpm2cpio.8*
|
||||||
|
|
||||||
%{__mandir}/man1/gendiff.1*
|
# XXX this places translated manuals to wrong package wrt eg rpmbuild
|
||||||
%{__mandir}/man8/rpm.8*
|
%lang(ja) %{_mandir}/ja/man[18]/*.[18]*
|
||||||
%{__mandir}/man8/rpm2cpio.8*
|
%lang(pl) %{_mandir}/pl/man[18]/*.[18]*
|
||||||
%lang(ja) %{__mandir}/ja/man[18]/*.[18]*
|
%lang(ru) %{_mandir}/ru/man[18]/*.[18]*
|
||||||
%lang(pl) %{__mandir}/pl/man[18]/*.[18]*
|
%lang(sk) %{_mandir}/sk/man[18]/*.[18]*
|
||||||
%lang(ru) %{__mandir}/ru/man[18]/*.[18]*
|
|
||||||
%lang(sk) %{__mandir}/sk/man[18]/*.[18]*
|
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{__libdir}/librpm-4.4.so
|
%{_libdir}/librpm-4.4.so
|
||||||
%{__libdir}/librpmdb-4.4.so
|
%{_libdir}/librpmdb-4.4.so
|
||||||
%{__libdir}/librpmio-4.4.so
|
%{_libdir}/librpmio-4.4.so
|
||||||
%{__libdir}/librpmbuild-4.4.so
|
%{_libdir}/librpmbuild-4.4.so
|
||||||
|
|
||||||
%files build
|
%files build
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{__prefix}/src/redhat
|
%{_usrsrc}/redhat
|
||||||
%dir %{__prefix}/src/redhat/BUILD
|
%{rpmattr} %{_bindir}/rpmbuild
|
||||||
%dir %{__prefix}/src/redhat/SPECS
|
%{rpmattr} %{rpmhome}/brp-*
|
||||||
%dir %{__prefix}/src/redhat/SOURCES
|
%{rpmattr} %{rpmhome}/check-buildroot
|
||||||
%dir %{__prefix}/src/redhat/SRPMS
|
%{rpmattr} %{rpmhome}/check-files
|
||||||
%dir %{__prefix}/src/redhat/RPMS
|
%{rpmattr} %{rpmhome}/check-prereqs
|
||||||
%{__prefix}/src/redhat/RPMS/*
|
%{rpmattr} %{rpmhome}/check-rpaths*
|
||||||
%rpmattr %{__bindir}/rpmbuild
|
%{rpmattr} %{rpmhome}/cross-build
|
||||||
%rpmattr %{__prefix}/lib/rpm/brp-*
|
%{rpmattr} %{rpmhome}/debugedit
|
||||||
%rpmattr %{__prefix}/lib/rpm/check-buildroot
|
%{rpmattr} %{rpmhome}/find-debuginfo.sh
|
||||||
%rpmattr %{__prefix}/lib/rpm/check-files
|
%{rpmattr} %{rpmhome}/find-lang.sh
|
||||||
%rpmattr %{__prefix}/lib/rpm/check-prereqs
|
%{rpmattr} %{rpmhome}/find-prov.pl
|
||||||
%rpmattr %{__prefix}/lib/rpm/check-rpaths*
|
%{rpmattr} %{rpmhome}/find-provides
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/config.site
|
%{rpmattr} %{rpmhome}/find-provides.perl
|
||||||
%rpmattr %{__prefix}/lib/rpm/cross-build
|
%{rpmattr} %{rpmhome}/find-req.pl
|
||||||
%rpmattr %{__prefix}/lib/rpm/debugedit
|
%{rpmattr} %{rpmhome}/find-requires
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-debuginfo.sh
|
%{rpmattr} %{rpmhome}/find-requires.perl
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-lang.sh
|
%{rpmattr} %{rpmhome}/get_magic.pl
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-prov.pl
|
%{rpmattr} %{rpmhome}/getpo.sh
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-provides
|
%{rpmattr} %{rpmhome}/http.req
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-provides.perl
|
%{rpmattr} %{rpmhome}/javadeps
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-req.pl
|
%{rpmattr} %{rpmhome}/magic.prov
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-requires
|
%{rpmattr} %{rpmhome}/magic.req
|
||||||
%rpmattr %{__prefix}/lib/rpm/find-requires.perl
|
%{rpmattr} %{rpmhome}/mono-find-provides
|
||||||
%rpmattr %{__prefix}/lib/rpm/get_magic.pl
|
%{rpmattr} %{rpmhome}/mono-find-requires
|
||||||
%rpmattr %{__prefix}/lib/rpm/getpo.sh
|
%{rpmattr} %{rpmhome}/perldeps.pl
|
||||||
%rpmattr %{__prefix}/lib/rpm/http.req
|
%{rpmattr} %{rpmhome}/perl.prov
|
||||||
%rpmattr %{__prefix}/lib/rpm/javadeps
|
%{rpmattr} %{rpmhome}/perl.req
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/magic
|
%{rpmattr} %{rpmhome}/pythondeps.sh
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/magic.mgc
|
%{rpmattr} %{rpmhome}/rpm[bt]
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/magic.mime
|
%{rpmattr} %{rpmhome}/rpmdeps
|
||||||
%attr(0644, rpm, rpm) %{__prefix}/lib/rpm/magic.mime.mgc
|
%{rpmattr} %{rpmhome}/trpm
|
||||||
%rpmattr %{__prefix}/lib/rpm/magic.prov
|
%{rpmattr} %{rpmhome}/u_pkg.sh
|
||||||
%rpmattr %{__prefix}/lib/rpm/magic.req
|
%{rpmattr} %{rpmhome}/vpkg-provides.sh
|
||||||
%rpmattr %{__prefix}/lib/rpm/mono-find-provides
|
%{rpmattr} %{rpmhome}/vpkg-provides2.sh
|
||||||
%rpmattr %{__prefix}/lib/rpm/mono-find-requires
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/perldeps.pl
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/perl.prov
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/perl.req
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/pythondeps.sh
|
|
||||||
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpm[bt]
|
%attr(0644, rpm, rpm) %{rpmhome}/config.site
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpmdeps
|
%attr(0644, rpm, rpm) %{rpmhome}/magic
|
||||||
%rpmattr %{__prefix}/lib/rpm/trpm
|
%attr(0644, rpm, rpm) %{rpmhome}/magic.mgc
|
||||||
%rpmattr %{__prefix}/lib/rpm/u_pkg.sh
|
%attr(0644, rpm, rpm) %{rpmhome}/magic.mime
|
||||||
%rpmattr %{__prefix}/lib/rpm/vpkg-provides.sh
|
%attr(0644, rpm, rpm) %{rpmhome}/magic.mime.mgc
|
||||||
%rpmattr %{__prefix}/lib/rpm/vpkg-provides2.sh
|
|
||||||
|
|
||||||
%{__mandir}/man8/rpmbuild.8*
|
%{_mandir}/man8/rpmbuild.8*
|
||||||
%{__mandir}/man8/rpmdeps.8*
|
%{_mandir}/man8/rpmdeps.8*
|
||||||
|
|
||||||
%files python
|
%files python
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{__libdir}/python%{with_python_version}/site-packages/rpm
|
%{_libdir}/python%{with_python_version}/site-packages/rpm
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/rpm
|
||||||
|
%{_libdir}/librpm*.so
|
||||||
|
%{_libdir}/librpm*.a
|
||||||
|
%{_mandir}/man8/rpmcache.8*
|
||||||
|
%{_mandir}/man8/rpmgraph.8*
|
||||||
|
%{rpmattr} %{rpmhome}/rpmcache
|
||||||
|
%{rpmattr} %{_bindir}/rpmgraph
|
||||||
|
|
||||||
%if %{with_apidocs}
|
%if %{with_apidocs}
|
||||||
|
%files apidocs
|
||||||
|
%defattr(-,root,root)
|
||||||
%doc apidocs
|
%doc apidocs
|
||||||
%endif
|
%endif
|
||||||
%{__includedir}/rpm
|
|
||||||
%{__libdir}/librpm.a
|
|
||||||
%{__libdir}/librpm.so
|
|
||||||
%{__libdir}/librpmdb.a
|
|
||||||
%{__libdir}/librpmdb.so
|
|
||||||
%{__libdir}/librpmio.a
|
|
||||||
%{__libdir}/librpmio.so
|
|
||||||
%{__libdir}/librpmbuild.a
|
|
||||||
%{__libdir}/librpmbuild.so
|
|
||||||
%{__mandir}/man8/rpmcache.8*
|
|
||||||
%{__mandir}/man8/rpmgraph.8*
|
|
||||||
%rpmattr %{__prefix}/lib/rpm/rpmcache
|
|
||||||
%rpmattr %{__bindir}/rpmgraph
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 24 2007 Panu Matilainen <pmatilai@redhat.com> 4.4.2.1-10
|
||||||
|
- split apidocs to separate package (they're huge)
|
||||||
|
- use system macros for bindir etc instead of defining our own
|
||||||
|
- remove NPTL-related LD_ASSUME_KERNEL stuff, no longer functional anyway
|
||||||
|
- remove various hacks that are no longer needed
|
||||||
|
- ensure correct permissions of debug sources
|
||||||
|
- follow fedora guidelines for user/group manipulation
|
||||||
|
- clean up any non-matching bdb environment on post, not just 4.3
|
||||||
|
- visual cleanup of spec
|
||||||
|
|
||||||
* Fri Aug 24 2007 Panu Matilainen <pmatilai@redhat.com>
|
* Fri Aug 24 2007 Panu Matilainen <pmatilai@redhat.com>
|
||||||
- include sys-specific macros for all ARM variants (Lennert Buytenhek)
|
- include sys-specific macros for all ARM variants (Lennert Buytenhek)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user