From fc3fbea1bcb9f2886e854e28ef72756ed2a9d5871716ff4b4828900ea995911c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 3 May 2023 14:41:44 +0000 Subject: [PATCH] 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 --- python-gunicorn.changes | 5 +++++ python-gunicorn.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-gunicorn.changes b/python-gunicorn.changes index 159cecf..6f66a67 100644 --- a/python-gunicorn.changes +++ b/python-gunicorn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Apr 23 23:07:34 UTC 2023 - Matej Cepl + +- Switch documentation to be within the main package. + ------------------------------------------------------------------- Fri Apr 21 12:25:56 UTC 2023 - Dirk Müller diff --git a/python-gunicorn.spec b/python-gunicorn.spec index 84484fc..9333d8a 100644 --- a/python-gunicorn.spec +++ b/python-gunicorn.spec @@ -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