# TODO:
# - python(abi) cap is not provided automatically (because /usr/bin/python matches
# ELF first; it should be provided by python-libs not binary anyway)
+# - repackaging when lzma is not installed (todo: fix digest signature of header)
#
# Conditional build:
%bcond_with static # build static rpm+rpmi
Summary(ru): íÅÎÅÄÖÅÒ ÐÁËÅÔÏ× ÏÔ RPM
Summary(uk): íÅÎÅÄÖÅÒ ÐÁËÅÔ¦× ×¦Ä RPM
Name: rpm
-Version: 4.4.6
-Release: 1.4
+Version: 4.4.7
+Release: 0.1
License: GPL
Group: Base
Source0: ftp://jbj.org/pub/rpm-4.4.x/%{name}-%{version}.tar.gz
-# Source0-md5: baa6f371446c65b4080d1cd1f194a7ae
+# Source0-md5: d012c81b5169f7377ea4a36607e1445e
Source1: %{name}.groups
Source2: %{name}.platform
Source3: %{name}-install-tree
Patch54: %{name}-lzma2.patch
Patch55: %{name}-truncate-cvslog.patch
Patch56: %{name}-skip-backups.patch
+Patch57: %{name}-as_needed-fix.patch
+Patch58: %{name}-repackage-wo-lzma.patch
URL: http://wraptastic.org/
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: gettext-devel >= 0.11.4-2
%{?with_system_libmagic:BuildRequires: libmagic-devel}
%endif
BuildRequires: patch >= 2.2
BuildRequires: popt-devel >= %{reqpopt_ver}
-%{?with_python:BuildRequires: python-devel >= 1:2.3}
-BuildRequires: python-modules >= 1:2.3
+%{?with_python:BuildRequires: python-devel >= 1:2.5}
+BuildRequires: python-modules >= 1:2.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}
Requires: %{name}-lib = %{version}-%{release}
Requires: beecrypt >= %{beecrypt_ver}
Requires: popt >= %{reqpopt_ver}
-Requires: rc-scripts
%{!?with_static:Obsoletes: rpm-utils-static}
Conflicts: glibc < 2.2.92
# avoid SEGV caused by mixed db versions
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
Obsoletes: rpm-libs
# avoid SEGV caused by mixed db versions
Conflicts: poldek < 0.18.1-16
+Suggests: lzma
%description lib
RPMs library.
Summary(uk): óËÒÉÐÔÉ ÔÁ ÕÔÉ̦ÔÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÐÏÂÕÄÏ×É ÐÁËÅÔ¦×
Group: Applications/File
Requires(pre): findutils
-Requires: %{name}-build-macros >= 1.302
+Requires: %{name}-build-macros >= 1.314
Requires: %{name}-utils = %{version}-%{release}
Requires: /bin/id
Requires: awk
-Requires: binutils
+# we need fixed binutils for -feliminate-dwarf2-dups
+Requires: binutils >= 3:2.17.50.0.3-2
Requires: bzip2
Requires: chrpath >= 0.10-4
Requires: cpio
%patch29 -p1
%patch30 -p1
%patch31 -p1
-%patch32 -p1
+# FIXME
+#%patch32 -p1
%patch34 -p1
%patch35 -p0
%patch41 -p1
%patch42 -p1
%patch43 -p1
-%{!?with_neon:%patch44 -p1}
+# FIXME
+#%{!?with_neon:%patch44 -p1}
%patch45 -p1
%patch46 -p1
%patch54 -p1
%patch55 -p1
%patch56 -p1
+%patch57 -p1
+%patch58 -p1
cd scripts
mv -f perl.req perl.req.in
%{?with_autoreqdep:--enable-adding-packages-names-in-autogenerated-dependancies} \
--enable-shared \
--enable-static \
- %{?with_apidocs:--with-apidocs} \
- %{?with_python:--with-python=auto} \
+ %{!?with_apidocs:--without-apidocs} \
+ %{?with_python:--with-python=2.5} \
%{!?with_python:--without-python} \
%{!?with_selinux:--without-selinux} \
--without-db