From e1f1f3e1366c0aeb690626cef5e43b1a5a32f432 Mon Sep 17 00:00:00 2001 From: DengXiewei Date: Wed, 20 Jul 2022 15:55:56 +0800 Subject: [PATCH] Add doc sub package Signed-off-by: DengXiewei --- python-requests.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/python-requests.spec b/python-requests.spec index b475e64..90e8fa7 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 -- Gitee