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