forked from pool/python-gunicorn
Accepting request 507399 from home:tbechtold:branches:devel:languages:python
- update to 19.7.1: - fix: continue if SO_REUSEPORT seems to be available but fails (:issue:`1480`) - fix: support non-decimal values for the umask command line option (:issue:`1325`) - The previously deprecated ``gunicorn_django`` command has been removed. Use the :ref:`gunicorn-cmd` command-line interface instead. - The previously deprecated ``django_settings`` setting has been removed. Use the :ref:`raw-env` setting instead. - The default value of :ref:`ssl-version` has been changed from ``ssl.PROTOCOL_TLSv1`` to ``ssl.PROTOCOL_SSLv23``. - fix: initialize the group access list when initgroups is set (:issue:`1297`) - add environment variables to gunicorn access log format (:issue:`1291`) - add --paste-global-conf option (:issue:`1304`) - fix: print access logs to STDOUT (:issue:`1184`) - remove upper limit on max header size config (:issue:`1313`) - fix: print original exception on AppImportError (:issue:`1334`) - use SO_REUSEPORT if available (:issue:`1344`) - `fix leak <https://github.com/benoitc/gunicorn/commit/\ b4c41481e2d5ef127199a4601417a6819053c3fd>`_ of duplicate file descriptor for bound sockets. - add --reload-engine option, support inotify and other backends (:issue:`1368`, :issue:`1459`) - fix: reject request with invalid HTTP versions - add ``child_exit`` callback (:issue:`1394`) - add support for eventlets _AlreadyHandled object (:issue:`1406`) - format boot tracebacks properly with reloader (:issue:`1408`) - refactor socket activation and fd inheritance for better support of SystemD (:issue:`1310`) - fix: o fds are given by default in gunicorn (:issue:`1423`) - add ability to pass settings to GUNICORN_CMD_ARGS environnement variable which helps in container world (:issue:`1385`) - fix: catch access denied to pid file (:issue:`1091`) - many additions and improvements to the documentation - improvement of the binary upgrade behaviour using USR2: remove file locking (:issue:`1270`) OBS-URL: https://build.opensuse.org/request/show/507399 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=35
This commit is contained in:
committed by
Git OBS Bridge
parent
e3ea6a9f52
commit
06a976b7fe
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-gunicorn
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,28 +16,29 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-gunicorn
|
||||
Version: 19.3.0
|
||||
Version: 19.7.1
|
||||
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
|
||||
Source: https://files.pythonhosted.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-pytest
|
||||
BuildRequires: python-pytest-cov
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
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()")}
|
||||
BuildRequires: python-unittest2
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork
|
||||
@@ -45,13 +46,18 @@ 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
|
||||
%package -n python-gunicorn-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/Other
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{python_module gunicorn-doc = %{version}}
|
||||
|
||||
%description doc
|
||||
This package contains Gunicorn documentation in reST and HTML formats.
|
||||
%description -n python-gunicorn-doc
|
||||
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.
|
||||
|
||||
This package contains the documentation.
|
||||
|
||||
%prep
|
||||
%setup -q -n gunicorn-%{version}
|
||||
@@ -59,35 +65,35 @@ This package contains Gunicorn documentation in reST and HTML formats.
|
||||
sed -i 's/==.*//' requirements_test.txt
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
# install documentation and examples
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
cp -r LICENSE NOTICE README.rst THANKS examples %{buildroot}%{_docdir}/%{name}
|
||||
cd docs && make SPHINXBUILD=sphinx-build html && rm -r build/html/.buildinfo # Generate HTML documentation
|
||||
cp -r build/html %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/gunicorn
|
||||
%python_clone -a %{buildroot}%{_bindir}/gunicorn_paster
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%check
|
||||
python setup.py -q test
|
||||
%python_exec setup.py test
|
||||
|
||||
%files
|
||||
%post
|
||||
%python_install_alternative gunicorn
|
||||
%python_install_alternative gunicorn_paster
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative gunicorn
|
||||
%python_uninstall_alternative gunicorn_paster
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%exclude %{_docdir}/%{name}/html
|
||||
%exclude %{_docdir}/%{name}/examples
|
||||
%doc %dir %{_docdir}/%{name}/
|
||||
%doc %{_docdir}/%{name}/*
|
||||
%{_bindir}/gunicorn*
|
||||
%doc LICENSE
|
||||
%python_alternative %{_bindir}/gunicorn
|
||||
%python_alternative %{_bindir}/gunicorn_paster
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%files -n python-gunicorn-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc %dir %{_docdir}/%{name}/html
|
||||
%doc %dir %{_docdir}/%{name}/examples
|
||||
%doc %{_docdir}/%{name}/html/*
|
||||
%doc %{_docdir}/%{name}/examples/*
|
||||
%doc LICENSE README.rst NOTICE THANKS docs/build/html
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user