X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm.spec;h=812feba74dc95b9f50d838d3c056d2da5e15434f;hb=b2796c9de330b86a333d0131427322443c1c15db;hp=2ac3ccfb3b632a921ded4c0479f34a42acd7b210;hpb=5c2ab5c7f47512433b319dcac66658e95eef41fc;p=packages%2Frpm.git diff --git a/rpm.spec b/rpm.spec index 2ac3ccf..812feba 100644 --- a/rpm.spec +++ b/rpm.spec @@ -1,18 +1,14 @@ # # TODO: +# - check if glob() patch needs resurrecting/rewriting # - check if we want shell autodeps: Requires: executable(ln) executable(mv) -# - %{_arch} = i686 not as used to be i386: +# - %{_arch} = i686 not as used to be i386 (platform file thing?): # 5.0.2: rpm -E '%_target_base_arch %_arch' # i386 i686 # 4.4.9: rpm -E '%_target_base_arch %_arch' # i386 i386 # - python(abi) cap is not provided automatically because /usr/lib*/libpython2*.so.* # matches ELF first -# - repackaging when lzma is not installed (todo: fix digest signature of header) -# rpmbuild computes digest when writing package to temporary file, then adds a few -# tags (incl. digest) and writes whole package to destination file; -# repackaging uses unchanged "immutable header" image from original rpm, also -# preserving payload format and compressor from original rpm, _not_ current settings # - TODO: add macros for some ppc, mipsel, alpha and sparc # - uppackaged list: # /usr/lib/rpm/http.req @@ -24,9 +20,13 @@ # /usr/lib/rpm/vcheck # /usr/share/man/man8/rpmconstant.8 # +# - headerGet() making poldek segfault http://rpm5.org/cvs/tktview?tn=38,1 +# - rpm doesn't exit when no sources/patches available http://rpm5.org/cvs/tktview?tn=40,1 +# - http://rpm5.org/cvs/tktview?tn=41&_submit=Show +# # Conditional build: %bcond_with static # build static rpm+rpmi -%bcond_without apidocs # don't generate documentation with doxygen +%bcond_with apidocs # don't generate documentation with doxygen %bcond_with autoreqdep # autogenerate package name deps in addition to sonames/perl(X) %bcond_without python # don't build python bindings %bcond_without selinux # build without selinux support @@ -63,12 +63,12 @@ Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM Summary(ru.UTF-8): Менеджер пакетов от RPM Summary(uk.UTF-8): Менеджер пакетів від RPM Name: rpm -Version: 5.1.4 -Release: 0.3 +Version: 5.1.6 +Release: 0.1 License: LGPL Group: Base Source0: http://rpm5.org/files/rpm/rpm-5.1/%{name}-%{version}.tar.gz -# Source0-md5: 9a04c22ce1dffc81a7e43d39b002aaa1 +# Source0-md5: 5eb40d7b756fcf04aad7d00a5b3d5b69 Source1: %{name}.groups Source2: %{name}.platform Source3: %{name}-install-tree @@ -89,7 +89,8 @@ Source16: %{name}-java-requires Source17: banner.sh Source18: %{name}-pld.macros Source19: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc -# Source19-md5: 08b29584dd349aac9caa7610131a0a88 +# Source19-md5: 08b29584dd349aac9caa7610131a0a88 +Source20: %{name}-mimetypedeps Source100: %{name}-macros-athlon Source101: %{name}-macros-i386 Source102: %{name}-macros-i486 @@ -120,6 +121,7 @@ Patch14: %{name}-etc_dir.patch Patch16: %{name}-php-deps.patch Patch17: %{name}-macros.patch Patch18: %{name}-macros-th.patch +Patch19: %{name}-glob.patch Patch23: %{name}-pkgconfigdeps.patch @@ -131,6 +133,9 @@ Patch34: %{name}-epoch0.patch Patch35: %{name}-perl_req-INC_dirs.patch Patch36: %{name}-debuginfo.patch Patch37: %{name}-doxygen_hack.patch +Patch38: %{name}-perl_req-use_base.patch +Patch39: %{name}-perl_req-skip_multiline.patch +Patch40: %{name}-perl_req-heredocs_pod.patch Patch42: %{name}-old-fileconflicts-behaviour.patch @@ -141,9 +146,8 @@ Patch52: %{name}-morearchs.patch Patch55: %{name}-truncate-cvslog.patch -Patch58: %{name}-repackage-wo-lzma.patch Patch59: %{name}-libtool-deps.patch - +Patch60: %{name}-mimetype.patch Patch61: %{name}-sparc64.patch URL: http://rpm5.org/ BuildRequires: autoconf >= 2.60 @@ -154,6 +158,7 @@ BuildRequires: bzip2-devel >= 1.0.2-17 BuildRequires: elfutils-devel >= 0.108 BuildRequires: gettext-autopoint >= 0.11.4-2 BuildRequires: gettext-devel >= 0.11.4-2 +BuildRequires: lzma-devel >= 4.999.3 BuildRequires: libmagic-devel %{?with_selinux:BuildRequires: libselinux-devel >= 1.18} # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros @@ -200,6 +205,8 @@ Obsoletes: rpm-getdeps Conflicts: glibc < 2.2.92 # db4.6 poldek needed Conflicts: poldek < 0.21-0.20070703.00.3 +# segfaults with lzma 0.42.2 +Conflicts: lzma-libs < 4.999.3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _binary_payload w9.gzdio @@ -301,7 +308,6 @@ Requires: beecrypt >= %{beecrypt_ver} Requires: libmagic >= 1.15-2 %{?with_selinux:Requires: libselinux >= 1.18} Requires: popt >= %{reqpopt_ver} -%{?with_suggest_tags:Suggests: lzma} Obsoletes: rpm-libs # avoid SEGV caused by mixed db versions Conflicts: poldek < 0.18.1-16 @@ -425,7 +431,6 @@ Requires: popt >= %{reqpopt_ver} %if %{with suggest_tags} Suggests: bzip2 Suggests: gzip -Suggests: lzma %endif Conflicts: filesystem-debuginfo < 3.0-16 @@ -503,7 +508,6 @@ Requires: gcc Requires: glibc-devel Requires: grep Requires: gzip -Requires: lzma Requires: make Requires: patch Requires: sed @@ -654,7 +658,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze %prep %setup -q -n %{name}-%{version}%{?subver} -%patch0 -p1 +#patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 @@ -691,16 +695,21 @@ install %{SOURCE12} scripts/perl.prov %patch35 -p0 %patch36 -p1 %patch37 -p1 +%patch38 -p1 +%patch39 -p1 +%patch40 -p1 %patch42 -p1 %patch46 -p1 %patch47 -p1 # OLD COMMENTED OUT #%%patch52 -p1 -- morearchs (rpmrc patch) adds ppc7400, ppc7400 %patch55 -p1 -%patch58 -p1 %patch59 -p1 %patch17 -p1 %patch18 -p1 +# Maybe, at last we can remove this? +#patch19 -p1 +%patch60 -p1 %ifarch sparc64 %patch61 -p1 %endif @@ -731,7 +740,7 @@ awk -f %{SOURCE6} %{SOURCE1} # rpm checks for CPU type at runtime, but it looks better #sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu@|%{_target_cpu}|' macros.in -%{?with_system_lua:CPPFLAGS=-I/usr/include/lua51} +%{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"} # pass CC and CXX too in case of building with some older configure macro %configure \ CC="%{__newcc}" \ @@ -749,6 +758,7 @@ awk -f %{SOURCE6} %{SOURCE1} --with-zlib=external \ --with-bzip2=external \ --with-beecrypt=external \ + --with-lzma=external \ --with-neon=%{?with_neon:external}%{!?with_neon:no} \ --with-file=external \ --with-popt=external \ @@ -812,76 +822,76 @@ cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform # x86_64 things %ifarch x86_64 -amd64-[^-]*-linux(-gnu)? -x86_64-[^-]*-linux(-gnu)? +x86_64-[^-]*-[Ll]inux(-gnu)? +amd64-[^-]*-[Ll]inux(-gnu)? %endif %ifarch amd64 -amd64-[^-]*-linux(-gnu)? -x86_64-[^-]*-linux(-gnu)? +amd64-[^-]*-[Ll]inux(-gnu)? +x86_64-[^-]*-[Ll]inux(-gnu)? %endif %ifarch ia32e -ia32e-[^-]*-linux(-gnu)? -x86_64-[^-]*-linux(-gnu)? +ia32e-[^-]*-[Ll]inux(-gnu)? +x86_64-[^-]*-[Ll]inux(-gnu)? %endif # x86 things %ifarch athlon %{x8664} -athlon-[^-]*-linux(-gnu)? +athlon-[^-]*-[Ll]inux(-gnu)? %endif %ifarch pentium4 athlon %{x8664} -pentium4-[^-]*-linux(-gnu)? +pentium4-[^-]*-[Ll]inux(-gnu)? %endif %ifarch pentium3 pentium4 athlon %{x8664} -pentium3-[^-]*-linux(-gnu)? +pentium3-[^-]*-[Ll]inux(-gnu)? %endif %ifarch i686 pentium3 pentium4 athlon %{x8664} -i686-[^-]*-linux(-gnu)? +i686-[^-]*-[Ll]inux(-gnu)? %endif %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} -i586-[^-]*-linux(-gnu)? +i586-[^-]*-[Ll]inux(-gnu)? %endif %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} -i486-[^-]*-linux(-gnu)? +i486-[^-]*-[Ll]inux(-gnu)? %endif %ifarch %{ix86} %{x8664} -i386-[^-]*-linux(-gnu)? +i386-[^-]*-[Ll]inux(-gnu)? %endif %ifarch alpha -alpha-[^-]*-linux(-gnu)? +alpha-[^-]*-[Ll]inux(-gnu)? %endif %ifarch ia64 -ia64-[^-]*-linux(-gnu)? +ia64-[^-]*-[Ll]inux(-gnu)? %endif %ifarch ppc64 -powerpc64-[^-]*-linux(-gnu)? -ppc64-[^-]*-linux(-gnu)? +powerpc64-[^-]*-[Ll]inux(-gnu)? +ppc64-[^-]*-[Ll]inux(-gnu)? %endif %ifarch %{ppc} ppc64 -powerpc-[^-]*-linux(-gnu)? -ppc-[^-]*-linux(-gnu)? +powerpc-[^-]*-[Ll]inux(-gnu)? +ppc-[^-]*-[Ll]inux(-gnu)? %endif %ifarch s390x -s390x-[^-]*-linux(-gnu)? +s390x-[^-]*-[Ll]inux(-gnu)? %endif %ifarch s390 s390x -s390-[^-]*-linux(-gnu)? +s390-[^-]*-[Ll]inux(-gnu)? %endif %ifarch sparc64 -sparc64-[^-]*-linux(-gnu)? -sparcv8-[^-]*-linux(-gnu)? -sparcv9-[^-]*-linux(-gnu)? +sparc64-[^-]*-[Ll]inux(-gnu)? +sparcv8-[^-]*-[Ll]inux(-gnu)? +sparcv9-[^-]*-[Ll]inux(-gnu)? %endif %ifarch sparcv9 -sparcv8-[^-]*-linux(-gnu)? -sparcv9-[^-]*-linux(-gnu)? +sparcv8-[^-]*-[Ll]inux(-gnu)? +sparcv9-[^-]*-[Ll]inux(-gnu)? %endif %ifarch sparc sparcv9 sparc64 -sparc-[^-]*-linux(-gnu)? +sparc-[^-]*-[Ll]inux(-gnu)? %endif # noarch @@ -917,6 +927,7 @@ install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh install %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir} install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir} +install %{SOURCE20} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm @@ -1031,7 +1042,7 @@ touch $RPM_BUILD_ROOT/var/lock/rpm/transaction # move rpm to /bin mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin # move essential libs to /lib (libs that /bin/rpm links to) -for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so; do +for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so; do mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib} ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a done @@ -1059,8 +1070,6 @@ rm $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py} rm $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd} # utils dropped in 4.4.8 -- their manuals rm $RPM_BUILD_ROOT%{_mandir}/{,*/}/man8/rpmgraph.8 -# unpackaged in 4.4.9, reasons unknown -rm $RPM_BUILD_ROOT%{_rpmlibdir}/symclash.{sh,py} %find_lang %{name} @@ -1104,7 +1113,6 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f #%attr(755,root,root) %{_bindir}/rpmsign #%attr(755,root,root) %{_bindir}/rpmverify -%dir %{_sysconfdir}/rpm %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros %dir %{_sysconfdir}/rpm/sysinfo # these are ok to be replaced @@ -1142,6 +1150,7 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %files base %defattr(644,root,root,755) +%dir %{_sysconfdir}/rpm %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm %dir %{_rpmlibdir} %attr(755,root,root) %{_bindir}/banner.sh @@ -1154,6 +1163,7 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so +%attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so %files devel %defattr(644,root,root,755) @@ -1232,6 +1242,7 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh +%attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh # needs hacked pkg-config to return anything %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh #%attr(755,root,root) %{_rpmlibdir}/rpmb