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