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