From 4444feff3a05bfd263193b12e92cfe4feea69a1e Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 16:00:33 +0800 Subject: [PATCH] add doc package --- python-simpleline.spec | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/python-simpleline.spec b/python-simpleline.spec index 10d0ddf..791218a 100644 --- a/python-simpleline.spec +++ b/python-simpleline.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global srcname simpleline Name: python-%{srcname} @@ -27,7 +27,6 @@ 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} Summary: A Python3 library for creating text UI Requires: rpm-python3 @@ -41,6 +40,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 doc +Summary: Documentation files for %{name} +Requires: python3-%{srcname} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n %{srcname}-%{version} @@ -57,9 +64,14 @@ make test %files -n python3-%{srcname} -f python-%{srcname}.lang %license LICENSE.md -%doc ChangeLog README.md %{python3_sitelib}/* +%files doc +%doc ChangeLog README.md + %changelog +* Sun Oct 09 2022 mgb01105731 - 1.9.0-2 +- add doc package + * Mon Apr 18 2022 Chunmei Xu - 1.9.0-1 - init from upstream -- Gitee