X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=rpm.spec;h=b8da99289c5b962632fbc9f04b9c7e43b6deabfe;hp=b938093b9b177e1d6f8a29ea146355421f9b7b5b;hb=5da04523d2bcb0a699dd325189eb29c774c8e69c;hpb=0d108dc8bbbb12907a38a6b6dc9e59aadebb43ff diff --git a/rpm.spec b/rpm.spec index b938093..b8da992 100644 --- a/rpm.spec +++ b/rpm.spec @@ -13,9 +13,9 @@ %define popt_ver 1.15 %define sover 9.1.0 - %if %{_ver_ge '%{_rpmversion}' '4.12'} && %{_ver_lt '%{_rpmversion}' '5.0'} - %define with_recommends_tags - %endif +%if "%{_rpmversion}" >= "4.12" && "%{_rpmversion}" < "5" +%define with_recommends_tags 1 +%endif Summary: RPM Package Manager Summary(de.UTF-8): RPM Packet-Manager @@ -26,7 +26,7 @@ Summary(ru.UTF-8): Менеджер пакетов от RPM Summary(uk.UTF-8): Менеджер пакетів від RPM Name: rpm Version: 4.16.0 -Release: 0.1 +Release: 0.9 Epoch: 1 License: GPL v2 / LGPL v2.1 Group: Base @@ -40,7 +40,6 @@ Source4: %{name}.sysconfig Source5: %{name}.groups Source6: %{name}-groups-po.awk Source7: %{name}-install-tree -Source8: %{name}-hrmib-cache Source9: %{name}-user_group.sh # http://svn.pld-linux.org/banner.sh/ Source10: banner.sh @@ -72,7 +71,16 @@ Patch17: python-internal-build.patch Patch18: rpmversion.patch Patch19: pkgconfig.patch Patch20: uname-deps.patch +Patch21: aarch64.patch +Patch22: ix86-platforms.patch +Patch23: shortcircuited-deps.patch +Patch24: cpuinfo-deps.patch +Patch25: rpmio-read-proc-files.patch +Patch26: allow-at-in-ver-rel.patch +Patch27: no-exeonly-for-elf-reqprov.patch +Patch28: missing-macros.patch URL: https://rpm.org/ +BuildRequires: acl-devel BuildRequires: db-devel >= %{db_ver} BuildRequires: autoconf >= 2.63 BuildRequires: automake >= 1.4 @@ -80,6 +88,7 @@ BuildRequires: bzip2-devel >= 1.0.2-17 BuildRequires: elfutils-devel >= 0.108 BuildRequires: gettext-tools >= 0.19.2 BuildRequires: libarchive-devel +BuildRequires: libcap-devel BuildRequires: libmagic-devel BuildRequires: libgcrypt-devel %if %{with plugins} @@ -99,6 +108,7 @@ BuildRequires: python3-modules %if %{with python3} BuildRequires: python3-devel BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.750 %endif BuildRequires: sqlite3-devel >= 3.22.0 BuildRequires: tcl @@ -555,6 +565,14 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze %patch18 -p1 %patch19 -p1 %patch20 -p1 +%patch21 -p1 +%patch22 -p1 +%patch23 -p1 +%patch24 -p1 +%patch25 -p1 +%patch26 -p1 +%patch27 -p1 +%patch28 -p1 install %{SOURCE15} scripts/perl.prov.in @@ -593,6 +611,7 @@ sed -i \ --disable-silent-rules \ --enable-shared \ --enable-bdb \ + --enable-bdb-ro \ --enable-ndb \ --enable-sqlite \ --enable-zstd \ @@ -628,7 +647,7 @@ cd python %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \ - $RPM_BUILD_ROOT{/var/lib/{banner,rpm},/var/cache/hrmib} + $RPM_BUILD_ROOT/var/lib/{banner,rpm} cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc @@ -665,7 +684,10 @@ rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros %endif +%ifnarch aarch64 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros +%endif + rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros @@ -675,13 +697,20 @@ rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros +cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform +%ifarch x32 +%{_target_cpu}-%{_target_vendor}-linux-gnux32 +%else +%{_target_cpu}-%{_target_vendor}-linux +%endif +EOF + %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh install -d $RPM_BUILD_ROOT%{_rpmlibdir}/pld cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh -cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rpm cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/banner.sh @@ -747,9 +776,6 @@ if [ -e /var/lib/rpm/Packages ] && \ %{_rpmlibdir}/dbupgrade.sh fi -%triggerpostun -- %{name} < 4.4.9-44 -%{_rpmlibdir}/hrmib-cache - %post lib -p /sbin/ldconfig %postun lib -p /sbin/ldconfig @@ -771,6 +797,8 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang +# this is ok to be replaced +%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform %{_mandir}/man8/rpm.8* %{_mandir}/man8/rpmdb.8* @@ -786,10 +814,6 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %dir /var/lib/rpm -# exported package NVRA (stamped with install tid) -# net-snmp hrSWInstalledName queries, bash-completions -%dir /var/cache/hrmib - %{_rpmlibdir}/rpmpopt* %{_rpmlibdir}/rpmrc %{_rpmlibdir}/macros @@ -811,6 +835,9 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %ifarch alpha %{_rpmlibdir}/platform/alpha* %endif +%ifarch aarch64 +%{_rpmlibdir}/platform/aarch64* +%endif %ifarch ia64 %{_rpmlibdir}/platform/ia64* %endif @@ -826,8 +853,6 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %dir %{_rpmlibdir}/pld -%attr(755,root,root) %{_rpmlibdir}/hrmib-cache - %attr(755,root,root) %{_rpmlibdir}/dbupgrade.sh %attr(755,root,root) %{_rpmlibdir}/rpmdb_checkversion %attr(755,root,root) %{_rpmlibdir}/rpmdb_reset