[perl-DateTime-Format-Duration] Import

Petr Pisar ppisar at fedoraproject.org
Mon Jan 28 14:13:59 UTC 2013


commit 07b649e9abbc0436cd8fa6e928beba62e6c9fa43
Author: Petr Písař <ppisar at redhat.com>
Date:   Mon Jan 28 15:11:19 2013 +0100

    Import

 .gitignore                         |    1 +
 perl-DateTime-Format-Duration.spec |   65 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 3 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..faa77b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/DateTime-Format-Duration-1.03a.tgz
diff --git a/perl-DateTime-Format-Duration.spec b/perl-DateTime-Format-Duration.spec
new file mode 100644
index 0000000..96e8779
--- /dev/null
+++ b/perl-DateTime-Format-Duration.spec
@@ -0,0 +1,65 @@
+%global cpan_name DateTime-Format-Duration
+%global postversion a
+
+Name:           perl-%{cpan_name}
+Version:        1.03
+Release:        1.%{postversion}%{?dist}
+Summary:        Format and parse DateTime::Durations
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/%{cpan_name}/
+Source0:        http://www.cpan.org/modules/by-module/DateTime/%{cpan_name}-%{version}%{postversion}.tgz
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time:
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(DateTime) >= 0.30
+BuildRequires:  perl(DateTime::Duration)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(Params::Validate)
+# Tests:
+BuildRequires:  perl(Test::More)
+# Optional tests:
+BuildRequires:  perl(Test::Pod)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Data::Dumper)
+Requires:       perl(DateTime) >= 0.30
+
+%description
+This module formats and parses DateTime::Duration objects as well as other
+durations representations.
+
+
+%prep
+%setup -q -n %{cpan_name}-%{version}
+find -type f -exec chmod -x {} +
+for F in Changes; do
+    iconv -f iso8859-1 -t utf-8 < "$F" > "${F}.utf"
+    touch -r "$F" "${F}.utf"
+    mv "${F}.utf" "$F"
+done
+
+%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
+* Mon Dec 17 2012 Petr Pisar <ppisar at redhat.com> 1.03-1.a
+- Specfile autogenerated by cpanspec 1.78.
+- Tar ball 1.03a delivers plain version 1.03 (tar ball 1.03 defines old
+  $VERSION)
diff --git a/sources b/sources
index e69de29..5e70972 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f395c9f17d8fe65aa3b3cca6c8fecf17  DateTime-Format-Duration-1.03a.tgz


More information about the scm-commits mailing list