diff --git a/Time-Local-1.30.tar.gz b/Time-Local-1.30.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5284b0de24cfa6116d9ecc875218ae7a5cde7a4a Binary files /dev/null and b/Time-Local-1.30.tar.gz differ diff --git a/perl-Time-Local.spec b/perl-Time-Local.spec new file mode 100644 index 0000000000000000000000000000000000000000..b20971c64c6472990da5c7abfac8d85e3437194e --- /dev/null +++ b/perl-Time-Local.spec @@ -0,0 +1,56 @@ +%define anolis_release 1 +%global cpan_version 1.30 +Name: perl-Time-Local +Epoch: 2 +Version: %{cpan_version} +Release: %{anolis_release}%{?dist} +Summary: Efficiently compute time from local and GMT time +License: GPL+ or Artistic +URL: https://metacpan.org/release/Time-Local +Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Time-Local-%{cpan_version}.tar.gz +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) +BuildRequires: perl(parent) +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::More) >= 0.96 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This module provides functions that are the inverse of built-in perl functions +localtime() and gmtime(). They accept a date as a six-element array, and +return the corresponding time(2) value in seconds since the system epoch +(Midnight, January 1, 1970 GMT on Unix, for example). This value can be +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. + +%prep +%setup -q -n Time-Local-%{cpan_version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Mar 11 2022 Chunmei Xu - 2:1.30-1 +- init from usptream 1.30