]> git.pld-linux.org Git - packages/python3-werkzeug.git/blobdiff - python-werkzeug.spec
- release 5 (by relup.sh)
[packages/python3-werkzeug.git] / python-werkzeug.spec
index 5d597935e68a4e2ad696a969b3363dab5eaad587..8816d4c5f85b78307efe591ea41c63caabaa95af 100644 (file)
@@ -10,7 +10,7 @@
 Summary:       The Swiss Army knife of Python web development
 Name:          python-%{module}
 Version:       0.9.6
-Release:       4
+Release:       5
 License:       BSD
 Group:         Development/Languages/Python
 Source0:       http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-%{version}.tar.gz
@@ -61,15 +61,11 @@ routing system and a bunch of community contributed addon modules.
 
 %build
 %if %{with python2}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
 %endif
 
 %if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 %endif
 
 
@@ -77,21 +73,13 @@ CFLAGS="%{rpmcflags}" \
 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
 
 %if %{with python2}
This page took 0.030503 seconds and 4 git commands to generate.