- update to 4.4.2.1-rc1

- patch shuffle, most have been merged upstream
- drop mono-scripts, it comes from upstream now
- popt isn't upgrading here so it needs its own release
- fix copy-paste error wrt double dependency on shadow-utils
This commit is contained in:
Panu Matilainen 2007-06-25 14:09:16 +00:00
parent cbee720768
commit c0e8155c3c

133
rpm.spec
View File

@ -12,62 +12,20 @@
Summary: The RPM package management system Summary: The RPM package management system
Name: rpm Name: rpm
Version: 4.4.2 Version: 4.4.2.1
%{expand: %%define rpm_version %{version}} %{expand: %%define rpm_version %{version}-rc1}
Release: 47%{?dist} Release: 0.1.rc1
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: rpm-%{rpm_version}.tar.gz
Source1: mono-find-provides Patch1: rpm-4.4.1-prereq.patch
Source2: mono-find-requires Patch2: rpm-4.4.2-ghost-conflicts.patch
Patch0: rpm-4.4.1-hkp-disable.patch Patch3: rpm-4.4.2-trust.patch
Patch1: rpm-4.4.1-fileconflicts.patch Patch4: rpm-4.4.2-devel-autodep.patch
Patch2: rpm-4.4.1-prereq.patch Patch5: rpm-4.4.2-rpmfc-skip.patch
Patch3: rpm-4.4.1-nonmerged.patch
Patch4: rpm-4.4.1-prepostun.patch
Patch5: rpm-4.4.1-ordererase.patch
Patch6: rpm-4.4.2-matchpathcon.patch Patch6: rpm-4.4.2-matchpathcon.patch
Patch7: rpm-4.4.2-perlreq.patch
Patch8: rpm-4.4.2-db3-param.patch
Patch9: rpm-4.4.2-contextverify.patch
Patch10: rpm-4.4.2-popt-charset.patch
Patch11: rpm-4.4.2-ghost-conflicts.patch
Patch12: rpm-4.4.2-exclude.patch
Patch13: rpm-4.4.2-excluded-size.patch
Patch14: rpm-4.4.2-cronpath.patch
Patch15: rpm-4.4.2-mono.patch
Patch16: rpm-4.4.2-file-softmagic.patch
Patch17: rpm-4.4.2-no-large-mmap.patch
Patch18: rpm-4.4.2-perlmainprov.patch
Patch19: rpm-4.4.2-rpmsq-deadlock.patch
Patch20: rpm-4.4.2-netsharedpath.patch
Patch21: rpm-4.4.2-userlock.patch
Patch22: rpm-4.4.2-vercmp.patch
Patch23: rpm-4.4.2-doxy.patch
Patch24: rpm-4.4.2-trust.patch
Patch25: rpm-4.4.2-devel-autodep.patch
Patch26: rpm-4.4.2-rpmfc-skip.patch
Patch27: rpm-4.4.2-noselinux-verify.patch
Patch28: rpm-4.4.2-python-aslist.patch
Patch29: rpm-4.4.2-rpmio-ipv6.patch
Patch30: rpm-4.4.2-gnuhash.patch
Patch31: rpm-4.4.2-debugedit-ppc-reloc.patch
Patch32: rpm-4.4.2-debugpaths.patch
Patch33: rpm-4.4.2-transaction-order.patch
Patch34: rpm-4.4.2-debugopt.patch
Patch35: rpm-4.4.2-query-flushbuffer.patch
Patch36: rpm-4.4.2-unicodekey.patch
Patch37: rpm-4.4.2-noneon.patch
Patch38: rpm-4.4.2-debugedit-canonicalize-path.patch
Patch39: rpm-4.4.2-no-ppc-asm.patch
Patch40: rpm-4.4.2-forkfailed.patch
Patch41: rpm-4.4.2-cdiff.patch
Patch42: rpm-4.4.2-docflags.patch
Patch43: rpm-debugedit-incremental-fix.patch
Patch44: rpm-4.4.2-prefer-elf32.patch
License: GPL License: GPL
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(pre): shadow-utils
Requires(postun): shadow-utils Requires(postun): shadow-utils
Requires(post): coreutils Requires(post): coreutils
Requires: popt = 1.10.2 Requires: popt = 1.10.2
@ -103,7 +61,7 @@ the package like its version, a description, etc.
%package libs %package libs
Summary: Libraries for manipulating RPM packages Summary: Libraries for manipulating RPM packages
Group: Development/Libraries Group: Development/Libraries
Requires: rpm = %{rpm_version}-%{release} Requires: rpm = %{version}-%{release}
%description libs %description libs
This package contains the RPM shared libraries. This package contains the RPM shared libraries.
@ -111,7 +69,7 @@ This package contains the RPM shared libraries.
%package devel %package devel
Summary: Development files for manipulating RPM packages Summary: Development files for manipulating RPM packages
Group: Development/Libraries Group: Development/Libraries
Requires: rpm = %{rpm_version}-%{release} Requires: rpm = %{version}-%{release}
Requires: beecrypt >= 4.1.2 Requires: beecrypt >= 4.1.2
Requires: sqlite-devel Requires: sqlite-devel
Requires: libselinux-devel Requires: libselinux-devel
@ -131,7 +89,7 @@ will manipulate RPM packages and databases.
%package build %package build
Summary: Scripts and executable programs used to build packages Summary: Scripts and executable programs used to build packages
Group: Development/Tools Group: Development/Tools
Requires: rpm = %{rpm_version}-%{release}, patch >= 2.5, file, elfutils Requires: rpm = %{version}-%{release}, patch >= 2.5, file, elfutils
Requires: findutils Requires: findutils
Provides: rpmbuild(VendorConfig) = 4.1-1 Provides: rpmbuild(VendorConfig) = 4.1-1
@ -142,7 +100,7 @@ that are used to build packages using the RPM Package Manager.
%package python %package python
Summary: Python bindings for apps which will manipulate RPM packages Summary: Python bindings for apps which will manipulate RPM packages
Group: Development/Libraries Group: Development/Libraries
Requires: rpm = %{rpm_version}-%{release} Requires: rpm = %{version}-%{release}
%description python %description python
The rpm-python package contains a module that permits applications The rpm-python package contains a module that permits applications
@ -156,6 +114,7 @@ programs that will manipulate RPM packages and databases.
Summary: A C library for parsing command line parameters Summary: A C library for parsing command line parameters
Group: Development/Libraries Group: Development/Libraries
Version: 1.10.2 Version: 1.10.2
Release: 47%{?dist}
%description -n popt %description -n popt
Popt is a C library for parsing command line parameters. Popt was Popt is a C library for parsing command line parameters. Popt was
@ -168,55 +127,13 @@ functions for parsing arbitrary strings into argv[] arrays using
shell-like rules. shell-like rules.
%prep %prep
%setup -q %setup -q -n %{name}-%{rpm_version}
%patch0 -p1 -b .nohkp %patch1 -p1 -b .prereq
%patch1 -p1 -b .fileconflicts %patch2 -p1 -b .ghostconflicts
%patch2 -p1 -b .prereq %patch3 -p1 -b .trust
%patch3 -p1 -b .rpmal %patch4 -p1 -b .develdeps
%patch4 -p1 -b .prepostun %patch5 -p1 -b .fcskip
%patch5 -p1 -b .ordererase
# patch 6 moved
%patch7 -p1 -b .perlreq
%patch8 -p1 -b .param
%patch10 -p1 -b .charset
%patch11 -p1 -b .ghostconflicts
#patch12 -p1 -b .exclude
%patch13 -p1 -b .excludedsize
%patch14 -p1 -b .cronpath
%patch15 -p1 -b .mono
%patch16 -p1 -b .magic
%patch17 -p1 -b .no_large_mmap
%patch18 -p1 -b .perlmainprov
%patch19 -p1 -b .deadlock
%patch20 -p1 -b .netsharedpath
%patch21 -p1 -b .userlock
%patch22 -p1 -b .vercmp
%patch23 -p1 -b .doxy
%patch24 -p1 -b .trust
%patch25 -p1 -b .develdeps
%patch26 -p1 -b .fcskip
%patch27 -p0 -b .nosever
%patch6 -p1 -b .matchpathcon %patch6 -p1 -b .matchpathcon
%patch28 -p1 -b .aslist
%patch29 -p1 -b .ipv6
%patch30 -p1 -b .gnuhash
%patch31 -p0 -b .dbgppc
%patch32 -p1 -b .dbgpaths
%patch33 -p1 -b .order
%patch34 -p1 -b .dbgopt
%patch35 -p1 -b .flush
%patch36 -p1 -b .unicode
%patch37 -p1 -b .noneon
%patch38 -p0 -b .debugcan
%patch39 -p1 -b .noppcasm
%patch40 -p0 -b .forkfail
%patch41 -p1 -b .cdiff
%patch42 -p1 -b .docflags
%patch43 -p1 -b .debugcan2
%patch44 -p1 -b .elfprefer
# rebuild configure for ipv6
autoconf
%build %build
@ -231,8 +148,6 @@ CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
--mandir='${prefix}%{__share}/man' \ --mandir='${prefix}%{__share}/man' \
$WITH_PYTHON --enable-posixmutexes --without-javaglue $WITH_PYTHON --enable-posixmutexes --without-javaglue
make -C zlib || :
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -301,10 +216,6 @@ cp -p file/LEGAL.NOTICE LEGAL.NOTICE-file
rm -f .%{__libdir}/python%{with_python_version}/site-packages/rpmdb/*.{a,la} rm -f .%{__libdir}/python%{with_python_version}/site-packages/rpmdb/*.{a,la}
} }
# Install mono find-provides/requires
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/rpm
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/rpm
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -517,6 +428,12 @@ exit 0
%{__includedir}/popt.h %{__includedir}/popt.h
%changelog %changelog
* Mon Jun 25 2007 Panu Matilainen <pmatilai@redhat.com> 4.4.2.1-0.1.rc1
- update to 4.4.2.1-rc1
- patch shuffle, most have been merged upstream
- drop mono-scripts, it comes from upstream now
- popt isn't upgrading here so it needs its own release
* Tue Jun 19 2007 Panu Matilainen <pmatilai@redhat.com> - 4.4.2-47 * Tue Jun 19 2007 Panu Matilainen <pmatilai@redhat.com> - 4.4.2-47
- spec / package (review) cleanups: - spec / package (review) cleanups:
- use find_lang instead of manually listing translations - use find_lang instead of manually listing translations