7a18bf
Name:           perl-Time-Local
7a18bf
Version:        1.2300
7a18bf
Release:        2%{?dist}
7a18bf
Summary:        Efficiently compute time from local and GMT time
7a18bf
License:        GPL+ or Artistic
7a18bf
Group:          Development/Libraries
7a18bf
URL:            http://search.cpan.org/dist/Time-Local/
7a18bf
Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/Time-Local-%{version}.tar.gz
7a18bf
BuildArch:      noarch
7a18bf
BuildRequires:  perl
7a18bf
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
7a18bf
BuildRequires:  perl(strict)
7a18bf
BuildRequires:  perl(warnings)
7a18bf
# Run-time:
7a18bf
BuildRequires:  perl(Carp)
7a18bf
BuildRequires:  perl(Config)
7a18bf
BuildRequires:  perl(constant)
7a18bf
BuildRequires:  perl(Exporter)
7a18bf
BuildRequires:  perl(vars)
7a18bf
# Tests:
7a18bf
BuildRequires:  perl(Test::More) >= 0.88
7a18bf
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
7a18bf
7a18bf
%description
7a18bf
This module provides functions that are the inverse of built-in perl functions
7a18bf
localtime() and gmtime(). They accept a date as a six-element array, and
7a18bf
return the corresponding time(2) value in seconds since the system epoch
7a18bf
(Midnight, January 1, 1970 GMT on Unix, for example). This value can be
7a18bf
positive or negative, though POSIX only requires support for positive values,
7a18bf
so dates before the system's epoch may not work on all operating systems.
7a18bf
7a18bf
%prep
7a18bf
%setup -q -n Time-Local-%{version}
7a18bf
7a18bf
%build
7a18bf
perl Makefile.PL INSTALLDIRS=vendor
7a18bf
make %{?_smp_mflags}
7a18bf
7a18bf
%install
7a18bf
make pure_install DESTDIR=$RPM_BUILD_ROOT
7a18bf
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
7a18bf
%{_fixperms} $RPM_BUILD_ROOT/*
7a18bf
7a18bf
%check
7a18bf
make test
7a18bf
7a18bf
%files
7a18bf
%doc Changes LICENSE README
7a18bf
%{perl_vendorlib}/*
7a18bf
%{_mandir}/man3/*
7a18bf
7a18bf
%changelog
7a18bf
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.2300-2
7a18bf
- Mass rebuild 2013-12-27
7a18bf
7a18bf
* Fri Mar 15 2013 Petr Pisar <ppisar@redhat.com> 1.2300-1
7a18bf
- Specfile autogenerated by cpanspec 1.78.