[perl-DateTime-Format-Epoch] initial import (rhbz#730043)

Iain Arnell iarnell at fedoraproject.org
Mon Aug 29 14:31:17 UTC 2011


commit 283b2e9603b64f88c650f5f0e5f49ee7f5db86a2
Author: Iain Arnell <iarnell at gmail.com>
Date:   Mon Aug 29 16:30:34 2011 +0200

    initial import (rhbz#730043)

 .gitignore                      |    1 +
 perl-DateTime-Format-Epoch.spec |   54 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..0f0a757 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/DateTime-Format-Epoch-0.13.tar.gz
diff --git a/perl-DateTime-Format-Epoch.spec b/perl-DateTime-Format-Epoch.spec
new file mode 100644
index 0000000..87b58b5
--- /dev/null
+++ b/perl-DateTime-Format-Epoch.spec
@@ -0,0 +1,54 @@
+Name:           perl-DateTime-Format-Epoch
+Version:        0.13
+Release:        1%{?dist}
+Summary:        Convert DateTimes to/from epoch seconds
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/DateTime-Format-Epoch/
+Source0:        http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Epoch-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl >= 0:5.00503
+BuildRequires:  perl(DateTime) >= 0.31
+BuildRequires:  perl(Math::BigInt) >= 1.66
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Params::Validate)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod)
+Requires:       perl(DateTime) >= 0.31
+Requires:       perl(Math::BigInt) >= 1.66
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+This module can convert a DateTime object (or any object that can be
+converted to a DateTime object) to the number of seconds since a given
+epoch. It can also do the reverse.
+
+%prep
+%setup -q -n DateTime-Format-Epoch-%{version}
+
+# replace CRLF
+find -type f -print0 | xargs -0 sed -i 's/\r$//'
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+./Build test
+
+%files
+%doc Changes LICENSE README TODO
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Aug 11 2011 Iain Arnell <iarnell at gmail.com> 0.13-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..737cea8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f42982ea634401df953f88ce5eec1b7d  DateTime-Format-Epoch-0.13.tar.gz



More information about the perl-devel mailing list