diff --git a/sympy.spec b/sympy.spec index 9537ab4..151e8a2 100644 --- a/sympy.spec +++ b/sympy.spec @@ -113,11 +113,11 @@ popd %build # Build the python2 version -python2 setup.py build +%py2_build # Build the python3 version pushd %{py3dir} -python3 setup.py build +%py3_build popd # Build the documentation @@ -131,7 +131,7 @@ popd %install # Install the python3 version pushd %{py3dir} -python3 setup.py install -O1 --skip-build --root %{buildroot} +%py3_install sed -i 's/env python/python3/' %{buildroot}%{_bindir}/isympy touch -r bin/isympy %{buildroot}%{_bindir}/isympy mv %{buildroot}%{_bindir}/isympy %{buildroot}%{_bindir}/python3-isympy @@ -140,7 +140,7 @@ mv %{buildroot}%{_mandir}/man1/isympy.1 \ popd # Install the python2 version -python2 setup.py install -O1 --skip-build --root %{buildroot} +%py2_install sed -i 's/env python/python2/' %{buildroot}%{_bindir}/isympy touch -r bin/isympy %{buildroot}%{_bindir}/isympy