]> git.pld-linux.org Git - packages/python-dateutil.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-dateutil.spec

index dd09d6e47ff3de1c8dec212a7f7fe2167b69d336..2242fdb5f9b44d5ee5276f4e5e6530337ea7d8b6 100644 (file)
@@ -91,23 +91,18 @@ Ten pakiet zawiera moduĊ‚ Pythona 3.x.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3
+%py3_build
 %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
 
 %py_postclean
 
@@ -116,12 +111,7 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install \
-               --skip-build \
-               --optimize=2 \
-               --root=$RPM_BUILD_ROOT
+%py3_install
 
 # NOTE: Not sure but seems zoneinfo is needed under windows only
 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/dateutil/zoneinfo
This page took 0.08059 seconds and 4 git commands to generate.