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
%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}
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