From c6a9fbf476d6e94dd18b35dcc63d1c932a0e5332 Mon Sep 17 00:00:00 2001 From: zbyniu Date: Fri, 6 Apr 2012 08:41:34 +0000 Subject: [PATCH] - new Changed files: python-Werkzeug.spec -> 1.1 --- python-Werkzeug.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 python-Werkzeug.spec diff --git a/python-Werkzeug.spec b/python-Werkzeug.spec new file mode 100644 index 0000000..28c308f --- /dev/null +++ b/python-Werkzeug.spec @@ -0,0 +1,67 @@ +# +# Conditional build: +%bcond_without tests # do not perform "make test" + +%define module Werkzeug +Summary: The Swiss Army knife of Python web development +#Summary(pl.UTF-8): - +Name: python-%{module} +Version: 0.8.3 +Release: 0.1 +License: BSD +Group: Development/Languages/Python +Source0: http://pypi.python.org/packages/source/W/Werkzeug/%{module}-%{version}.tar.gz +# Source0-md5: 12aa03e302ce49da98703938f257347a +URL: http://werkzeug.pocoo.org/ +BuildRequires: python-distribute +BuildRequires: rpm-pythonprov +# if py_postclean is used +BuildRequires: rpmbuild(macros) >= 1.219 +#Requires: python-libs +Requires: python-modules +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Werkzeug started as simple collection of various utilities for WSGI +applications and has become one of the most advanced WSGI utility +modules. It includes a powerful debugger, full featured request and +response objects, HTTP utilities to handle entity tags, cache control +headers, HTTP dates, cookie handling, file uploads, a powerful URL +routing system and a bunch of community contributed addon modules. + +%description -l pl.UTF-8 + +%prep +%setup -q -n %{module}-%{version} + +%build +%{__python} setup.py build + +%{?with_tests:%{__python} setup.py test} + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install \ + --skip-build \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} +%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc AUTHORS CHANGES +%{py_sitescriptdir}/werkzeug +%if "%{py_ver}" > "2.4" +%{py_sitescriptdir}/%{module}-*.egg-info +%endif +%{_examplesdir}/%{name}-%{version} -- 2.43.0