From 355241ec2a90ed00c33680ef9d9cc45a6c0d6845 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Sun, 9 Oct 2022 15:38:19 +0800 Subject: [PATCH] add doc package --- python-ply.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/python-ply.spec b/python-ply.spec index cfb48ca..9509855 100644 --- a/python-ply.spec +++ b/python-ply.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global modname ply %bcond_without tests @@ -49,6 +49,14 @@ essential features: Python 3 version. +%package doc +Summary: Documentation files for %{name} +Requires: python3-%{modname} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -n %{modname}-%{version} find example/ -type f -executable -exec chmod -x {} ';' @@ -75,11 +83,16 @@ popd %endif %files -n python3-%{modname} -%doc CHANGES README.md %license LICENSE %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-*.egg-info/ +%files doc +%doc CHANGES README.md + %changelog +* Sun Oct 09 2022 mgb01105731 - 3.11-2 +- add doc package + * Tue Apr 19 2022 Zhongling He 3.11-1 - Init package from upstream v3.11 -- Gitee