]> git.pld-linux.org Git - packages/python-enum34.git/commitdiff
automatic change: use py_build/py_install macros
authorJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:42 +0000 (18:06 +0100)
committerJacek Konieczny <jajcus@jajcus.net>
Sat, 28 Nov 2015 17:06:42 +0000 (18:06 +0100)
python-enum34.spec

index 47bfa7b480389713f4fd5cb4a9937038905ffb1d..19afbbfb9f756e598a913ddd8495f789da2d5ced 100644 (file)
@@ -63,23 +63,19 @@ in an enumeration.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
 %{?with_tests:%{__python} enum/test_enum.py}
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
 %{?with_tests:%{__python3} enum/test_enum.py}
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
-%{__python} setup.py \
-       build --build-base build-2 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
 rm -r $RPM_BUILD_ROOT%{py_sitescriptdir}/enum/{LICENSE,README,doc}
 rm -r $RPM_BUILD_ROOT%{py_sitescriptdir}/enum/test_*.py*
@@ -88,11 +84,7 @@ rm -r $RPM_BUILD_ROOT%{py_sitescriptdir}/enum/test_*.py*
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 
 rm -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/enum/{LICENSE,README,doc}
 rm $RPM_BUILD_ROOT%{py3_sitescriptdir}/enum/test_enum.py
This page took 0.075753 seconds and 4 git commands to generate.