From c2fc102bfc3b575bc946374f3bfca4550e27bef285dce94784c7aec77db318fb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 3 May 2023 14:43:03 +0000 Subject: [PATCH] Accepting request 1084391 from home:dirkmueller:acdc:as_python3_module - Switch documentation to be within the main package. OBS-URL: https://build.opensuse.org/request/show/1084391 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=35 --- python-pyserial.changes | 5 +++++ python-pyserial.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-pyserial.changes b/python-pyserial.changes index df45599..d4e336f 100644 --- a/python-pyserial.changes +++ b/python-pyserial.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Apr 23 23:19:35 UTC 2023 - Matej Cepl + +- Switch documentation to be within the main package. + ------------------------------------------------------------------- Fri Apr 21 12:31:20 UTC 2023 - Dirk Müller diff --git a/python-pyserial.spec b/python-pyserial.spec index 23f78e4..a10f031 100644 --- a/python-pyserial.spec +++ b/python-pyserial.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-pyserial Version: 3.5 @@ -40,6 +39,7 @@ BuildArch: noarch %description Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython +%if 0%{?suse_version} > 1500 %package -n %{name}-doc Summary: Documentation for %{name} Group: Documentation/Other @@ -48,6 +48,7 @@ Provides: python3-pyserial-doc = %{version} %description -n %{name}-doc Documentation, examples, and help files for %{name}. +%endif %prep %setup -q -n pyserial-%{version} @@ -104,7 +105,9 @@ rm documentation/_build/doctrees/environment.pickle %{python_sitelib}/serial/ %{python_sitelib}/pyserial-%{version}-py*.egg-info +%if 0%{?suse_version} > 1500 %files -n %{name}-doc +%endif %doc examples/ %doc documentation/_build/*