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/*