20e9972
# build against xz?
20e9972
%bcond_without xz
cbac7f3
# just for giggles, option to build with internal Berkeley DB
871a781
%bcond_with int_bdb
9ea2c1d
# run internal testsuite?
9e41d42
%bcond_with check
7c2b7db
# build with plugins?
7c2b7db
%bcond_without plugins
7c2b7db
# build with libarchive? (needed for rpm2archive)
7c2b7db
%bcond_without libarchive
592510c
# build with libimaevm.so
592510c
%bcond_without libimaevm
Igor Gnatenko 7defdb8
# build with new db format
Igor Gnatenko 7defdb8
%bcond_with ndb
cae5fc9
# build with zstd support?
cae5fc9
%bcond_without zstd
cae5fc9
# build with lmdb support?
cae5fc9
%bcond_with lmdb
cbac7f3
f780b84
%define rpmhome /usr/lib/rpm
cvsdist 02edfd6
0a7d172
%global rpmver 4.14.90
0a7d172
%global snapver git14653
81c6251
%global rel 9
0cd499e
Igor Gnatenko 76e0e5c
%global srcver %{version}%{?snapver:-%{snapver}}
ebc7118
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
cbac7f3
16864ee
%define bdbver 5.3.15
cbac7f3
3f81427
# Build-dependency on systemd for the sake of one macro would be a bit much...
3f81427
%{!?_tmpfilesdir:%global _tmpfilesdir /usr/lib/tmpfiles.d}
3f81427
Paul Nasrat b1ecfff
Summary: The RPM package management system
cvsdist 1bdb862
Name: rpm
cbac7f3
Version: %{rpmver}
d4f7fd8
Release: %{?snapver:0.%{snapver}.}%{rel}%{?dist}
Paul Nasrat b1ecfff
Url: http://www.rpm.org/
ebc7118
Source0: http://ftp.rpm.org/releases/%{srcdir}/%{name}-%{srcver}.tar.bz2
cbac7f3
%if %{with int_bdb}
cbac7f3
Source1: db-%{bdbver}.tar.gz
cbac7f3
%endif
cbac7f3
b1b48bd
# Disable autoconf config.site processing (#962837)
81c6251
Patch1: rpm-4.15.x-siteconfig.patch
53b8b3c
# In current Fedora, man-pages pkg owns all the localized man directories
ae9bea0
Patch3: rpm-4.9.90-no-man-dirs.patch
2176e27
# Temporary band-aid for rpm2cpio whining on payload size mismatch (#1142949)
2176e27
Patch5: rpm-4.12.0-rpm2cpio-hack.patch
adbe363
# https://github.com/rpm-software-management/rpm/pull/473
adbe363
Patch6: 0001-find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch
8b3e871
44dacef
# Patches already upstream:
d4f7fd8
3bb32d6
# These are not yet upstream
53960f5
Patch906: rpm-4.7.1-geode-i686.patch
4dd6dd1
# Probably to be upstreamed in slightly different form
0a7d172
Patch907: rpm-4.15.x-ldflags.patch
ac1dcaa
cbac7f3
# Partially GPL/LGPL dual-licensed and some bits with BSD
2688218
# SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD
412a63f
License: GPLv2+
412a63f
d9ecaeb
Requires: coreutils
e0e4c4e
%if %{without int_bdb}
61eecfc
# db recovery tools, rpmdb_util symlinks
106f86a
Requires: %{_bindir}/db_stat
e0e4c4e
%endif
c458285
Requires: popt%{_isa} >= 1.10.2.1
cbac7f3
Requires: curl
cbac7f3
cbac7f3
%if %{without int_bdb}
106f86a
BuildRequires: libdb-devel
cbac7f3
%endif
cvsdist 9eb5b26
b60210f
%if %{with check}
Panu Matilainen b4ee379
BuildRequires: fakechroot gnupg2
b60210f
%endif
b60210f
f780b84
# XXX generally assumed to be installed but make it explicit as rpm
f780b84
# is a bit special...
0a7d172
BuildRequires: redhat-rpm-config >= 94
29c1408
BuildRequires: gcc make
223b2f6
BuildRequires: gawk
cbf52c8
BuildRequires: elfutils-devel >= 0.112
cbf52c8
BuildRequires: elfutils-libelf-devel
cbf52c8
BuildRequires: readline-devel zlib-devel
Igor Gnatenko 7f27803
BuildRequires: openssl-devel
cbac7f3
# The popt version here just documents an older known-good version
cbf52c8
BuildRequires: popt-devel >= 1.10.2
cbf52c8
BuildRequires: file-devel
cbf52c8
BuildRequires: gettext-devel
cbf52c8
BuildRequires: ncurses-devel
cbf52c8
BuildRequires: bzip2-devel >= 0.9.0c-2
cbf52c8
BuildRequires: lua-devel >= 5.1
cbf52c8
BuildRequires: libcap-devel
cbf52c8
BuildRequires: libacl-devel
0cd499e
%if %{with xz}
cbf52c8
BuildRequires: xz-devel >= 4.999.8
cbac7f3
%endif
0cd499e
%if %{with libarchive}
7c2b7db
BuildRequires: libarchive-devel
7c2b7db
%endif
cae5fc9
%if %{with zstd}
cae5fc9
BuildRequires: libzstd-devel
cae5fc9
%endif
cae5fc9
%if %{with lmdb}
cae5fc9
BuildRequires: lmdb-devel
cae5fc9
%endif
5d52c29
# Couple of patches change makefiles so, require for now...
9530652
BuildRequires: automake libtool
412a63f
7c2b7db
%if %{with plugins}
7c2b7db
BuildRequires: libselinux-devel
7c2b7db
BuildRequires: dbus-devel
0a7d172
BuildRequires: audit-libs-devel
7c2b7db
%endif
7c2b7db
592510c
%if %{with libimaevm}
85cd9c4
BuildRequires: ima-evm-utils-devel >= 1.0
592510c
%endif
592510c
cvsdist 1bdb862
%description
cvsdist 73bf5cf
The RPM Package Manager (RPM) is a powerful command line driven
cvsdist 1bdb862
package management system capable of installing, uninstalling,
cvsdist b1db194
verifying, querying, and updating software packages. Each software
cvsdist 1bdb862
package consists of an archive of files along with information about
cvsdist 1bdb862
the package like its version, a description, etc.
cvsdist 1bdb862
cvsdist 98655b4
%package libs
Paul Nasrat b1ecfff
Summary:  Libraries for manipulating RPM packages
412a63f
License: GPLv2+ and LGPLv2+ with exceptions
Igor Gnatenko 62c1bd0
Requires: %{name} = %{version}-%{release}
cvsdist 98655b4
cvsdist 98655b4
%description libs
cvsdist 98655b4
This package contains the RPM shared libraries.
cvsdist 98655b4
f29fc67
%package build-libs
99d6687
Summary:  Libraries for building RPM packages
f29fc67
License: GPLv2+ and LGPLv2+ with exceptions
f29fc67
Requires: rpm-libs%{_isa} = %{version}-%{release}
f29fc67
f29fc67
%description build-libs
99d6687
This package contains the RPM shared libraries for building packages.
99d6687
99d6687
%package sign-libs
99d6687
Summary:  Libraries for signing RPM packages
99d6687
License: GPLv2+ and LGPLv2+ with exceptions
99d6687
Requires: rpm-libs%{_isa} = %{version}-%{release}
99d6687
Requires: %{_bindir}/gpg2
99d6687
99d6687
%description sign-libs
99d6687
This package contains the RPM shared libraries for signing packages.
f29fc67
cvsdist 1bdb862
%package devel
Paul Nasrat b1ecfff
Summary:  Development files for manipulating RPM packages
412a63f
License: GPLv2+ and LGPLv2+ with exceptions
Igor Gnatenko a3e7120
Requires: %{name} = %{version}-%{release}
Igor Gnatenko 76e0e5c
Requires: %{name}-libs%{_isa} = %{version}-%{release}
Igor Gnatenko 76e0e5c
Requires: %{name}-build-libs%{_isa} = %{version}-%{release}
99d6687
Requires: %{name}-sign-libs%{_isa} = %{version}-%{release}
3025ee1
Requires: popt-devel%{_isa}
cvsdist 1bdb862
cvsdist 1bdb862
%description devel
cvsdist b1db194
This package contains the RPM C library and header files. These
cvsdist b1db194
development files will simplify the process of writing programs that
cvsdist 1bdb862
manipulate RPM packages and databases. These files are intended to
cvsdist 1bdb862
simplify the process of creating graphical package managers or any
cvsdist 1bdb862
other tools that need an intimate knowledge of RPM packages in order
cvsdist 1bdb862
to function.
cvsdist 1bdb862
cvsdist 1bdb862
This package should be installed if you want to develop programs that
cvsdist 1bdb862
will manipulate RPM packages and databases.
cvsdist 1bdb862
cvsdist 1bdb862
%package build
Paul Nasrat b1ecfff
Summary: Scripts and executable programs used to build packages
61cb76a
Requires: rpm = %{version}-%{release}
61cb76a
Requires: elfutils >= 0.128 binutils
44830ae
Requires: findutils sed grep gawk diffutils file patch >= 2.5
026fff0
Requires: tar unzip gzip bzip2 cpio xz
026fff0
%if %{with zstd}
026fff0
Requires: zstd
026fff0
%endif
019f97f
Requires: pkgconfig >= 1:0.24
5e5b68f
Requires: /usr/bin/gdb-add-index
2688218
# https://fedoraproject.org/wiki/Changes/Minimal_GDB_in_buildroot
2688218
Suggests: gdb-minimal
6fb2566
# Technically rpmbuild doesn't require any external configuration, but
6fb2566
# creating distro-compatible packages does. To make the common case
6fb2566
# "just work" while allowing for alternatives, depend on a virtual
6fb2566
# provide, typically coming from redhat-rpm-config.
6fb2566
Requires: system-rpm-config
cvsdist 1bdb862
cvsdist 1bdb862
%description build
cvsdist b1db194
The rpm-build package contains the scripts and executable programs
cvsdist b1db194
that are used to build packages using the RPM Package Manager.
cvsdist 1bdb862
f29fc67
%package sign
f29fc67
Summary: Package signing support
99d6687
Requires: rpm-sign-libs%{_isa} = %{version}-%{release}
f29fc67
f29fc67
%description sign
f29fc67
This package contains support for digitally signing RPM packages.
f29fc67
Igor Gnatenko 76e0e5c
%package -n python2-%{name}
f5c5c33
Summary: Python 2 bindings for apps which will manipulate RPM packages
Igor Gnatenko 76e0e5c
BuildRequires: python2-devel
Igor Gnatenko 76e0e5c
%{?python_provide:%python_provide python2-%{name}}
Igor Gnatenko a3e7120
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Igor Gnatenko 76e0e5c
Provides: %{name}-python = %{version}-%{release}
ec7193f
Obsoletes: %{name}-python < %{version}-%{release}
cvsdist a37c64e
Igor Gnatenko 76e0e5c
%description -n python2-%{name}
Thierry Vignaud 9e615fd
The python2-rpm package contains a module that permits applications
cvsdist a37c64e
written in the Python programming language to use the interface
cvsdist 02edfd6
supplied by RPM Package Manager libraries.
cvsdist a37c64e
f5c5c33
This package should be installed if you want to develop Python 2
f5c5c33
programs that will manipulate RPM packages and databases.
f5c5c33
Igor Gnatenko 76e0e5c
%package -n python3-%{name}
f5c5c33
Summary: Python 3 bindings for apps which will manipulate RPM packages
Igor Gnatenko 76e0e5c
BuildRequires: python3-devel
Igor Gnatenko 68f46ed
%{?python_provide:%python_provide python3-%{name}}
Igor Gnatenko a3e7120
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Igor Gnatenko 76e0e5c
Provides: %{name}-python3 = %{version}-%{release}
ec7193f
Obsoletes: %{name}-python3 < %{version}-%{release}
193c887
Obsoletes: platform-python-%{name} < %{version}-%{release}
f5c5c33
Igor Gnatenko 76e0e5c
%description -n python3-%{name}
Thierry Vignaud 9e615fd
The python3-rpm package contains a module that permits applications
f5c5c33
written in the Python programming language to use the interface
f5c5c33
supplied by RPM Package Manager libraries.
f5c5c33
f5c5c33
This package should be installed if you want to develop Python 3
cvsdist a37c64e
programs that will manipulate RPM packages and databases.
cvsdist b60fd6b
f780b84
%package apidocs
f780b84
Summary: API documentation for RPM libraries
3c64bcf
BuildArch: noarch
f780b84
f780b84
%description apidocs
f780b84
This package contains API documentation for developing applications
f780b84
that will manipulate RPM packages and databases.
f780b84
d9ecaeb
%package cron
d9ecaeb
Summary: Create daily logs of installed packages.
d9ecaeb
BuildArch: noarch
d9ecaeb
Requires: crontabs logrotate rpm = %{version}-%{release}
d9ecaeb
d9ecaeb
%description cron
d9ecaeb
This package contains a cron job which creates daily logs of installed
d9ecaeb
packages on a system.
d9ecaeb
7c2b7db
%if %{with plugins}
7c2b7db
%package plugin-selinux
7c2b7db
Summary: Rpm plugin for SELinux functionality
7c2b7db
Requires: rpm-libs%{_isa} = %{version}-%{release}
06f829d
Requires: selinux-policy-base
7c2b7db
7c2b7db
%description plugin-selinux
66e2ef5
%{summary}.
7c2b7db
7c2b7db
%package plugin-syslog
7c2b7db
Summary: Rpm plugin for syslog functionality
7c2b7db
Requires: rpm-libs%{_isa} = %{version}-%{release}
7c2b7db
7c2b7db
%description plugin-syslog
66e2ef5
%{summary}.
7c2b7db
7c2b7db
%package plugin-systemd-inhibit
7c2b7db
Summary: Rpm plugin for systemd inhibit functionality
7c2b7db
Requires: rpm-libs%{_isa} = %{version}-%{release}
7c2b7db
7c2b7db
%description plugin-systemd-inhibit
6fa824a
This plugin blocks systemd from entering idle, sleep or shutdown while an rpm
6fa824a
transaction is running using the systemd-inhibit mechanism.
592510c
592510c
%package plugin-ima
592510c
Summary: Rpm plugin ima file signatures
592510c
Requires: rpm-libs%{_isa} = %{version}-%{release}
592510c
592510c
%description plugin-ima
66e2ef5
%{summary}.
592510c
353b5cc
%package plugin-prioreset
353b5cc
Summary: Rpm plugin for resetting scriptlet priorities for SysV init
353b5cc
Requires: rpm-libs%{_isa} = %{version}-%{release}
353b5cc
353b5cc
%description plugin-prioreset
66e2ef5
%{summary}.
353b5cc
353b5cc
Useful on legacy SysV init systems if you run rpm transactions with
353b5cc
nice/ionice priorities. Should not be used on systemd systems.
353b5cc
0a7d172
%package plugin-audit
0a7d172
Summary: Rpm plugin for logging audit events on package operations
0a7d172
Requires: rpm-libs%{_isa} = %{version}-%{release}
0a7d172
0a7d172
%description plugin-audit
cb6bbe0
%{summary}.
0a7d172
0a7d172
# with plugins
0a7d172
%endif
7c2b7db
cvsdist 1bdb862
%prep
421823c
%autosetup -n %{name}-%{srcver} %{?with_int_bdb:-a 1} -p1
cbac7f3
cbac7f3
%if %{with int_bdb}
cbac7f3
ln -s db-%{bdbver} db
cbac7f3
%endif
6d40e7b
f780b84
%build
0a7d172
%set_build_flags
20231bf
9530652
autoreconf -i -f
9530652
Lubos Kardos 8b1762e
# Hardening hack taken from macro %%configure defined in redhat-rpm-config
Lubos Kardos 8b1762e
for i in $(find . -name ltmain.sh) ; do
Lubos Kardos 8b1762e
     %{__sed} -i.backup -e 's~compiler_flags=$~compiler_flags="%{_hardened_ldflags}"~' $i
