Reduce conditions a bit

This commit is contained in:
Petr Menšík 2018-04-11 21:15:38 +02:00
parent 1fe8f21890
commit 189e995715

View File

@ -154,13 +154,7 @@ This package contains documentation for the ldns library
%{?extra_version:%global pkgname %{name}-%{version}%{extra_version}}%{!?extra_version:%global pkgname %{name}-%{version}}
%setup -qcn %{pkgname}
%if %{with python3}
mv %{pkgname} %{pkgname}_python3
pushd %{pkgname}_python3
%else
pushd %{pkgname}
%endif # with python3
%patch1 -p2 -b .multilib
%patch2 -p1 -b .limit
@ -182,6 +176,10 @@ cp -p contrib/ldnsx/LICENSE ../LICENSE.ldnsx
cp -p contrib/ldnsx/README ../README.ldnsx
popd
%if %{with python3}
mv %{pkgname} %{pkgname}_python3
%endif
%if %{with python2}
cp -a %{pkgname}_python3 %{pkgname}_python2
%endif # with python2