14
0
forked from pool/python-pycurl

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
This commit is contained in:
2023-05-03 14:42:48 +00:00
committed by Git OBS Bridge
parent e83aadd3cd
commit e45653a19e
2 changed files with 9 additions and 1 deletions

View File

@@ -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