diff --git a/python-pycurl.spec b/python-pycurl.spec index ce0523153a6d76a67fc2e4c0e70788b4f0dfc4fe..a905db54098ae3e5635d9267f3a9df4cad9e3dde 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)