Lubos Kardos 8b1762e
done;
Lubos Kardos 8b1762e
20231bf
# Using configure macro has some unwanted side-effects on rpm platform
20231bf
# setup, use the old-fashioned way for now only defining minimal paths.
Lubos Kardos 3d139e0
./configure \
Lubos Kardos 3d139e0
    --prefix=%{_usr} \
Lubos Kardos 3d139e0
    --sysconfdir=%{_sysconfdir} \
Lubos Kardos 3d139e0
    --localstatedir=%{_var} \
Lubos Kardos 3d139e0
    --sharedstatedir=%{_var}/lib \
Lubos Kardos 3d139e0
    --libdir=%{_libdir} \
Lubos Kardos 3d139e0
    --build=%{_target_platform} \
Lubos Kardos 3d139e0
    --host=%{_target_platform} \
ae9bea0
    --with-vendor=redhat \
cbac7f3
    %{!?with_int_bdb: --with-external-db} \
f29fc67
    %{!?with_plugins: --disable-plugins} \
cbac7f3
    --with-lua \
cbac7f3
    --with-selinux \
d9ecaeb
    --with-cap \
d9ecaeb
    --with-acl \
Igor Gnatenko 7defdb8
    %{?with_ndb: --with-ndb} \
37398b2
    %{?with_libimaevm: --with-imaevm} \
