Accepting request 148571 from devel:languages:python
Update and python3 support (forwarded request 148493 from posophe) OBS-URL: https://build.opensuse.org/request/show/148571 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gunicorn?expand=0&rev=5
This commit is contained in:
commit
24c0500635
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fcff4d54533c219ca966cf53e1d5b1856f22180a1ef56f2dc97856544d94360a
|
|
||||||
size 208108
|
|
3
gunicorn-0.17.2.tar.gz
Normal file
3
gunicorn-0.17.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3daeecbf3c3f324317c847bd9523d2c7dcdcc7796fd2e57c18b16c0adf5897e5
|
||||||
|
size 360120
|
@ -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
|
Tue May 15 10:52:16 UTC 2012 - suse@ammler.ch
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-gunicorn
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-gunicorn
|
Name: python-gunicorn
|
||||||
Version: 0.14.3
|
Version: 0.17.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: WSGI HTTP Server for UNIX
|
Summary: WSGI HTTP Server for UNIX
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -27,6 +27,9 @@ Source: http://pypi.python.org/packages/source/g/gunicorn/gunicorn-%{ver
|
|||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-distribute
|
BuildRequires: python-distribute
|
||||||
BuildRequires: python-nose
|
BuildRequires: python-nose
|
||||||
|
BuildRequires: python-pytest
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%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()")}
|
%{!?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
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
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
|
%check
|
||||||
python setup.py test
|
python setup.py test
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -68,6 +77,6 @@ python setup.py test
|
|||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc doc/htdocs examples
|
%doc docs/build/html examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
5
python3-gunicorn.changes
Normal file
5
python3-gunicorn.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 14 18:29:05 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Initial python3 support
|
||||||
|
|
80
python3-gunicorn.spec
Normal file
80
python3-gunicorn.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user