diff --git a/setools.spec b/setools.spec index 35001d2..abbfc54 100644 --- a/setools.spec +++ b/setools.spec @@ -125,8 +125,7 @@ cp -a ../setools-%{version}%{?setools_pre_ver:-%{setools_pre_ver}} ../setools-%{ %build -# Remove CFLAGS=... for noarch packages (unneeded) -CFLAGS="%{optflags}" %{__python3} setup.py build +%py3_build pushd ../setools-%{version}%{?setools_pre_ver:-%{setools_pre_ver}}-python2 # Remove CFLAGS=... for noarch packages (unneeded) @@ -141,7 +140,7 @@ pushd ../setools-%{version}%{?setools_pre_ver:-%{setools_pre_ver}}-python2 popd rm -rf %{buildroot}%{_bindir} -%{__python3} setup.py install --root %{buildroot} +%py3_install %check %if %{?_with_check:1}%{!?_with_check:0}