cae5fc9
    %{?with_zstd: --enable-zstd} \
cae5fc9
    %{?with_lmdb: --enable-lmdb} \
Igor Gnatenko 7f27803
    --enable-python \
Igor Gnatenko 7f27803
    --with-crypto=openssl
cvsdist 87eb98f
2a29f1e
%make_build
cvsdist 1bdb862
f5c5c33
pushd python
bda4949
%py2_build
bda4949
%py3_build
f5c5c33
popd
f5c5c33
cvsdist 1bdb862
%install
2a29f1e
%make_install
cvsdist 9eb5b26
f5c5c33
# We need to build with --enable-python for the self-test suite, but we
f5c5c33
# actually package the bindings built with setup.py (#531543#c26)
f5c5c33
pushd python
bda4949
%py2_install
bda4949
%py3_install
f5c5c33
popd
f5c5c33
f5c5c33
cvsdist 4370f61
# Save list of packages through cron
f780b84
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily
f780b84
install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm
cvsdist 4370f61
f780b84
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
f780b84
install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm
cvsdist 4370f61
2a29f1e
mkdir -p ${RPM_BUILD_ROOT}%{_tmpfilesdir}
2a29f1e
echo "r /var/lib/rpm/__db.*" > ${RPM_BUILD_ROOT}%{_tmpfilesdir}/rpm.conf
15f0143
f780b84
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
1910919
mkdir -p $RPM_BUILD_ROOT%{rpmhome}/macros.d
cvsdist 1bdb862
d58b662
# init an empty database for %ghost'ing
d58b662
./rpmdb --dbpath=$RPM_BUILD_ROOT/var/lib/rpm --initdb
cvsdist 4370f61
c458285
# plant links to relevant db utils as rpmdb_foo for documention compatibility
1fe0077
%if %{without int_bdb}
c458285
for dbutil in dump load recover stat upgrade verify
1fe0077
do
106f86a
    ln -s ../../bin/db_${dbutil} $RPM_BUILD_ROOT/%{rpmhome}/rpmdb_${dbutil}
