]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- define _rpmversion macro for compatibility with rpm5
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 18 Oct 2020 15:25:37 +0000 (17:25 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 18 Oct 2020 15:25:37 +0000 (17:25 +0200)
rpm.spec
rpmversion.patch [new file with mode: 0644]

index 4078ba53b04653c73dc0c2d1a2e9483f6247a851..35e2370ce9882ccd1dde8eb1d4d818458429aaa3 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -68,6 +68,7 @@ Patch14:      %{name}-ignore-missing-macro-files.patch
 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
@@ -551,6 +552,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
 %patch15 -p1
 %patch16 -p1
 %patch17 -p1
+%patch18 -p1
 
 install %{SOURCE15} scripts/perl.prov.in
 
diff --git a/rpmversion.patch b/rpmversion.patch
new file mode 100644 (file)
index 0000000..1dd7d49
--- /dev/null
@@ -0,0 +1,10 @@
+--- 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.
This page took 0.189024 seconds and 4 git commands to generate.