Name: perl-Time-Local Version: 1.2300 Release: 1%{?dist} Summary: Efficiently compute time from local and GMT time License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Time-Local/ Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/Time-Local-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(constant) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: /usr/bin/rename Requires: perl(Carp) Requires: perl(Config) Requires: perl(constant) Requires: perl(Exporter) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module provides functions that are the inverse of built-in perl functions localtime() and gmtime(). They accept a date as a six-element array, and return the corresponding time(2) value in seconds since the system epoch (Midnight, January 1, 1970 GMT on Unix, for example). This value can be positive or negative, though POSIX only requires support for positive values, so dates before the system's epoch may not work on all operating systems. %prep %setup -q -n Time-Local-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; # Rename man pages so they won't conflict with the main perl package /usr/bin/rename .3pm -%{version}.3pm %{buildroot}%{_mandir}/man3/*.3pm %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes dist.ini LICENSE META.json README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Feb 09 2016 Daniel Berteaud 1.2300-1 - First build using cpanspec