Name: perl-Time-timegm Version: 0.01 Release: 2%{?dist} Summary: UTC version of mktime() License: GPL+ or Artistic URL: http://search.cpan.org/dist/Time-timegm/ Source0: http://www.cpan.org/authors/id/P/PE/PEVANS/Time-timegm-%{version}.tar.gz BuildRequires: perl-devel BuildRequires: perl(Carp) BuildRequires: perl(constant) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::CChecker) BuildRequires: perl(Module::Build) BuildRequires: perl(POSIX) BuildRequires: perl(strict) BuildRequires: perl(Test::More) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) Requires: perl(XSLoader) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description The POSIX standard provides three functions for converting between integer epoch values and 6-component "broken-down" time representations. localtime and gmtime convert an epoch into the 6 components of seconds, minutes, hours, day of month, month and year, in either local timezone or UTC. The mktime function converts a local broken-down time into an epoch value. However, POSIX does not provide a UTC version of this. %prep %setup -qn Time-timegm-%{version} %build %{__perl} Build.PL installdirs=vendor optimize="%{optflags}" ./Build %install ./Build install destdir=%{buildroot} create_packlist=0 find %{buildroot} -type f -name '*.bs' -size 0 -delete -print %{_fixperms} %{buildroot}/* %check ./Build test %files %doc Changes LICENSE README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Time* %{_mandir}/man3/* %changelog * Mon Jul 14 2014 Christopher Meng - 0.01-2 - Add missing dependency XSLoader * Fri Jun 27 2014 Christopher Meng - 0.01-1 - Initial Package.