]> git.pld-linux.org Git - packages/appstream-glib.git/commitdiff
apply rpm5 patch only when building against rpm5
authorJan Palus <atler@pld-linux.org>
Tue, 10 Nov 2020 12:38:09 +0000 (13:38 +0100)
committerJan Palus <atler@pld-linux.org>
Tue, 10 Nov 2020 12:38:09 +0000 (13:38 +0100)
appstream-glib.spec

index cd80c57e4b8bd16e9af2e305de1abdb7c23c36ae..724763a38d8a10007359e55d7c0eaecf57a4e8b5 100644 (file)
@@ -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}
This page took 0.170946 seconds and 4 git commands to generate.