[perl-Time-timegm/f20] Initial SETUP.
Christopher Meng
cicku at fedoraproject.org
Mon Jul 21 01:35:52 UTC 2014
commit 5067cd7055377d2109a504636c7eba78edb3e457
Author: Christopher Meng <i at cicku.me>
Date: Mon Jul 21 09:35:05 2014 +0800
Initial SETUP.
.gitignore | 1 +
perl-Time-timegm.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c37ecc7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Time-timegm-0.01.tar.gz
diff --git a/perl-Time-timegm.spec b/perl-Time-timegm.spec
new file mode 100644
index 0000000..b6fa096
--- /dev/null
+++ b/perl-Time-timegm.spec
@@ -0,0 +1,56 @@
+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 <rpm at cicku.me> - 0.01-2
+- Add missing dependency XSLoader
+
+* Fri Jun 27 2014 Christopher Meng <rpm at cicku.me> - 0.01-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..32200b5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+39bd31722d7882f1de623ca924c793d5 Time-timegm-0.01.tar.gz
More information about the scm-commits
mailing list