[packages/python-waitress] new, version 0.8.2

glen glen at pld-linux.org
Sun Jan 27 21:37:27 CET 2013


commit a30495cfb5949f4cc0e29ab64b6b44925c8b648b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 27 22:36:54 2013 +0200

    new, version 0.8.2
    
    created with python template spec

 python-waitress.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
---
diff --git a/python-waitress.spec b/python-waitress.spec
new file mode 100644
index 0000000..34f0fd8
--- /dev/null
+++ b/python-waitress.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	waitress
+Summary:	Waitress WSGI server
+Name:		python-%{module}
+Version:	0.8.2
+Release:	1
+License:	ZPL 2.1
+Group:		Libraries/Python
+Source0:	http://pypi.python.org/packages/source/w/waitress/%{module}-%{version}.tar.gz
+# Source0-md5:	2d924c85bc1005174da1d14294fcc663
+URL:		http://docs.pylonsproject.org/projects/waitress/
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Waitress is meant to be a production-quality pure-Python WSGI server
+with very acceptable performance.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# gives tcp connect errors
+mv %{module}/tests/test_functional.py{,.disable}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:PYTHONPATH=build/lib %{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
+
+%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 CHANGES.txt LICENSE.txt README.rst TODO.txt
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%{py_sitescriptdir}/%{module}-%{version}*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-waitress.git/commitdiff/a30495cfb5949f4cc0e29ab64b6b44925c8b648b



More information about the pld-cvs-commit mailing list