From 11455bfcab28039cb5af00fd1e5c3b3d0de9886f0bc615f6d7294986647bdd3e Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 15 Jan 2013 14:12:31 +0000 Subject: [PATCH] Accepting request 148493 from home:posophe:branches:devel:languages:python Update and python3 support OBS-URL: https://build.opensuse.org/request/show/148493 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=23 --- gunicorn-0.14.3.tar.gz | 3 -- gunicorn-0.17.2.tar.gz | 3 ++ python-gunicorn.changes | 16 ++++++++ python-gunicorn.spec | 15 ++++++-- python3-gunicorn.changes | 5 +++ python3-gunicorn.spec | 80 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 116 insertions(+), 6 deletions(-) delete mode 100644 gunicorn-0.14.3.tar.gz create mode 100644 gunicorn-0.17.2.tar.gz create mode 100644 python3-gunicorn.changes create mode 100644 python3-gunicorn.spec diff --git a/gunicorn-0.14.3.tar.gz b/gunicorn-0.14.3.tar.gz deleted file mode 100644 index 3a42ff5..0000000 --- a/gunicorn-0.14.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fcff4d54533c219ca966cf53e1d5b1856f22180a1ef56f2dc97856544d94360a -size 208108 diff --git a/gunicorn-0.17.2.tar.gz b/gunicorn-0.17.2.tar.gz new file mode 100644 index 0000000..b8b553f --- /dev/null +++ b/gunicorn-0.17.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3daeecbf3c3f324317c847bd9523d2c7dcdcc7796fd2e57c18b16c0adf5897e5 +size 360120 diff --git a/python-gunicorn.changes b/python-gunicorn.changes index 9d95bd5..a66ccf9 100644 --- a/python-gunicorn.changes +++ b/python-gunicorn.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Jan 14 18:28:52 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Mon Jan 14 17:06:58 UTC 2013 - p.drouand@gmail.com + +- Update to 0.17.2: + * optimize readline() + * make import errors more visible + * don't pass ssl_options if there are any + * don't accept str or unicode in the body +- Build documentation from source with python-Sphinx +- Remove duplicate files with fdupes + ------------------------------------------------------------------- Tue May 15 10:52:16 UTC 2012 - suse@ammler.ch diff --git a/python-gunicorn.spec b/python-gunicorn.spec index 46e303a..03ebc6e 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -1,7 +1,7 @@ # # spec file for package python-gunicorn # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-gunicorn -Version: 0.14.3 +Version: 0.17.2 Release: 0 Summary: WSGI HTTP Server for UNIX License: MIT @@ -27,6 +27,9 @@ Source: http://pypi.python.org/packages/source/g/gunicorn/gunicorn-%{ver BuildRequires: python-devel BuildRequires: python-distribute BuildRequires: python-nose +BuildRequires: python-pytest +BuildRequires: python-Sphinx +BuildRequires: fdupes BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -56,9 +59,15 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +cd docs && make SPHINXBUILD=sphinx-build html && rm -r build/html/.buildinfo # Generate HTML documentation +%fdupes -s build/html +%fdupes -s examples +%if 0%{?suse_version} >= 1210 +# Fail for SLE %check python setup.py test +%endif %files %defattr(-,root,root,-) @@ -68,6 +77,6 @@ python setup.py test %files doc %defattr(-,root,root,-) -%doc doc/htdocs examples +%doc docs/build/html examples %changelog diff --git a/python3-gunicorn.changes b/python3-gunicorn.changes new file mode 100644 index 0000000..28314f5 --- /dev/null +++ b/python3-gunicorn.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Jan 14 18:29:05 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + diff --git a/python3-gunicorn.spec b/python3-gunicorn.spec new file mode 100644 index 0000000..25a646c --- /dev/null +++ b/python3-gunicorn.spec @@ -0,0 +1,80 @@ +# +# spec file for package python3-gunicorn +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python3-gunicorn +Version: 0.17.2 +Release: 0 +Summary: WSGI HTTP Server for UNIX +License: MIT +Group: Development/Languages/Python +Url: http://gunicorn.org +Source: http://pypi.python.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz +BuildRequires: python3 +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildRequires: python3-nose +BuildRequires: python-Sphinx +#BuildRequires: python3-pytest +BuildRequires: fdupes +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork +worker model ported from Ruby's Unicorn_ project. The Gunicorn server is broadly +compatible with various web frameworks, simply implemented, light on server +resource usage, and fairly speedy. + +%package doc +Summary: WSGI HTTP Server for UNIX - Documentation +Group: Documentation/Other +Requires: %{name} = %{version} + +%description doc +This package contains Gunicorn documentation in reST and HTML formats. + +%prep +%setup -q -n gunicorn-%{version} + +%build +python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +cd docs && make SPHINXBUILD=sphinx-build html && rm -r build/html/.buildinfo # Generate HTML documentation +%fdupes -s build/html +%fdupes -s examples + +mv %{buildroot}%{_bindir}/gunicorn_paster %{buildroot}%{_bindir}/gunicorn_paster-python%{py3_ver} +mv %{buildroot}%{_bindir}/gunicorn_django %{buildroot}%{_bindir}/gunicorn_django-python%{py3_ver} +mv %{buildroot}%{_bindir}/gunicorn %{buildroot}%{_bindir}/gunicorn-python%{py3_ver} + +#%check +#python3 setup.py test + +%files +%defattr(-,root,root,-) +%doc LICENSE NOTICE README.rst THANKS +%{_bindir}/gunicorn* +%{python3_sitelib}/* + +%files doc +%defattr(-,root,root,-) +%doc docs/build/html examples + +%changelog