From 7450b44f7a86109a17b32ea179cb96f0760a8fb9 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Fri, 14 Oct 2022 13:45:25 +0800 Subject: [PATCH] add doc package --- perl-Time-Local.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/perl-Time-Local.spec b/perl-Time-Local.spec index b20971c..20d1cc8 100644 --- a/perl-Time-Local.spec +++ b/perl-Time-Local.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global cpan_version 1.30 Name: perl-Time-Local Epoch: 2 @@ -31,6 +31,14 @@ return the corresponding time(2) value in seconds since the system epoch positive or negative, though POSIX only requires support for positive values, so dates before the system's epoch may not work on all operating systems. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{epoch}:%{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %setup -q -n Time-Local-%{cpan_version} @@ -47,10 +55,15 @@ make test %files %license LICENSE -%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md + %changelog +* Fri Oct 14 2022 mgb01105731 - 2:1.30-2 +- add doc package + * Fri Mar 11 2022 Chunmei Xu - 2:1.30-1 - init from usptream 1.30 -- Gitee