Name: rpm Version: 4.14.2 Release: 5 Summary: RPM Package Manager License: GPLv2+ URL: http://www.rpm.org/ Source0: http://ftp.rpm.org/releases/rpm-4.14.x/%{name}-%{version}.tar.bz2 Patch1: rpm-4.11.x-siteconfig.patch Patch2: rpm-4.13.0-fedora-specspo.patch Patch3: rpm-4.9.90-no-man-dirs.patch Patch4: rpm-4.8.1-use-gpg2.patch Patch5: rpm-4.12.0-rpm2cpio-hack.patch Patch6: 0001-find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch Patch906: rpm-4.7.1-geode-i686.patch Patch907: rpm-4.13.90-ldflags.patch Patch6000: bugfix-rpm-4.11.3-add-aarch64_ilp32-arch.patch Patch6001: bugfix-rpm-4.14.2-fix-tty-failed.patch Patch6002: 0001-Fix-ancient-python-GIL-locking-bug-on-callback-RhBug.patch Patch6003: 0002-Resurrect-long-since-broken-Lua-library-path.patch Patch6004: 0003-Fix-nasty-setperms-setugids-regression-in-4.14.2-RhB.patch Patch9000: bugfix-rpm-4.14.2-wait-once-get-rpmlock-fail.patch BuildRequires: gcc autoconf automake libtool make gawk popt-devel openssl-devel readline-devel libdb-devel BuildRequires: system-rpm-config BuildRequires: zlib-devel libzstd-devel xz-devel bzip2-devel libarchive-devel ima-evm-utils-devel BuildRequires: dbus-devel fakechroot elfutils-devel elfutils-libelf-devel BuildRequires: lua-devel libcap-devel libacl-devel libselinux-devel file-devel gettext-devel ncurses-devel Requires: coreutils popt curl zstd libcap gnupg2 crontabs logrotate libdb-utils Obsoletes: %{name}-libs %{name}-build-libs %{name}-sign-libs %{name}-sign %{name}-cron Provides: %{name}-libs %{name}-build-libs %{name}-sign-libs %{name}-sign %{name}-cron Obsoletes: %{name}-plugin-selinux %{name}-plugin-syslog %{name}-plugin-systemd-inhibit %{name}-plugin-ima %{name}-plugin-prioreset Provides: %{name}-plugin-selinux %{name}-plugin-syslog %{name}-plugin-systemd-inhibit %{name}-plugin-ima %{name}-plugin-prioreset %description The RPM Package Manager (RPM) is a powerful package management system capability as below -building computer software from source into easily distributable packages -installing, updating and uninstalling packaged software -querying detailed information about the packaged software, whether installed or not -verifying integrity of packaged software and resulting software installation %package build Summary: Scripts and executable programs used to build packages Requires: %{name} = %{version}-%{release} Requires: elfutils binutils findutils sed grep gawk diffutils file patch Requires: tar unzip gzip bzip2 cpio xz zstd pkgconfig system-rpm-config %description build This package provides scripts and executable programs that used to build rpm packages. %package -n python2-%{name} Summary: Python2 bindings for RPM user BuildRequires: python2-devel %{?python_provide:%python_provide python2-%{name}} Requires: %{name} = %{version}-%{release} Provides: %{name}-python = %{version}-%{release} Obsoletes: %{name}-python < %{version}-%{release} %description -n python2-%{name} This package contains a module that allow applications written with Python2 to use the interface supplied by RPM. %package -n python3-%{name} Summary: Python3 bindings for RPM user BuildRequires: python3-devel %{?python_provide:%python_provide python3-%{name}} Requires: %{name} = %{version}-%{release} Provides: %{name}-python3 = %{version}-%{release} Obsoletes: %{name}-python3 < %{version}-%{release} %description -n python3-%{name} This package contains a module that allow applications written with Python3 to use the interface supplied by RPM. %package devel Summary: Development files for RPM handling Requires: %{name} = %{version}-%{release} Requires: popt-devel %description devel %{summary}. %package help Summary: Man page for %{name} BuildArch: noarch Obsoletes: apidocs %description help %{summary}. %prep %autosetup -n %{name}-%{version} -p1 sed -ie 's:^python test:python2 test:g' tests/rpmtests tests/local.at %build CPPFLAGS="$CPPFLAGS -DLUA_COMPAT_APIINTCASTS" CFLAGS="$RPM_OPT_FLAGS -DLUA_COMPAT_APIINTCASTS" LDFLAGS="$LDFLAGS %{?__global_ldflags}" export CPPFLAGS CFLAGS LDFLAGS autoreconf -i -f for i in $(find . -name ltmain.sh) ; do %{__sed} -i.backup -e 's~compiler_flags=$~compiler_flags="%{_hardened_ldflags}"~' $i done; ./configure \ --prefix=%{_usr} \ --sysconfdir=%{_sysconfdir} \ --localstatedir=%{_var} \ --sharedstatedir=%{_var}/lib \ --libdir=%{_libdir} \ --build=%{_target_platform} \ --host=%{_target_platform} \ --with-vendor=%{_vendor} \ --with-external-db \ --with-lua \ --with-selinux \ --with-cap \ --with-acl \ --with-imaevm \ --enable-zstd \ --enable-python \ --with-crypto=openssl %make_build pushd python %{__python2} setup.py build %{__python3} setup.py build popd %install %make_install pushd python %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT popd mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm mkdir -p ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d echo "r /var/lib/rpm/__db.*" > ${RPM_BUILD_ROOT}/usr/lib/tmpfiles.d/rpm.conf mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d mkdir -p $RPM_BUILD_ROOT/var/lib/rpm for dbi in \ Basenames Conflictname Dirnames Group Installtid Name Obsoletename \ Packages Providename Requirename Triggername Sha1header Sigmd5 \ __db.001 __db.002 __db.003 __db.004 __db.005 __db.006 __db.007 \ __db.008 __db.009 do touch $RPM_BUILD_ROOT/var/lib/rpm/$dbi done for dbutil in dump load recover stat upgrade verify do ln -s ../../bin/db_${dbutil} $RPM_BUILD_ROOT/usr/lib/rpm/rpmdb_${dbutil} done %find_lang %{name} find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f rm -f $RPM_BUILD_ROOT/%{_rpmconfigdir}/{perldeps.pl,perl.*,pythond*} rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*} rm -f $RPM_BUILD_ROOT/%{_rpmconfigdir}/{tcl.req,osgideps.pl} chmod a-x $RPM_BUILD_ROOT/%{_rpmconfigdir}/python-macro-helper %check make check || cat tests/rpmtests.log %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %license COPYING %doc CREDITS /usr/lib/tmpfiles.d/rpm.conf %{_sysconfdir}/cron.daily/rpm %config(noreplace) %{_sysconfdir}/logrotate.d/rpm %dir %{_sysconfdir}/rpm %dir /var/lib/rpm %attr(0644, root, root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/lib/rpm/* %lang(fr) %{_mandir}/fr/man[18]/*.[18]* %lang(ko) %{_mandir}/ko/man[18]/*.[18]* %lang(ja) %{_mandir}/ja/man[18]/*.[18]* %lang(pl) %{_mandir}/pl/man[18]/*.[18]* %lang(ru) %{_mandir}/ru/man[18]/*.[18]* %lang(sk) %{_mandir}/sk/man[18]/*.[18]* %attr(0755, root, root) %dir %{_rpmconfigdir} %{_rpmconfigdir}/macros %{_rpmconfigdir}/macros.d %{_rpmconfigdir}/rpmpopt* %{_rpmconfigdir}/rpmrc %{_rpmconfigdir}/rpmdb_* %{_rpmconfigdir}/rpm.daily %{_rpmconfigdir}/rpm.log %{_rpmconfigdir}/rpm.supp %{_rpmconfigdir}/rpm2cpio.sh %{_rpmconfigdir}/tgpg %{_rpmconfigdir}/python-macro-helper %{_rpmconfigdir}/platform %{_libdir}/librpm*.so.* %{_libdir}/rpm-plugins/ %dir %{_rpmconfigdir}/fileattrs %{_bindir}/rpm %{_bindir}/rpm2archive %{_bindir}/rpm2cpio %{_bindir}/rpmdb %{_bindir}/rpmkeys %{_bindir}/rpmquery %{_bindir}/rpmverify %{_bindir}/rpmsign %files build %defattr(-,root,root) %{_bindir}/rpmbuild %{_bindir}/gendiff %{_bindir}/rpmspec %{_rpmconfigdir}/brp-* %{_rpmconfigdir}/check-* %{_rpmconfigdir}/debugedit %{_rpmconfigdir}/sepdebugcrcfix %{_rpmconfigdir}/find-debuginfo.sh %{_rpmconfigdir}/find-lang.sh %{_rpmconfigdir}/*provides* %{_rpmconfigdir}/*requires* %{_rpmconfigdir}/*deps* %{_rpmconfigdir}/*.prov %{_rpmconfigdir}/*.req %{_rpmconfigdir}/config.* %{_rpmconfigdir}/mkinstalldirs %{_rpmconfigdir}/macros.p* %{_rpmconfigdir}/fileattrs/* %files -n python2-%{name} %defattr(-,root,root) %{python2_sitearch}/%{name}/ %{python2_sitearch}/%{name}-%{version}*.egg-info %files -n python3-%{name} %defattr(-,root,root) %{python3_sitearch}/%{name}/ %{python3_sitearch}/%{name}-%{version}*.egg-info %files devel %defattr(-,root,root) %{_bindir}/rpmgraph %{_libdir}/librp*[a-z].so %{_libdir}/pkgconfig/%{name}.pc %{_includedir}/%{name}/ %files help %defattr(-,root,root) %doc doc/manual/[a-z]* %doc doc/librpm/html/* %{_mandir}/man8/rpm*.8* %{_mandir}/man1/gendiff.1* %changelog * Tue Dec 24 2019 openEuler Buildteam - 4.14.2-5 - Type:bugfix - ID:NA - SUG:NA - DESC:bugfix in files * Wed Nov 13 2019 hexiaowen - 4.14.2-4 - add system-rpm-config buildrequires * Fri Sep 20 2019 openEuler Buildteam - 4.14.2-3 - Delete redundant information * Mon Sep 09 2019 openEuler Buildteam - 4.14.2-2 - Package init