14
0

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:
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

@@ -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