[packages/appstream-glib] apply rpm5 patch only when building against rpm5
atler
atler at pld-linux.org
Tue Nov 10 13:38:57 CET 2020
commit aefc5e0bed324c89c88559388ab2b7f57c9d8b94
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Nov 10 13:38:09 2020 +0100
apply rpm5 patch only when building against rpm5
appstream-glib.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/appstream-glib.spec b/appstream-glib.spec
index cd80c57..724763a 100644
--- a/appstream-glib.spec
+++ b/appstream-glib.spec
@@ -155,7 +155,9 @@ Bashowe dopełnianie składni polecenia appstream-builder.
%prep
%setup -q
+%if "%(rpm -q --qf '%{V}' rpm-devel | cut -f1 -d.)" == "5"
%patch0 -p1
+%endif
%patch1 -p1
%if %{with static_libs}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/appstream-glib.git/commitdiff/aefc5e0bed324c89c88559388ab2b7f57c9d8b94
More information about the pld-cvs-commit
mailing list