# versions of required libraries
%define reqdb_ver 4.4.20
-%define reqpopt_ver 1.10.5
+%define reqpopt_ver 1.10.6
%define beecrypt_ver 2:4.1.2-4
%define sover 4.4
Summary: RPM Package Manager
Summary(ru): íÅÎÅÄÖÅÒ ÐÁËÅÔÏ× ÏÔ RPM
Summary(uk): íÅÎÅÄÖÅÒ ÐÁËÅÔ¦× ×¦Ä RPM
Name: rpm
-Version: 4.4.5
-Release: 2
+Version: 4.4.6
+Release: 1.10
License: GPL
Group: Base
Source0: ftp://jbj.org/pub/rpm-4.4.x/%{name}-%{version}.tar.gz
-# Source0-md5: d5f434789c0c56d05d77be6f4262a561
+# Source0-md5: baa6f371446c65b4080d1cd1f194a7ae
Source1: %{name}.groups
Source2: %{name}.platform
Source3: %{name}-install-tree
Source32: pldnotify.awk
# http://svn.pld-linux.org/banner.sh/
Source33: banner.sh
-Source34: php-pear-build-macros
Patch0: %{name}-pl.po.patch
Patch1: %{name}-rpmrc.patch
Patch2: %{name}-arch.patch
Patch30: %{name}-libdir-links.patch
Patch31: %{name}-missing-prototypes.patch
Patch32: %{name}-pld-autodep.patch
-Patch33: %{name}-rpmsq.patch
+
Patch34: %{name}-epoch0.patch
Patch35: %{name}-perl_req-INC_dirs.patch
Patch36: %{name}-debuginfo.patch
Patch50: %{name}-macros.patch
Patch51: %{name}-cleanlibdirs.patch
Patch52: %{name}-morearchs.patch
+Patch53: %{name}-lzma.patch
+Patch54: %{name}-lzma2.patch
+Patch55: %{name}-truncate-cvslog.patch
+Patch56: %{name}-skip-backups.patch
+Patch57: %{name}-as_needed-fix.patch
URL: http://wraptastic.org/
-BuildRequires: autoconf >= 2.52
+BuildRequires: autoconf >= 2.57
BuildRequires: automake
BuildRequires: beecrypt-devel >= %{beecrypt_ver}
BuildRequires: bzip2-devel >= 1.0.2-17
BuildRequires: db-devel >= %{reqdb_ver}
-%{?with_apidocs:BuildRequires: doxygen}
BuildRequires: elfutils-devel >= 0.108
-BuildRequires: findutils
BuildRequires: gettext-devel >= 0.11.4-2
%{?with_system_libmagic:BuildRequires: libmagic-devel}
%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
BuildRequires: libstdc++-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 1:1.4.2-9
%if %{with neon}
BuildRequires: libxml2-devel
BuildRequires: neon-devel >= 0.25.5
BuildRequires: rpm-perlprov
%{?with_python:BuildRequires: rpm-pythonprov}
BuildRequires: zlib-devel
+%if %{with apidocs}
+BuildRequires: doxygen
+BuildRequires: ghostscript
+BuildRequires: graphviz
+BuildRequires: tetex-pdftex
+%endif
%if %{with static}
# Require static library only for static build
BuildRequires: beecrypt-static >= %{beecrypt_ver}
Summary: RPM base package - scripts used by rpm packages themselves
Summary(pl): Podstawowy pakiet RPM - skrypty u¿ywane przez same pakiety rpm
Group: Base
+Requires: filesystem
Obsoletes: vserver-rpm
%description base
Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
Group: Applications/File
Requires(pre): findutils
-Requires: %{name}-build-macros >= 1.284
+Requires: %{name}-build-macros >= 1.314
Requires: %{name}-utils = %{version}-%{release}
Requires: /bin/id
Requires: awk
Requires: glibc-devel
Requires: grep
Requires: gzip
+Requires: lzma
Requires: make
Requires: patch
Requires: sed
Additional utilities for checking php pear provides/requires in rpm
packages.
-This package provides rpm macros and dependencies to help building
-PEAR packages.
-
%description php-pearprov -l pl
Dodatkowe narzêdzia do sprawdzenia zale¿no¶ci skryptów php pear w
pakietach rpm.
-Ten pakiet dostarcza makra rpm-a i zale¿no¶ci pomagaj±ce przy
-budowaniu pakietów PEAR-a.
-
%package -n python-rpm
Summary: Python interface to RPM library
Summary(pl): Pythonowy interfejs do biblioteki RPM-a
Group: Documentation
%description apidocs
-Documentation for RPM API and guides in HTML format generated
-from rpm sources by doxygen.
+Documentation for RPM API and guides in HTML format generated from rpm
+sources by doxygen.
%description apidocs -l pl
-Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane
-ze ¼rode³ RPM-a przez doxygen.
+Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
+¼rode³ RPM-a przez doxygen.
%prep
%setup -q
echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
echo '# obsoleted file' > macros.python
-install %{SOURCE34} macros.php
+echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
+echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
echo '%%define __mono_provides /usr/lib/rpm/mono-find-provides' > macros.mono
echo '%%define __mono_requires /usr/lib/rpm/mono-find-requires' >> macros.mono
install %{SOURCE5} scripts/find-lang.sh
%patch30 -p1
%patch31 -p1
%patch32 -p1
-%patch33 -p1
+
%patch34 -p1
%patch35 -p0
%patch36 -p1
%patch50 -p1
%patch51 -p1
#%patch52 -p1
+%patch53 -p1
+%patch54 -p1
+%patch55 -p1
+%patch56 -p1
+%patch57 -p1
cd scripts
mv -f perl.req perl.req.in
# SELinux file contexts policy instead of one stored in packages payload
%%_install_file_context_path %%{nil}
%%_verify_file_context_path %%{nil}
+
+# If non-zero, all erasures will be automagically repackaged.
+#%%_repackage_all_erasures 1
EOF
cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
EOF
cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
# global list of files (regexps) which don't generate Requires
-^/usr/src/examples/
-^/usr/share/doc/
+^%{_examplesdir}/
+^%{_docdir}/
EOF
cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
# global list of script capabilities (regexps) not to be used in Requires
done
# remove arch dependant macros which have no use on noarch
-sed -i -e '
+%{__sed} -i -e '
/{__spec_install_post_strip}/d
/{__spec_install_post_chrpath}/d
/{__spec_install_post_compress_modules}/d