]> git.pld-linux.org Git - packages/python-parted.git/blobdiff - python-parted.spec
automatic change: use py_build/py_install macros
[packages/python-parted.git] / python-parted.spec
index 2f7564858379edd8169dab37e725fa244bcb3f04..b88dd3c73862ba4ddec58a0455a69932d7fd58af 100644 (file)
@@ -55,35 +55,23 @@ tablic partycji.
 
 %build
 %if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build --build-base build-2
+%py_build
 %endif
 
 %if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__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
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build --build-base build-3 \
-       install --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
This page took 0.080326 seconds and 4 git commands to generate.