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