diff --git a/perl-Time-Local.spec b/perl-Time-Local.spec index 6645465d9f6ff3ac1a99de258ffb9dab1aa11ad3..3127c670317504649cb04bc39db6763cb563e1a0 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