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