From a3ff7ad2e32da611ec8d1a0cb125501bc095c2b8 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Wed, 20 Jul 2022 11:42:41 +0800 Subject: [PATCH] Add doc sub package --- python-markupsafe.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/python-markupsafe.spec b/python-markupsafe.spec index 67baae5..4d822f4 100644 --- a/python-markupsafe.spec +++ b/python-markupsafe.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: python-markupsafe Version: 0.23 -Release: 19%{?dist} +Release: 19%{anolis_release}%{?dist} Summary: Implements a XML/HTML/XHTML Markup safe string for Python Group: Development/Languages @@ -13,6 +14,13 @@ BuildRequires: python3-devel python3-setuptools %description A library for safe markup escaping. +%package -n python3-markupsafe-doc +Summary: Documents for python3-markupsafe +Requires: python3-markupsafe = %{?epoch:%{epoch}:}%{version}-%{release} + +%description -n python3-markupsafe-doc +Doc pages for python3-markupsafe + %package -n python3-markupsafe Summary: Implements a XML/HTML/XHTML Markup safe string for Python 3 Group: Development/Languages @@ -39,11 +47,15 @@ rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c %files -n python3-markupsafe %license LICENSE -%doc AUTHORS README.rst %{python3_sitearch}/* +%files -n python3-markupsafe-doc +%doc AUTHORS README.rst %changelog +* Wed Jul 20 2022 mgb01105731 - 0.23-19.0.1 +- Add doc sub package + * Wed Jul 11 2018 Petr Viktorin - 0.23-19 - Remove the Python 2 subpackage https://bugzilla.redhat.com/show_bug.cgi?id=1590415 -- Gitee