1fe0077
done
1fe0077
%endif
1fe0077
2c9332a
%find_lang %{name}
2c9332a
cbac7f3
find $RPM_BUILD_ROOT -name "*.la"|xargs rm -f
f780b84
7bc220d
# These live in perl-generators and python-rpm-generators now
eb1281d
rm -f $RPM_BUILD_ROOT/%{rpmhome}/{perldeps.pl,perl.*,pythond*}
7bc220d
rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
a83817c
b60210f
%if %{with check}
b60210f
%check
055ecda
# https://github.com/rpm-software-management/rpm/issues/741
055ecda
make check || (cat tests/rpmtests.log; exit 0)
b60210f
%endif
b60210f
2c9332a
%files -f %{name}.lang
54309be
%license COPYING
353b5cc
%doc CREDITS doc/manual/[a-z]*
Paul Nasrat b1ecfff
2a29f1e
%{_tmpfilesdir}/rpm.conf
1fc711a
%dir %{_sysconfdir}/rpm
Paul Nasrat b1ecfff
1fc711a
%attr(0755, root, root) %dir /var/lib/rpm
d58b662
%attr(0644, root, root) %ghost %config(missingok,noreplace) /var/lib/rpm/*
d58b662
%attr(0644, root, root) %ghost /var/lib/rpm/.*.lock
3fd5536
353b5cc
%{_bindir}/rpm
7c2b7db
%{_bindir}/rpm2archive
3fd5536
%{_bindir}/rpm2cpio
3fd5536
%{_bindir}/rpmdb
f29fc67
%{_bindir}/rpmkeys
3fd5536
%{_bindir}/rpmquery
3fd5536
%{_bindir}/rpmverify
3fd5536
f780b84
%{_mandir}/man8/rpm.8*
f29fc67
%{_mandir}/man8/rpmdb.8*
f29fc67
%{_mandir}/man8/rpmkeys.8*
f780b84
%{_mandir}/man8/rpm2cpio.8*
353b5cc
%{_mandir}/man8/rpm-misc.8*
Paul Nasrat b1ecfff
f780b84
# XXX this places translated manuals to wrong package wrt eg rpmbuild
cbac7f3
%lang(fr) %{_mandir}/fr/man[18]/*.[18]*
cbac7f3
%lang(ko) %{_mandir}/ko/man[18]/*.[18]*
f780b84
%lang(ja) %{_mandir}/ja/man[18]/*.[18]*
f780b84
%lang(pl) %{_mandir}/pl/man[18]/*.[18]*
f780b84
%lang(ru) %{_mandir}/ru/man[18]/*.[18]*
f780b84
%lang(sk) %{_mandir}/sk/man[18]/*.[18]*
cvsdist 1bdb862
1fc711a
%attr(0755, root, root) %dir %{rpmhome}
cbac7f3
%{rpmhome}/macros
323b73c
%{rpmhome}/macros.d
5460ad1
%{rpmhome}/lua
cbac7f3
%{rpmhome}/rpmpopt*
cbac7f3
%{rpmhome}/rpmrc
cbac7f3
cbac7f3
%{rpmhome}/rpmdb_*
cbac7f3
%{rpmhome}/rpm.daily
cbac7f3
%{rpmhome}/rpm.log
c9d5915
%{rpmhome}/rpm.supp
cbac7f3
%{rpmhome}/rpm2cpio.sh
cbac7f3
%{rpmhome}/tgpg
cbac7f3
cbac7f3
%{rpmhome}/platform
cbac7f3
627b9bf
%dir %{rpmhome}/fileattrs
627b9bf
cvsdist 98655b4
%files libs
f29fc67
%{_libdir}/librpmio.so.*
f29fc67
%{_libdir}/librpm.so.*
02c36c0
%if %{with plugins}
7c2b7db
%dir %{_libdir}/rpm-plugins
7c2b7db
7c2b7db
%files plugin-syslog
7c2b7db
%{_libdir}/rpm-plugins/syslog.so
7c2b7db
7c2b7db
%files plugin-selinux
7c2b7db
%{_libdir}/rpm-plugins/selinux.so
7c2b7db
7c2b7db
%files plugin-systemd-inhibit
7c2b7db
%{_libdir}/rpm-plugins/systemd_inhibit.so
353b5cc
%{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
592510c
592510c
%files plugin-ima
592510c
%{_libdir}/rpm-plugins/ima.so
353b5cc
353b5cc
%files plugin-prioreset
353b5cc
%{_libdir}/rpm-plugins/prioreset.so
0a7d172
0a7d172
%files plugin-audit
0a7d172
%{_libdir}/rpm-plugins/audit.so
0a7d172
# with plugins
0a7d172
%endif
f29fc67
f29fc67
%files build-libs
f29fc67
%{_libdir}/librpmbuild.so.*
99d6687
99d6687
%files sign-libs
f29fc67
%{_libdir}/librpmsign.so.*
cvsdist 98655b4
cvsdist 9eb5b26
%files build
3fd5536
%{_bindir}/rpmbuild
cbac7f3
%{_bindir}/gendiff
f29fc67
%{_bindir}/rpmspec
f29fc67
cbac7f3
%{_mandir}/man1/gendiff.1*
c458285
%{_mandir}/man8/rpmbuild.8*
c458285
%{_mandir}/man8/rpmdeps.8*
f29fc67
%{_mandir}/man8/rpmspec.8*
cbac7f3
3fd5536
%{rpmhome}/brp-*
c458285
%{rpmhome}/check-*
3fd5536
%{rpmhome}/debugedit
41d93db
%{rpmhome}/sepdebugcrcfix
3fd5536
%{rpmhome}/find-debuginfo.sh
3fd5536
%{rpmhome}/find-lang.sh
c458285
%{rpmhome}/*provides*
c458285
%{rpmhome}/*requires*
c458285
%{rpmhome}/*deps*
c458285
%{rpmhome}/*.prov
c458285
%{rpmhome}/*.req
c458285
%{rpmhome}/config.*
cbac7f3
%{rpmhome}/mkinstalldirs
627b9bf
%{rpmhome}/fileattrs/*
f29fc67
f29fc67
%files sign
f29fc67
%{_bindir}/rpmsign
f29fc67
%{_mandir}/man8/rpmsign.8*
cvsdist 1bdb862
Igor Gnatenko 76e0e5c
%files -n python2-%{name}
Iryna Shcherbina 412abe2
%{python2_sitearch}/%{name}/
Iryna Shcherbina 412abe2
%{python2_sitearch}/%{name}-%{version}*.egg-info
f5c5c33
Igor Gnatenko 76e0e5c
%files -n python3-%{name}
Igor Gnatenko 76e0e5c
%{python3_sitearch}/%{name}/
353b5cc
%{python3_sitearch}/%{name}-%{version}*.egg-info
cvsdist b60fd6b
cvsdist 1bdb862
%files devel
f780b84
%{_mandir}/man8/rpmgraph.8*
3fd5536
%{_bindir}/rpmgraph
c458285
%{_libdir}/librp*[a-z].so
Igor Gnatenko 76e0e5c
%{_libdir}/pkgconfig/%{name}.pc
Igor Gnatenko 76e0e5c
%{_includedir}/%{name}/
cbac7f3
d9ecaeb
%files cron
d9ecaeb
%{_sysconfdir}/cron.daily/rpm
d9ecaeb
%config(noreplace) %{_sysconfdir}/logrotate.d/rpm
d9ecaeb
f780b84
%files apidocs
54309be
%license COPYING
54309be
%doc doc/librpm/html/*
cvsdist 1bdb862
cvsdist 1bdb862
%changelog
0a7d172
* Mon Jun 10 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.90-0.git14653.1
0a7d172
- Update to 4.15.0 alpha
0a7d172
d958e93
* Mon Jun 10 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-14
d958e93
- Drop support for sanitizer build, it never really worked anyway
d958e93
- Drop leftover build-dependency on binutils-devel
d958e93
- Truncate changelog to rpm 4.14.x (last two years)
d958e93
398bbf6
* Mon Jun 10 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-13
398bbf6
- Drop support for Fedora < 28 builds
398bbf6
- Drop leftover BDB-related compiler flag foo
398bbf6
d90bd67
* Fri Jun 07 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-12
d90bd67
- Use pre-determined buildhost in test-suite to avoid DNS usage
d90bd67
- Drop obsolete specspo and gpg2 related patches
d90bd67
bda4949
* Fri Jun 07 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.2.1-11
bda4949
- Use py2/3 macros for building and installing the bindings
bda4949
3abc976
* Tue May 21 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-10
3abc976
- Support build-id generation from compressed ELF files (#1650072)
3abc976
2688218
* Fri May 03 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.2.1-9
2688218
- Suggest gdb-minimal
2688218
81329c3
* Thu Apr 25 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-8
81329c3
- Replace deprecated __global_ldflags uses with build_ldflags macro
81329c3
c7bd807
* Thu Apr 11 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-7
c7bd807
- Fix excessive reference counting on faked string .decode()
c7bd807
d4f7fd8
* Wed Apr 10 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-6
d4f7fd8
- Unbreak Python 3 API by returning string data as surrogate-escaped utf-8
d4f7fd8
  string objects instead of bytes (#1693751)
d4f7fd8
- As a temporary crutch,  monkey-patch a .decode() method to returned strings
d4f7fd8
  to give users time to migrate from the long-standing broken behavior
d4f7fd8
57b4e92
* Wed Apr 10 2019 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-5
57b4e92
- Generate minidebug for PIE executables on file >= 5.33 too
57b4e92
- Backport find-debuginfo --g-libs option for glibc's benefit (#1661512)
57b4e92
9519e9e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.14.2.1-4.1
9519e9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9519e9e
af9bdc4
* Wed Dec 19 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-4
af9bdc4
- Backport the new modularity label tag (#1650286)
af9bdc4
1eb187d
* Mon Nov 19 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-3
1eb187d
- Take prefix into account when compressing man pages etc for Flatpak builds
1eb187d
06f829d
* Wed Oct 24 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-2
06f829d
- Selinux plugin requires a base policy to work (#1641631)
06f829d
4fa277d
* Mon Oct 22 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2.1-1
4fa277d
- Rebase to rpm 4.14.2.1 (http://rpm.org/wiki/Releases/4.14.2.1)
4fa277d
69ee4d2
* Wed Oct 17 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.2-9
69ee4d2
- Push name/epoch/version/release macro before invoking depgens
69ee4d2
5460ad1
* Tue Oct 16 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.2-8
5460ad1
- Resurrect long since broken Lua library path
5460ad1
4ba57b6
* Fri Oct 12 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-7
4ba57b6
- Actually fail build on test-suite failures again
4ba57b6
- Invoke python2 explicitly from test-suite to unbreak build, part II
4ba57b6
106f86a
* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-6
106f86a
- Drop duplicate BDB buildrequire
106f86a
- Drop nowadays unnecessary BDB macro foo
106f86a
- Drop nowadays unnecessary manual libcap dependency
106f86a
d58b662
* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-5
d58b662
- Own all rpmdb files and ensure the list remains up to date
d58b662
- Drop redundant verify exclusions on rpmdb ghosts
3f81427
- Fix build when systemd is not installed (duh)
d58b662
2a29f1e
* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-4
2a29f1e
- Erm, really use the macro for tmpfiles.d path
2a29f1e
- Erm, don't nuke buildroot at beginning of %%install
2a29f1e
- Use modern build/install helper macros
2a29f1e
85cd9c4
* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-3
85cd9c4
- Eh, selinux plugin dependency condition was upside down (#1493267)
85cd9c4
- Drop no longer necessary condition over imaevm name
85cd9c4
- Drop no longer necessary obsolete on compat-librpm3
85cd9c4
9a8f208
* Thu Oct 11 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-2
9a8f208
- Fix ancient Python GIL locking bug (#1632488)
9a8f208
- Use the appropriate macro for tmpfiles.d now that one exists
9a8f208
06b8b7f
* Tue Aug 21 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-1
06b8b7f
- Update to rpm 4.14.2 final (http://rpm.org/wiki/Releases/4.14.2)
06b8b7f
8d934fd
* Mon Aug 13 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-0.rc2.2
8d934fd
- Move python-macro-helper to main package where the macros are (#1577860)
8d934fd
cae019c
* Wed Aug 08 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-0.rc2.1
cae019c
- Update to rpm 4.14.2-rc2
cae019c
adbe363
* Sat Jul 21 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.2-0.rc1.2
adbe363
- Decompress DWARF compressed ELF sections
adbe363
95db654
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.14.2-0.rc1.1.2
95db654
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
95db654
8029c4e
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 4.14.2-0.rc1.1.1
8029c4e
- Rebuilt for Python 3.7
8029c4e
22e1547
* Fri Jun 29 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.2-0.rc1.1
22e1547
- Update to rpm 4.14.2-rc1
22e1547
- Patching test-suite for python2 too painful, just sed it instead
22e1547
- Fix premature version increment from previous changelog entries, oops
22e1547
22e1547
* Fri Jun 29 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.1-13
e79d625
- Ehm, need to patch the autogenerated rpmtests script too for python2
e79d625
- Ehm, it's ldconfig_scriptlets not scripts
e79d625
- Drop the non-working python envvar magic from obsoleted change
e79d625
22e1547
* Fri Jun 29 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.1-12
8b3e871
- Invoke python2 explicitly from test-suite to unbreak build
8b3e871
22e1547
* Fri Jun 29 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.1-11
7d75372
- Remove direct ldconfig calls, use compat macros instead
7d75372
b86c75e
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 4.14.1-10.1
b86c75e
- Rebuilt for Python 3.7
b86c75e
364d038
* Mon May 28 2018 Miro Hrončok <mhroncok@redhat.com> - 4.14.1-10
364d038
- Backport upstream solution to make brp-python-bytecompile automagic part opt-outable
364d038
  https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation
364d038
43ea916
* Tue May 22 2018 Mark Wielaard <mjw@fedoraproject.org> - 4.14.1-9
43ea916
- find-debuginfo.sh: Handle application/x-pie-executable (#1581224)
43ea916
99d6687
* Tue Feb 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.1-8
99d6687
- Split rpm-build-libs to one more subpackage rpm-sign-libs
99d6687
29c1408
* Mon Feb 19 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.1-7
29c1408
- Explicitly BuildRequire gcc and make
29c1408
91f61a5
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.1-6.1
91f61a5
- Escape macros in %%changelog
91f61a5
a83817c
* Wed Jan 31 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.1-6
a83817c
- Avoid unnecessary macro helper dependency on /usr/bin/python (#1538657)
a83817c
- Fix release of previous changelog entry
a83817c
a83817c
* Tue Jan 30 2018 Tomas Orsava <torsava@redhat.com> - 4.14.1-5
0670d68
- Add envvar that will be present during RPM build,
0670d68
  Part of a Fedora Change for F28: "Avoid /usr/bin/python in RPM build"
0670d68
  https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
0670d68
3f65cd7
* Tue Jan 30 2018 Petr Viktorin <pviktori@redhat.com> - 4.14.1-4
3f65cd7
- Skip automatic Python byte-compilation if *.py files are not present
3f65cd7
c6d1f7c
* Thu Jan 25 2018 Florian Weimer <fweimer@redhat.com> - 4.14.1-3
c6d1f7c
- Rebuild to work around gcc bug leading to librpm miscompilation (#1538648)
c6d1f7c
eb1281d
* Thu Jan 18 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.1-2
eb1281d
- Avoid nuking the new python-macro-helper along with dep generators (#1535692)
eb1281d
8219d71
* Tue Jan 16 2018 Panu Matilainen <pmatilai@redhat.com> - 4.14.1-1
8219d71
- Rebase to rpm 4.14.1 (http://rpm.org/wiki/Releases/4.14.1)
8219d71
193c887
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.0-5
193c887
- Fix typo in Obsoletes
193c887
e6d364f
* Mon Nov 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.0-4
e6d364f
- Remove platform-python bits
e6d364f
1a61b7b
* Thu Oct 26 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-3
1a61b7b
- Move selinux plugin dependency to selinux-policy in Fedora >= 28 (#1493267)
1a61b7b
7f79c17
* Thu Oct 12 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-2
7f79c17
- Dump out test-suite log in case of failures again
7f79c17
- Don't assume per-user groups in test-suite
7f79c17
9c3c353
* Thu Oct 12 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-1
9c3c353
- Rebase to rpm 4.14.0 final (http://rpm.org/wiki/Releases/4.14.0)
9c3c353
baaf8b9
* Tue Oct 10 2017 Troy Dawson <tdawson@redhat.com> - 4.14.0-0.rc2.6
baaf8b9
- Cleanup spec file conditionals
baaf8b9
cae5fc9
* Tue Oct 03 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.5
cae5fc9
- Add build conditionals for zstd and lmdb support
cae5fc9
- Enable zstd support
cae5fc9
0cd499e
* Tue Oct 03 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.4
0cd499e
- Spec cleanups
0cd499e
Panu Matilainen b4ee379
* Fri Sep 29 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.3
Panu Matilainen b4ee379
- BuildRequire gnupg2 for the testsuite
Panu Matilainen b4ee379
7e9150e
* Fri Sep 29 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.2
7e9150e
- ima-evm-utils only has a -devel package in fedora >= 28
7e9150e
4e78f86
* Thu Sep 28 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc2.1
4e78f86
- Rebase to rpm 4.14.0-rc2 (http://rpm.org/wiki/Releases/4.14.0)
4e78f86
822c26c
* Mon Sep 18 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc1.3
822c26c
- Fix Ftell() past 2GB on 32bit architectures (#1492587)
822c26c
37398b2
* Thu Sep 07 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc1.2
37398b2
- Actually honor with/without libimaevm option
aa109fa
- ima-evm-utils-devel >= 1.0 is required for rpm >= 4.14.0
37398b2
1dda23d
* Wed Sep 06 2017 Panu Matilainen <pmatilai@redhat.com> - 4.14.0-0.rc1.1
1dda23d
- Rebase to rpm 4.14.0-rc1 (http://rpm.org/wiki/Releases/4.14.0)
1dda23d
- Re-enable SHA256 header digest generation (see #1480407)
1dda23d
fefe4f0
* Mon Aug 28 2017 Panu Matilainen <pmatilai@redhat.com> - 4.13.90-0.git14000.8
fefe4f0
- Band-aid for DB_VERSION_MISMATCH errors on glibc updates (#1465809)
fefe4f0
67d7133
* Thu Aug 24 2017 Panu Matilainen <pmatilai@redhat.com> - 4.13.90-0.git14000.7
67d7133
- Remove ugly kludges from posttrans script, BDB handles this now
67d7133
6f54bf0
* Fri Aug 18 2017 Panu Matilainen <pmatilai@redhat.com> - 4.13.90-0.git14000.6
6f54bf0
- Silence harmless but bogus error message on noarch packages (#1482144)
6f54bf0
4d1adcf
* Thu Aug 17 2017 Miro Hrončok <mhroncok@redhat.com> - 4.13.90-0.git14002.5
4d1adcf
- Build with platform_python
4d1adcf
Iryna Shcherbina 412abe2
* Mon Aug 14 2017 Miro Hrončok <mhroncok@redhat.com> - 4.13.90-0.git14000.4
Iryna Shcherbina 412abe2
- Add platform-python bytecompilation patch: platform-python-bytecompile.patch
Iryna Shcherbina 412abe2
- Add platform python deps generator patch: platform-python-abi.patch
Iryna Shcherbina 412abe2
- Add a platform-python subpackage and remove system python related declarations
Iryna Shcherbina 412abe2
- Build rpm without platform_python for bytecompilation
Iryna Shcherbina 412abe2
  (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
Iryna Shcherbina 412abe2
351ab49
* Mon Aug 14 2017 Panu Matilainen <pmatilai@redhat.com> - 4.13.90-0.git14000.3
351ab49
- Disable macro argument quoting as a band-aid to #1481025
351ab49
14f55d6
* Fri Aug 11 2017 Panu Matilainen <pmatilai@redhat.com> - 4.13.90-0.git14000.2
14f55d6
- Disable SHA256 header-only digest generation temporarily (#1480407)
14f55d6
353b5cc
* Thu Aug 10 2017 Panu Matilainen <pmatilai@redhat.com> - 4.13.90-0.git14000.1
353b5cc
- Rebase to rpm 4.13.90 aka 4.14.0-alpha (#1474836)
353b5cc