Accepting request 1084405 from devel:languages:python

Forwarded request #1084372 from dirkmueller

- Switch documentation to be within the main package.

OBS-URL: https://build.opensuse.org/request/show/1084405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gunicorn?expand=0&rev=23
This commit is contained in:
Dominique Leuenberger 2023-05-04 15:09:04 +00:00 committed by Git OBS Bridge
commit 641a637abe
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Apr 23 23:07:34 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Switch documentation to be within the main package.
-------------------------------------------------------------------
Fri Apr 21 12:25:56 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -25,7 +25,6 @@
%bcond_with test
%endif
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-gunicorn%{psuffix}
Version: 20.1.0
@ -62,6 +61,7 @@ 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.
%if 0%{?suse_version} > 1500
%package -n python-gunicorn-doc
Summary: Documentation for %{name}
Group: Documentation/Other
@ -73,6 +73,7 @@ worker model ported from Ruby's Unicorn_ project. The Gunicorn server is broadly
compatible with various web frameworks.
This package contains the documentation.
%endif
%prep
%setup -q -n gunicorn-%{version}
@ -109,8 +110,10 @@ sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
%python_alternative %{_bindir}/gunicorn
%{python_sitelib}/*
%if 0%{?suse_version} > 1500
%files -n python-gunicorn-doc
%license LICENSE
%endif
%doc README.rst NOTICE THANKS docs/build/html
%endif