[perl-Time-Local] Import

Petr Pisar ppisar at fedoraproject.org
Mon Mar 18 07:19:38 UTC 2013


commit af2ec26ce1a42b16e7e5944dd442bed091f051cf
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Mar 18 08:18:04 2013 +0100

    Import

 .gitignore           |    1 +
 perl-Time-Local.spec |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d83ea2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Time-Local-1.2300.tar.gz
diff --git a/perl-Time-Local.spec b/perl-Time-Local.spec
new file mode 100644
index 0000000..72e7903
--- /dev/null
+++ b/perl-Time-Local.spec
@@ -0,0 +1,56 @@
+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
+BuildArch:      noarch
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time:
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Config)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(vars)
+# Tests:
+BuildRequires:  perl(Test::More) >= 0.88
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+#Requires:       perl(Carp)
+#Requires:       perl(Config)
+
+%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
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Mar 15 2013 Petr Pisar <ppisar at redhat.com> 1.2300-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..8c6f9a8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+68e1be54c151cf131f9d4168b3e662f9  Time-Local-1.2300.tar.gz



More information about the perl-devel mailing list