From da177911f21b84540179f9f9f5ef9f23c44d4b8c Mon Sep 17 00:00:00 2001 From: "taifu.gc" Date: Sat, 16 Jul 2022 15:21:08 +0800 Subject: [PATCH] spec: add doc sub package --- python-pycurl.spec | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/python-pycurl.spec b/python-pycurl.spec index ce05231..a905db5 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # python3 is not available on RHEL <= 7 %if 0%{?fedora} || 0%{?rhel} > 7 %bcond_without python3 @@ -16,7 +17,7 @@ Name: python-%{modname} Version: 7.43.0.2 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} Summary: A Python interface to libcurl License: LGPLv2+ or MIT @@ -64,6 +65,8 @@ Requires: libcurl%{?_isa} >= %{libcurl_ver} Provides: %{modname} = %{version}-%{release} +Requires: glibc + %description -n python2-%{modname} PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the @@ -71,6 +74,16 @@ urllib Python module. PycURL is mature, very fast, and supports a lot of features. Python 2 version. + +%package -n python2-doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: python2-%{modname} = %{version}-%{release} + + +%description -n python2-doc +Doc pages for %{name} + %endif %if %{with python3} @@ -82,6 +95,8 @@ BuildRequires: python3-bottle BuildRequires: python3-nose Requires: libcurl%{?_isa} >= %{libcurl_ver} +Requires: glibc + %description -n python3-%{modname} PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the @@ -89,6 +104,16 @@ urllib Python module. PycURL is mature, very fast, and supports a lot of features. Python 3 version. + +%package -n python3-doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: python3-%{modname} = %{version}-%{release} + + +%description -n python3-doc +Doc pages for %{name} + %endif %prep @@ -146,22 +171,33 @@ rm -fv tests/fake-curl/libcurl/*.so %if %{with python2} %files -n python2-%{modname} %license COPYING-LGPL COPYING-MIT -%doc ChangeLog README.rst examples doc tests +%doc examples tests %{python2_sitearch}/curl/ %{python2_sitearch}/%{modname}.so %{python2_sitearch}/%{modname}-%{version}-*.egg-info + +%files -n python2-doc +%doc ChangeLog README.rst doc + %endif %if %{with python3} %files -n python3-%{modname} %license COPYING-LGPL COPYING-MIT -%doc ChangeLog README.rst examples doc tests +%doc examples tests %{python3_sitearch}/curl/ %{python3_sitearch}/%{modname}.*.so %{python3_sitearch}/%{modname}-%{version}-*.egg-info + +%files -n python3-doc +%doc ChangeLog README.rst doc + %endif %changelog +* Fri Jul 15 2022 Chang Gao - 7.43.0.2-4.0.1 +- Add doc sub package + * Wed Jan 22 2020 Kamil Dudka - 7.43.0.2-4 - fix populating list of decoded strings (#1792213) - fix programming mistakes detected by static analyzers (#1666003) -- Gitee