From e45653a19e6d72c4d05d8300339dd69160f1116106dba82af08b352ff10975d3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 3 May 2023 14:42:48 +0000 Subject: [PATCH] Accepting request 1084390 from home:dirkmueller:acdc:as_python3_module - Switch documentation to be within the main package. OBS-URL: https://build.opensuse.org/request/show/1084390 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=97 --- python-pycurl.changes | 5 +++++ python-pycurl.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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