040f0b1
%global cpan_version 1.25
af2ec26
Name:           perl-Time-Local
997c51f
Epoch:          1
997c51f
Version:        %{cpan_version}0
d52a72d
Release:        392%{?dist}
af2ec26
Summary:        Efficiently compute time from local and GMT time
af2ec26
License:        GPL+ or Artistic
af2ec26
Group:          Development/Libraries
af2ec26
URL:            http://search.cpan.org/dist/Time-Local/
997c51f
Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/Time-Local-%{cpan_version}.tar.gz
af2ec26
BuildArch:      noarch
997c51f
BuildRequires:  findutils
997c51f
BuildRequires:  make
af2ec26
BuildRequires:  perl
e9700d2
BuildRequires:  perl-generators
997c51f
BuildRequires:  perl(ExtUtils::MakeMaker)
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:
997c51f
# POSIX not used
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
af2ec26
perl Makefile.PL INSTALLDIRS=vendor
af2ec26
make %{?_smp_mflags}
af2ec26
af2ec26
%install
af2ec26
make pure_install DESTDIR=$RPM_BUILD_ROOT
997c51f
find $RPM_BUILD_ROOT -type f -name .packlist -delete
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
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.