3 %bcond_without tests # do not perform "make test"
6 Summary: A flexible forms validation and rendering library for python web development
12 Group: Development/Languages/Python
13 Source0: http://pypi.python.org/packages/source/W/WTForms/%{module}-%{version}.zip
14 # Source0-md5: d4284596daadf7eae048aef8e449c543
15 URL: http://wtforms.simplecodes.com/
16 BuildRequires: python-distribute
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.219
20 Requires: python-modules
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A flexible forms validation and rendering library for python web
29 %setup -q -n %{module}-%{version}
32 %{__python} setup.py build
34 %{?with_tests:%{__python} setup.py test}
37 rm -rf $RPM_BUILD_ROOT
38 %{__python} setup.py install \
41 --root=$RPM_BUILD_ROOT
43 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
44 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc AUTHORS.txt CHANGES.txt README.txt
53 %{py_sitescriptdir}/wtforms
54 %if "%{py_ver}" > "2.4"
55 %{py_sitescriptdir}/%{module}-*.egg-info