From 779e8f00346f94bd5d32d94ce7b13b1cda8de64e Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 12 2019 15:31:36 +0000 Subject: https://fedoraproject.org/wiki/Changes/Python_Extension_Flags --- diff --git a/pyproj.spec b/pyproj.spec index cfdafac..610b654 100644 --- a/pyproj.spec +++ b/pyproj.spec @@ -117,7 +117,7 @@ CFLAGS="%{optflags}" %{__python2} setup.py build %if 0%{?with_python3} pushd %{py3dir} -CFLAGS="%{optflags}" %{__python3} setup.py build +%py3_build popd %endif # if with_python3 @@ -133,7 +133,7 @@ chrpath -d %{buildroot}/%{python2_sitearch}/%{name}/*.so %if 0%{?with_python3} pushd %{py3dir} -%{__python3} setup.py install --skip-build --root %{buildroot} +%py3_install # correct wrong write permission for group chmod 755 %{buildroot}/%{python3_sitearch}/%{name}/*.so