2011-07-08 15:21:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-gunicorn
|
|
|
|
#
|
2019-07-22 10:13:15 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-07-08 15:21:12 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2012-03-22 19:10:28 +01:00
|
|
|
|
2018-10-18 12:07:32 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-08 15:21:12 +02:00
|
|
|
#
|
|
|
|
|
2012-03-22 19:10:28 +01:00
|
|
|
|
2017-07-10 16:10:14 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-07-06 12:36:04 +02:00
|
|
|
Name: python-gunicorn
|
2018-10-18 12:07:32 +02:00
|
|
|
Version: 19.9.0
|
2011-09-23 15:00:33 +02:00
|
|
|
Release: 0
|
2012-03-10 17:09:05 +01:00
|
|
|
Summary: WSGI HTTP Server for UNIX
|
2012-03-22 19:10:28 +01:00
|
|
|
License: MIT
|
2011-09-23 15:00:33 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-10-18 12:07:32 +02:00
|
|
|
URL: http://gunicorn.org
|
2017-07-10 16:10:14 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz
|
2019-07-22 10:13:15 +02:00
|
|
|
Patch0: pytest5.patch
|
2017-07-10 16:10:14 +02:00
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pytest-cov}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2013-06-17 14:51:27 +02:00
|
|
|
BuildRequires: fdupes
|
2017-07-10 16:10:14 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2011-09-23 15:00:33 +02:00
|
|
|
BuildArch: noarch
|
2017-07-10 16:10:14 +02:00
|
|
|
%python_subpackages
|
2011-07-06 12:36:04 +02:00
|
|
|
|
|
|
|
%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
|
2017-07-11 14:41:39 +02:00
|
|
|
compatible with various web frameworks.
|
2011-07-06 12:36:04 +02:00
|
|
|
|
2017-07-10 16:10:14 +02:00
|
|
|
%package -n python-gunicorn-doc
|
|
|
|
Summary: Documentation for %{name}
|
2011-07-06 12:36:04 +02:00
|
|
|
Group: Documentation/Other
|
2017-07-10 16:10:14 +02:00
|
|
|
Provides: %{python_module gunicorn-doc = %{version}}
|
2011-07-06 12:36:04 +02:00
|
|
|
|
2017-07-10 16:10:14 +02:00
|
|
|
%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
|
2017-07-11 14:41:39 +02:00
|
|
|
compatible with various web frameworks.
|
2017-07-10 16:10:14 +02:00
|
|
|
|
|
|
|
This package contains the documentation.
|
2011-07-06 12:36:04 +02:00
|
|
|
|
|
|
|
%prep
|
2011-09-23 15:00:33 +02:00
|
|
|
%setup -q -n gunicorn-%{version}
|
2019-07-22 10:13:15 +02:00
|
|
|
%patch0 -p1
|
2015-05-07 13:57:54 +02:00
|
|
|
# remove version pinning for test requirements
|
|
|
|
sed -i 's/==.*//' requirements_test.txt
|
2018-10-18 12:07:32 +02:00
|
|
|
sed -i -e '/cover/d' requirements_test.txt
|
2011-07-06 12:36:04 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-10 16:10:14 +02:00
|
|
|
%python_build
|
|
|
|
sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
|
2011-07-06 12:36:04 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-10 16:10:14 +02:00
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/gunicorn
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/gunicorn_paster
|
2018-10-18 12:07:32 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-07-06 12:36:04 +02:00
|
|
|
|
2011-09-23 15:00:33 +02:00
|
|
|
%check
|
2017-07-10 16:10:14 +02:00
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
|
|
%post
|
|
|
|
%python_install_alternative gunicorn
|
|
|
|
%python_install_alternative gunicorn_paster
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative gunicorn
|
|
|
|
%python_uninstall_alternative gunicorn_paster
|
2011-07-06 12:36:04 +02:00
|
|
|
|
2017-07-10 16:10:14 +02:00
|
|
|
%files %{python_files}
|
2018-10-18 12:07:32 +02:00
|
|
|
%license LICENSE
|
2017-07-10 16:10:14 +02:00
|
|
|
%python_alternative %{_bindir}/gunicorn
|
|
|
|
%python_alternative %{_bindir}/gunicorn_paster
|
2011-09-23 15:00:33 +02:00
|
|
|
%{python_sitelib}/*
|
2011-07-06 12:36:04 +02:00
|
|
|
|
2017-07-10 16:10:14 +02:00
|
|
|
%files -n python-gunicorn-doc
|
2018-10-18 12:07:32 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst NOTICE THANKS docs/build/html
|
2011-07-06 12:36:04 +02:00
|
|
|
|
|
|
|
%changelog
|