af2ec26
Name:           perl-Time-Local
af2ec26
Version:        1.2300
0c9d206
Release:        291%{?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/
af2ec26
Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/Time-Local-%{version}.tar.gz
af2ec26
BuildArch:      noarch
af2ec26
BuildRequires:  perl
af2ec26
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
af2ec26
BuildRequires:  perl(strict)
af2ec26
BuildRequires:  perl(warnings)
af2ec26
# Run-time:
af2ec26
BuildRequires:  perl(Carp)
af2ec26
BuildRequires:  perl(Config)
af2ec26
BuildRequires:  perl(constant)
af2ec26
BuildRequires:  perl(Exporter)
af2ec26
BuildRequires:  perl(vars)
af2ec26
# Tests:
af2ec26
BuildRequires:  perl(Test::More) >= 0.88
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
af2ec26
%setup -q -n Time-Local-%{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
af2ec26
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
af2ec26
%{_fixperms} $RPM_BUILD_ROOT/*
af2ec26
af2ec26
%check
af2ec26
make test
af2ec26
af2ec26
%files
af2ec26
%doc Changes LICENSE README
af2ec26
%{perl_vendorlib}/*
af2ec26
%{_mandir}/man3/*
af2ec26
af2ec26
%changelog
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.