From 3ced28550938707d57706d81a5570f002dd34b3f Mon Sep 17 00:00:00 2001 From: DengXiewei Date: Wed, 20 Jul 2022 16:24:28 +0800 Subject: [PATCH] Add doc sub package Signed-off-by: DengXiewei --- python-simpleline.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/python-simpleline.spec b/python-simpleline.spec index 993ea0f..96a2348 100644 --- a/python-simpleline.spec +++ b/python-simpleline.spec @@ -1,10 +1,12 @@ +%define anolis_release .0.1 + %global srcname simpleline Name: python-%{srcname} Summary: A Python library for creating text UI Url: https://github.com/rhinstaller/python-%{srcname} Version: 1.1.1 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} # This tarball was created from upstream git: # git clone https://github.com/rhinstaller/python-simpleline # cd python-simpleline && make archive @@ -39,6 +41,14 @@ and tools (e.g. serial console) so that every new line is appended to the bottom of the screen. Printed lines are never rewritten! +%package -n python3-%{srcname}-doc +Summary: Documents for %{name} +Requires: python3-%{srcname} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description -n python3-%{srcname}-doc +Doc pages for %{name}. + %prep %setup -q -n %{srcname}-%{version} @@ -55,10 +65,15 @@ make test %files -n python3-%{srcname} -f python-%{srcname}.lang %license COPYING -%doc ChangeLog README.md %{python3_sitelib}/* +%files -n python3-%{srcname}-doc +%doc ChangeLog README.md + %changelog +* Wed Jul 20 2022 DengXiewei - 1.1.1-2.0.1 +- Add doc sub package + * Tue Aug 11 2020 Jiri Konecny - 1.1.1-2 - Fix file extension of gating.yaml -- Gitee