diff --git a/python-pycurl.changes b/python-pycurl.changes index 5d9150c..3b51141 100644 --- a/python-pycurl.changes +++ b/python-pycurl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Apr 23 23:18:42 UTC 2023 - Matej Cepl + +- Switch documentation to be within the main package. + ------------------------------------------------------------------- Fri Apr 21 12:30:35 UTC 2023 - Dirk Müller diff --git a/python-pycurl.spec b/python-pycurl.spec index e81d0ef..4f7cced 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -17,7 +17,6 @@ %define oldpython python -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -63,6 +62,7 @@ Obsoletes: %{oldpython}-curl < %{version} %description This module provides bindings for the cURL library. +%if 0%{?suse_version} > 1500 %package -n %{name}-doc Summary: Documentation for python-curl Provides: %{python_module pycurl-doc = %{version}} @@ -72,6 +72,7 @@ BuildArch: noarch This module provides bindings for the cURL library. This package contains documentation and examples. +%endif %prep %autosetup -p1 -n pycurl-%{version} @@ -130,7 +131,9 @@ rm -rf %{buildroot}%{_prefix}/lib/debug %{buildroot}%{_libdir}/python* %doc AUTHORS ChangeLog README.rst %{python_sitearch}/* +%if 0%{?suse_version} > 1500 %files -n %{name}-doc +%endif %doc examples doc/*.rst %endif