From ab59dd1aac094af846399caf5f044690899779d9 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Tue, 19 Jul 2022 14:59:41 +0800 Subject: [PATCH] spec: add sub doc package --- perl-Time-Local.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/perl-Time-Local.spec b/perl-Time-Local.spec index 6645465..3127c67 100644 --- a/perl-Time-Local.spec +++ b/perl-Time-Local.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + %global cpan_version 1.28 Name: perl-Time-Local Epoch: 1 Version: %{cpan_version}0 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: Efficiently compute time from local and GMT time License: GPL+ or Artistic URL: https://metacpan.org/release/Time-Local @@ -35,6 +37,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: Documents for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +BuildArch: noarch + +%description doc +Doc pages for %{name}. + %prep %setup -q -n Time-Local-%{cpan_version} @@ -51,11 +61,16 @@ make test %files %license LICENSE -%doc Changes CONTRIBUTING.md README.md %{perl_vendorlib}/* %{_mandir}/man3/* +%files doc +%doc Changes CONTRIBUTING.md README.md + %changelog +* Tue Jul 19 2022 Liwei Ge - 1:1.280-1.0.1 +- Add doc sub package + * Thu Jun 14 2018 Petr Pisar - 1:1.280-1 - 1.28 bump -- Gitee