Accepting request 1084372 from home:dirkmueller:acdc:as_python3_module

- Switch documentation to be within the main package.

OBS-URL: https://build.opensuse.org/request/show/1084372
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gunicorn?expand=0&rev=54
This commit is contained in:
Matej Cepl 2023-05-03 14:41:44 +00:00 committed by Git OBS Bridge
parent 82ab029254
commit fc3fbea1bc
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> Fri Apr 21 12:25:56 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

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