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