make it build on RPM less than 4.14

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-03-16 15:17:54 +01:00
parent 86491cb54f
commit 3c780df3b9

View File

@ -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