From aae45ee4799a18c2289b0b0ea2a8e6e46d231d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 13 Feb 2019 01:09:32 +0100 Subject: [PATCH] https://fedoraproject.org/wiki/Changes/Python_Extension_Flags --- setools.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}