Patch15: x32.patch
Patch16: rpm5-db-compat.patch
Patch17: python-internal-build.patch
+Patch18: rpmversion.patch
URL: https://rpm.org/
BuildRequires: db-devel >= %{db_ver}
BuildRequires: autoconf >= 2.63
%patch15 -p1
%patch16 -p1
%patch17 -p1
+%patch18 -p1
install %{SOURCE15} scripts/perl.prov.in
--- /dev/null
+--- rpm-4.16.0/macros.in~ 2020-09-30 09:48:01.000000000 +0200
++++ rpm-4.16.0/macros.in 2020-10-18 17:23:24.762186901 +0200
+@@ -6,6 +6,7 @@
+ # should be added to /etc/rpm/macros, while per-user configuration should
+ # be added to ~/.rpmmacros.
+ #
++%_rpmversion @VERSION@
+
+ #==============================================================================
+ # ---- A macro that expands to nothing.