From e0427a8d04049dc459d2ad022b711cf901e978dc Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 13:39:03 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Mail-Sender.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Mail-Sender.spec b/perl-Mail-Sender.spec index c4a346b..64db2d2 100644 --- a/perl-Mail-Sender.spec +++ b/perl-Mail-Sender.spec @@ -1,9 +1,11 @@ +%define anolis_release .0.1 + Name: perl-Mail-Sender Version: 0.903 # I really wish CPAN maintainers would stop fscking around with versions. # we went from 0.900003 to 0.901 Epoch: 1 -Release: 7%{?dist} +Release: 7%{anolis_release}%{?dist} Summary: Module for sending mails with attachments through an SMTP server Group: Development/Libraries @@ -46,6 +48,14 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi %{summary}. +%package doc +Summary: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Mail-Sender-%{version} %{__perl} -pi -e 's/\r\n/\n/' README @@ -74,12 +84,17 @@ make test # License: perl + spam exception. # See the main POD page for the copyright information. # For the Artistic and GPL license text(s), see the perl package. -%doc Changes README %{perl_vendorlib}/Mail/ %{_mandir}/man3/*.3pm* +%files doc +%doc Changes README + %changelog +* Tue Jul 19 2022 Liwei Ge - 1:0.903-7.0.1 +- Add doc sub package + * Fri Jul 13 2018 Fedora Release Engineering - 1:0.903-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild -- Gitee