diff --git a/python-requests.spec b/python-requests.spec index b475e645e940be17cd93dec918d3d2c25d2baae9..90e8fa7b239b0333166c0da4b67b5d3f8c5ef200 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,3 +1,5 @@ +%define anolis_release .0.1 + %if 0%{?_module_build} # Don't run tests on module-build for now # See: https://bugzilla.redhat.com/show_bug.cgi?id=1450608 @@ -10,7 +12,7 @@ Name: python-requests Version: 2.20.0 -Release: 2.1%{?dist} +Release: 2.1%{anolis_release}%{?dist} Summary: HTTP library, written in Python, for human beings License: ASL 2.0 @@ -76,6 +78,14 @@ cumbersome. Python’s built-in urllib2 module provides most of the HTTP capabilities you should need, but the API is thoroughly broken. This library is designed to make HTTP requests easy for developers. +%package -n python%{python3_pkgversion}-requests-doc +Summary: Documents for %{name} +Requires: python%{python3_pkgversion}-requests = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description -n python%{python3_pkgversion}-requests-doc +Doc pages for %{name}. + %prep %autosetup -p1 -n requests-%{version} @@ -100,12 +110,17 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %files -n python%{python3_pkgversion}-requests %license LICENSE -%doc README.md HISTORY.md %{python3_sitelib}/*.egg-info %{python3_sitelib}/requests/ +%files -n python%{python3_pkgversion}-requests-doc +%doc README.md HISTORY.md + %changelog +* Wed Jul 20 2022 DengXiewei - 2.20.0-2.1.0.1 +- Add doc sub package + * Thu Oct 17 2019 Tomas Orsava - 2.20.0-2.1 - Bumping to enable gating Related: rhbz#1758261