From 3c780df3b9a5ab23e79cd515ce3a5b64c8feb75b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 16 Mar 2017 15:17:54 +0100 Subject: [PATCH] make it build on RPM less than 4.14 Signed-off-by: Igor Gnatenko --- libsolv.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libsolv.spec b/libsolv.spec index 9982949..8367a9b 100644 --- a/libsolv.spec +++ b/libsolv.spec @@ -163,7 +163,12 @@ Python 3 version. %endif %prep +# XXX: switch to %{?commit:-n %{name}-%{commit}} in RPM 4.14 +%if %{undefined commit} +%autosetup -p1 +%else %autosetup -p1 %{?commit:-n %{name}-%{commit}} +%endif mkdir build %build