From 96cee595d34232041eb255945215ea87f9b551c0d7ac9c3d5368273148467408 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 3 May 2023 14:41:27 +0000 Subject: [PATCH] Accepting request 1084356 from home:dirkmueller:acdc:as_python3_module - Switch documentation to be within the main package. OBS-URL: https://build.opensuse.org/request/show/1084356 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bottle?expand=0&rev=47 --- python-bottle.changes | 5 +++++ python-bottle.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/python-bottle.changes b/python-bottle.changes index 97add23..a54f17e 100644 --- a/python-bottle.changes +++ b/python-bottle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Apr 23 23:06:11 UTC 2023 - Matej Cepl + +- Switch documentation to be within the main package. + ------------------------------------------------------------------- Fri Apr 21 12:22:51 UTC 2023 - Dirk Müller diff --git a/python-bottle.spec b/python-bottle.spec index 4daf973..bac8e28 100644 --- a/python-bottle.spec +++ b/python-bottle.spec @@ -40,6 +40,7 @@ built-in HTTP server, and adapters for many third party WSGI/HTTP servers and template engines. This is all in a single file and with no dependencies other than the Python Standard Library. +%if 0%{?suse_version} > 1500 %package -n %{name}-doc Summary: Documentation for %{name} Provides: %{python_module bottle-doc = %{version}} @@ -52,6 +53,7 @@ servers and template engines. This is all in a single file and with no dependencies other than the Python Standard Library. This subpackage contains the PDF documentation for %{name}. +%endif %prep %setup -q -n bottle-%{version} @@ -83,7 +85,9 @@ cp %{SOURCE1} . %pycache_only %{python_sitelib}/__pycache__ %{python_sitelib}/bottle-%{version}-py%{python_version}.egg-info +%if 0%{?suse_version} > 1500 %files -n %{name}-doc +%endif %doc bottle-docs.pdf %changelog