3 %bcond_without tests # do not perform "make test"
5 %define module Werkzeug
6 Summary: The Swiss Army knife of Python web development
11 Group: Development/Languages/Python
12 Source0: http://pypi.python.org/packages/source/W/Werkzeug/%{module}-%{version}.tar.gz
13 # Source0-md5: 12aa03e302ce49da98703938f257347a
14 URL: http://werkzeug.pocoo.org/
15 BuildRequires: python-distribute
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.219
18 Requires: python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Werkzeug started as simple collection of various utilities for WSGI
24 applications and has become one of the most advanced WSGI utility
25 modules. It includes a powerful debugger, full featured request and
26 response objects, HTTP utilities to handle entity tags, cache control
27 headers, HTTP dates, cookie handling, file uploads, a powerful URL
28 routing system and a bunch of community contributed addon modules.
31 %setup -q -n %{module}-%{version}
34 %{__python} setup.py build
36 %{?with_tests:%{__python} setup.py test}
39 rm -rf $RPM_BUILD_ROOT
40 %{__python} setup.py install \
43 --root=$RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
48 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
49 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{py_sitescriptdir}/werkzeug
59 %if "%{py_ver}" > "2.4"
60 %{py_sitescriptdir}/%{module}-*.egg-info
62 %{_examplesdir}/%{name}-%{version}