]> git.pld-linux.org Git - packages/python-wtforms.git/blobdiff - python-wtforms.spec
- python 3.6
[packages/python-wtforms.git] / python-wtforms.spec
index 26ae60c8384b3ada3874bb3a410895952276b7fb..cac61ededd977a504ea61e8ada3c3b48022ec0fb 100644 (file)
@@ -10,14 +10,14 @@ Summary:    A flexible forms validation and rendering library for python web develo
 Summary(pl.UTF-8):     Biblioteka umożliwiająca generację i walidację formularzy html w jezyku python
 Name:          python-%{module}
 Version:       2.0.1
-Release:       5
+Release:       7
 License:       BSD
 Group:         Development/Languages/Python
 Source0:       http://pypi.python.org/packages/source/W/WTForms/WTForms-%{version}.zip
 # Source0-md5: aaac94c137b3cd63efeb3ded51082cde
 URL:           http://wtforms.simplecodes.com/
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: rpmbuild(macros) >= 1.710
 BuildRequires: unzip
 %if %{with python2}
 BuildRequires: python-distribute
@@ -72,11 +72,11 @@ Dokumentacja API %{module}.
 
 %build
 %if %{with python2}
-%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%py_build %{?with_tests:test}
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%py3_build %{?with_tests:test}
 %endif
 
 %if %{with doc}
@@ -89,21 +89,13 @@ rm -rf _build/html/_sources
 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.122327 seconds and 4 git commands to generate.