|
|
da6a5f |
%global cpan_version 1.28
|
|
|
da6a5f |
Name: perl-Time-Local
|
|
|
da6a5f |
Epoch: 1
|
|
|
da6a5f |
Version: %{cpan_version}0
|
|
|
da6a5f |
Release: 1%{?dist}
|
|
|
da6a5f |
Summary: Efficiently compute time from local and GMT time
|
|
|
da6a5f |
License: GPL+ or Artistic
|
|
|
da6a5f |
URL: https://metacpan.org/release/Time-Local
|
|
|
da6a5f |
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Time-Local-%{cpan_version}.tar.gz
|
|
|
da6a5f |
BuildArch: noarch
|
|
|
da6a5f |
BuildRequires: make
|
|
|
da6a5f |
BuildRequires: perl-generators
|
|
|
da6a5f |
BuildRequires: perl-interpreter
|
|
|
da6a5f |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
da6a5f |
BuildRequires: perl(strict)
|
|
|
da6a5f |
BuildRequires: perl(warnings)
|
|
|
da6a5f |
# Run-time:
|
|
|
da6a5f |
BuildRequires: perl(Carp)
|
|
|
da6a5f |
# Config used only with perl < 5.12
|
|
|
da6a5f |
BuildRequires: perl(constant)
|
|
|
da6a5f |
BuildRequires: perl(Exporter)
|
|
|
da6a5f |
BuildRequires: perl(parent)
|
|
|
da6a5f |
# Tests:
|
|
|
da6a5f |
# CPAN::Meta not helpful
|
|
|
da6a5f |
# CPAN::Meta::Prereqs not helpful
|
|
|
da6a5f |
BuildRequires: perl(File::Spec)
|
|
|
da6a5f |
BuildRequires: perl(Test::More) >= 0.96
|
|
|
da6a5f |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
da6a5f |
|
|
|
da6a5f |
%description
|
|
|
da6a5f |
This module provides functions that are the inverse of built-in perl functions
|
|
|
da6a5f |
localtime() and gmtime(). They accept a date as a six-element array, and
|
|
|
da6a5f |
return the corresponding time(2) value in seconds since the system epoch
|
|
|
da6a5f |
(Midnight, January 1, 1970 GMT on Unix, for example). This value can be
|
|
|
da6a5f |
positive or negative, though POSIX only requires support for positive values,
|
|
|
da6a5f |
so dates before the system's epoch may not work on all operating systems.
|
|
|
da6a5f |
|
|
|
da6a5f |
%prep
|
|
|
da6a5f |
%setup -q -n Time-Local-%{cpan_version}
|
|
|
da6a5f |
|
|
|
da6a5f |
%build
|
|
|
da6a5f |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
da6a5f |
make %{?_smp_mflags}
|
|
|
da6a5f |
|
|
|
da6a5f |
%install
|
|
|
da6a5f |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
da6a5f |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
da6a5f |
|
|
|
da6a5f |
%check
|
|
|
da6a5f |
make test
|
|
|
da6a5f |
|
|
|
da6a5f |
%files
|
|
|
da6a5f |
%license LICENSE
|
|
|
da6a5f |
%doc Changes CONTRIBUTING.md README.md
|
|
|
da6a5f |
%{perl_vendorlib}/*
|
|
|
da6a5f |
%{_mandir}/man3/*
|
|
|
da6a5f |
|
|
|
da6a5f |
%changelog
|
|
|
da6a5f |
* Thu Jun 14 2018 Petr Pisar <ppisar@redhat.com> - 1:1.280-1
|
|
|
da6a5f |
- 1.28 bump
|
|
|
da6a5f |
|
|
|
da6a5f |
* Tue Jun 12 2018 Petr Pisar <ppisar@redhat.com> - 1:1.270-1
|
|
|
da6a5f |
- 1.27 bump
|
|
|
da6a5f |
|
|
|
da6a5f |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.250-395
|
|
|
da6a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.250-394
|
|
|
da6a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:1.250-393
|
|
|
da6a5f |
- Perl 5.26 rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.250-2
|
|
|
da6a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Mon Nov 21 2016 Petr Pisar <ppisar@redhat.com> - 1:1.250-1
|
|
|
da6a5f |
- 1.25 bump
|
|
|
da6a5f |
|
|
|
da6a5f |
* Fri Oct 14 2016 Petr Pisar <ppisar@redhat.com> - 1:1.240-1
|
|
|
da6a5f |
- 1.24 bump
|
|
|
da6a5f |
|
|
|
da6a5f |
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.2300-365
|
|
|
da6a5f |
- Increase release to favour standalone package
|
|
|
da6a5f |
|
|
|
da6a5f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2300-347
|
|
|
da6a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2300-346
|
|
|
da6a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.2300-345
|
|
|
da6a5f |
- Increase release to favour standalone package
|
|
|
da6a5f |
|
|
|
da6a5f |
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.2300-311
|
|
|
da6a5f |
- Perl 5.22 rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.2300-310
|
|
|
da6a5f |
- Increase release to favour standalone package
|
|
|
da6a5f |
|
|
|
da6a5f |
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.2300-293
|
|
|
da6a5f |
- Perl 5.20 rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2300-292
|
|
|
da6a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2300-291
|
|
|
da6a5f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
da6a5f |
|
|
|
da6a5f |
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 1.2300-290
|
|
|
da6a5f |
- Increase release to favour standalone package
|
|
|
da6a5f |
|
|
|
da6a5f |
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.2300-2
|
|
|
da6a5f |
- Link minimal build-root packages against libperl.so explicitly
|
|
|
da6a5f |
|
|
|
da6a5f |
* Fri Mar 15 2013 Petr Pisar <ppisar@redhat.com> 1.2300-1
|
|
|
da6a5f |
- Specfile autogenerated by cpanspec 1.78.
|