From 6fdd2fc47121433d527672415a744d5d989ef3a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 12 Feb 2019 16:03:25 +0100 Subject: [PATCH] https://fedoraproject.org/wiki/Changes/Python_Extension_Flags --- libvirt-python.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt-python.spec b/libvirt-python.spec index 70de8af..060d085 100644 --- a/libvirt-python.spec +++ b/libvirt-python.spec @@ -122,7 +122,7 @@ exit 1 CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build %endif %if %{with_python3} -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build +%py3_build %endif %install @@ -130,7 +130,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %{__python2} setup.py install --skip-build --root=%{buildroot} %endif %if %{with_python3} -%{__python3} setup.py install --skip-build --root=%{buildroot} +%py3_install %endif %check