- bunch of spec tweaks, cleanups + corrections:

- shorten rpm-build filelist a bit with glob use, reorder for saner grouping
  - missing isa in popt version dependency
  - only add rpmdb_foo symlinks for actually relevant db_* utils
  - drop no longer necessary file-devel dependency from rpm-devel
  - drop sqlite backend build-conditional
  - preliminaries for moving from db4 to libdb
- use gnupg2 for signing as that's more likely to be installed by default
This commit is contained in:
Panu Matilainen 2011-01-18 13:54:19 +02:00
parent 981d8818d4
commit c458285035
2 changed files with 45 additions and 51 deletions

12
rpm-4.8.1-use-gpg2.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up rpm-4.8.1/macros.in.gpg2 rpm-4.8.1/macros.in
--- rpm-4.8.0/macros.in.gpg2 2011-01-17 12:17:38.000000000 +0200
+++ rpm-4.8.0/macros.in 2011-01-17 12:17:59.000000000 +0200
@@ -40,7 +40,7 @@
%__cp @__CP@
%__cpio @__CPIO@
%__file @__FILE@
-%__gpg @__GPG@
+%__gpg %{_bindir}/gpg2
%__grep @__GREP@
%__gzip @__GZIP@
%__id @__ID@

View File

@ -1,7 +1,5 @@
# build against xz? # build against xz?
%bcond_without xz %bcond_without xz
# sqlite backend is pretty useless
%bcond_with sqlite
# just for giggles, option to build with internal Berkeley DB # just for giggles, option to build with internal Berkeley DB
%bcond_with int_bdb %bcond_with int_bdb
# run internal testsuite? # run internal testsuite?
@ -15,13 +13,14 @@
%define snapver %{nil} %define snapver %{nil}
%define srcver %{rpmver} %define srcver %{rpmver}
%define bdbver 4.8.24 %define bdbname db4
%define bdbver 4.8.30
%define dbprefix db %define dbprefix db
Summary: The RPM package management system Summary: The RPM package management system
Name: rpm Name: rpm
Version: %{rpmver} Version: %{rpmver}
Release: 6%{?dist} Release: 7%{?dist}
Group: System Environment/Base Group: System Environment/Base
Url: http://www.rpm.org/ Url: http://www.rpm.org/
Source0: http://rpm.org/releases/rpm-4.8.x/%{name}-%{srcver}.tar.bz2 Source0: http://rpm.org/releases/rpm-4.8.x/%{name}-%{srcver}.tar.bz2
@ -39,6 +38,8 @@ Patch3: rpm-4.7.90-fedora-specspo.patch
Patch4: rpm-4.8.0-psdriver-deps.patch Patch4: rpm-4.8.0-psdriver-deps.patch
# In current Fedora, man-pages pkg owns all the localized man directories # In current Fedora, man-pages pkg owns all the localized man directories
Patch5: rpm-4.8.0-no-man-dirs.patch Patch5: rpm-4.8.0-no-man-dirs.patch
# gnupg2 comes installed by default, avoid need to drag in gnupg too
Patch6: rpm-4.8.1-use-gpg2.patch
# Patches already in upstream # Patches already in upstream
Patch200: rpm-4.8.0-pythondeps-parallel.patch Patch200: rpm-4.8.0-pythondeps-parallel.patch
@ -60,13 +61,13 @@ License: GPLv2+
Requires: coreutils Requires: coreutils
%if %{without int_bdb} %if %{without int_bdb}
# db recovery tools, rpmdb_util symlinks # db recovery tools, rpmdb_util symlinks
Requires: db4-utils Requires: %{bdbname}-utils
%endif %endif
Requires: popt >= 1.10.2.1 Requires: popt%{_isa} >= 1.10.2.1
Requires: curl Requires: curl
%if %{without int_bdb} %if %{without int_bdb}
BuildRequires: db4-devel%{_isa} BuildRequires: %{bdbname}-devel%{_isa}
%endif %endif
%if %{with check} %if %{with check}
@ -95,9 +96,6 @@ BuildRequires: libacl-devel%{_isa}
%if ! %{without xz} %if ! %{without xz}
BuildRequires: xz-devel%{_isa} >= 4.999.8 BuildRequires: xz-devel%{_isa} >= 4.999.8
%endif %endif
%if %{with sqlite}
BuildRequires: sqlite-devel%{_isa}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -126,7 +124,6 @@ Group: Development/Libraries
License: GPLv2+ and LGPLv2+ with exceptions License: GPLv2+ and LGPLv2+ with exceptions
Requires: rpm = %{version}-%{release} Requires: rpm = %{version}-%{release}
Requires: popt-devel%{_isa} Requires: popt-devel%{_isa}
Requires: file-devel%{_isa}
%description devel %description devel
This package contains the RPM C library and header files. These This package contains the RPM C library and header files. These
@ -194,6 +191,7 @@ packages on a system.
%patch3 -p1 -b .fedora-specspo %patch3 -p1 -b .fedora-specspo
%patch4 -p1 -b .psdriver-deps %patch4 -p1 -b .psdriver-deps
%patch5 -p1 -b .no-man-dirs %patch5 -p1 -b .no-man-dirs
%patch6 -p1 -b .use-gpg2
%patch200 -p1 -b .pythondeps-parallel %patch200 -p1 -b .pythondeps-parallel
%patch201 -p1 -b .python-bytecompile %patch201 -p1 -b .python-bytecompile
@ -228,7 +226,6 @@ export CPPFLAGS CFLAGS LDFLAGS
--sharedstatedir=%{_var}/lib \ --sharedstatedir=%{_var}/lib \
--libdir=%{_libdir} \ --libdir=%{_libdir} \
%{!?with_int_bdb: --with-external-db} \ %{!?with_int_bdb: --with-external-db} \
%{?with_sqlite: --enable-sqlite3} \
--with-lua \ --with-lua \
--with-selinux \ --with-selinux \
--with-cap \ --with-cap \
@ -262,11 +259,9 @@ do
touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi
done done
# plant links to db utils as rpmdb_foo so existing documantion is usable # plant links to relevant db utils as rpmdb_foo for documention compatibility
%if %{without int_bdb} %if %{without int_bdb}
for dbutil in \ for dbutil in dump load recover stat upgrade verify
archive deadlock dump load printlog \
recover stat upgrade verify
do do
ln -s ../../bin/%{dbprefix}_${dbutil} $RPM_BUILD_ROOT/%{rpmhome}/rpmdb_${dbutil} ln -s ../../bin/%{dbprefix}_${dbutil} $RPM_BUILD_ROOT/%{rpmhome}/rpmdb_${dbutil}
done done
@ -353,47 +348,24 @@ exit 0
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/rpmbuild %{_bindir}/rpmbuild
%{_bindir}/gendiff %{_bindir}/gendiff
%{_mandir}/man1/gendiff.1* %{_mandir}/man1/gendiff.1*
%{_mandir}/man8/rpmbuild.8*
%{_mandir}/man8/rpmdeps.8*
%{rpmhome}/brp-* %{rpmhome}/brp-*
%{rpmhome}/check-buildroot %{rpmhome}/check-*
%{rpmhome}/check-files
%{rpmhome}/check-prereqs
%{rpmhome}/check-rpaths*
%{rpmhome}/debugedit %{rpmhome}/debugedit
%{rpmhome}/find-debuginfo.sh %{rpmhome}/find-debuginfo.sh
%{rpmhome}/find-lang.sh %{rpmhome}/find-lang.sh
%{rpmhome}/find-provides %{rpmhome}/*provides*
%{rpmhome}/find-requires %{rpmhome}/*requires*
%{rpmhome}/javadeps %{rpmhome}/*deps*
%{rpmhome}/mono-find-provides %{rpmhome}/*.prov
%{rpmhome}/mono-find-requires %{rpmhome}/*.req
%{rpmhome}/ocaml-find-provides.sh %{rpmhome}/config.*
%{rpmhome}/ocaml-find-requires.sh
%{rpmhome}/osgideps.pl
%{rpmhome}/perldeps.pl
%{rpmhome}/libtooldeps.sh
%{rpmhome}/pkgconfigdeps.sh
%{rpmhome}/perl.prov
%{rpmhome}/perl.req
%{rpmhome}/tcl.req
%{rpmhome}/pythondeps.sh
%{rpmhome}/rpmdeps
%{rpmhome}/config.guess
%{rpmhome}/config.sub
%{rpmhome}/mkinstalldirs %{rpmhome}/mkinstalldirs
%{rpmhome}/rpmdiff* %{rpmhome}/rpmdiff*
%{rpmhome}/desktop-file.prov %{rpmhome}/macros.*
%{rpmhome}/fontconfig.prov
%{rpmhome}/postscriptdriver.prov
%{rpmhome}/macros.perl
%{rpmhome}/macros.python
%{rpmhome}/macros.php
%{_mandir}/man8/rpmbuild.8*
%{_mandir}/man8/rpmdeps.8*
%files python %files python
%defattr(-,root,root) %defattr(-,root,root)
@ -401,11 +373,11 @@ exit 0
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/rpm
%{_libdir}/librp*[a-z].so
%{_mandir}/man8/rpmgraph.8* %{_mandir}/man8/rpmgraph.8*
%{_bindir}/rpmgraph %{_bindir}/rpmgraph
%{_libdir}/librp*[a-z].so
%{_libdir}/pkgconfig/rpm.pc %{_libdir}/pkgconfig/rpm.pc
%{_includedir}/rpm
%files cron %files cron
%defattr(-,root,root) %defattr(-,root,root)
@ -417,6 +389,16 @@ exit 0
%doc COPYING doc/librpm/html/* %doc COPYING doc/librpm/html/*
%changelog %changelog
* Thu Jan 13 2011 Panu Matilainen <pmatilai@redhat.com> - 4.8.1-7
- bunch of spec tweaks, cleanups + corrections:
- shorten rpm-build filelist a bit with glob use, reorder for saner grouping
- missing isa in popt version dependency
- only add rpmdb_foo symlinks for actually relevant db_* utils
- drop no longer necessary file-devel dependency from rpm-devel
- drop sqlite backend build-conditional
- preliminaries for moving from db4 to libdb
- use gnupg2 for signing as that's more likely to be installed by default
* Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> - 4.8.1-6 * Mon Oct 25 2010 Jindrich Novy <jnovy@redhat.com> - 4.8.1-6
- rebuild with new xz-5.0.0 - rebuild with new xz-5.0.0