From d11b907624c6171ef8c14a1ef8dcc45e0dca7e77 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 3 Nov 2022 14:17:54 +0800 Subject: [PATCH] add doc package --- python-blivet.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/python-blivet.spec b/python-blivet.spec index 1b9ce98..6209bed 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -1,9 +1,10 @@ +%define anolis_release 2 Summary: A python module for system storage configuration Name: python-blivet Url: https://storageapis.wordpress.com/projects/blivet Version: 3.4.3 -Release: 1%{?dist} +Release: %{anolis_release}%{?dist} Epoch: 1 License: LGPLv2+ %global realname blivet @@ -30,6 +31,14 @@ BuildArch: noarch The python-blivet package is a python module for examining and modifying storage configuration. +%package doc +Summary: Documentation files for %{name} +Requires: python3-%{realname} = %{epoch}:%{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %package -n %{realname}-data Summary: Data for the %{realname} python module. @@ -109,10 +118,15 @@ make PYTHON=%{__python3} DESTDIR=%{buildroot} install %files -n python3-%{realname} %license COPYING -%doc README.md ChangeLog examples %{python3_sitelib}/* +%files doc +%doc README.md ChangeLog examples + %changelog +* Thu Nov 03 2022 mgb01105731 - 3.4.3-2 +- add doc package + * Wed Apr 6 2022 gcdota930915 - 3.4.3-1 - Init from upstream version 3.4.3 - remove mpath plugin -- Gitee