[perl-Convert-Age] Initial import (#903824).

Normunds Neimanis normunds at fedoraproject.org
Wed Feb 13 15:15:08 UTC 2013


commit 8bd2c1a9e6dbecb41fc058dbd8bc1d246718d24d
Author: Normunds Neimanis <fedorapkg,lv>
Date:   Wed Feb 13 17:14:49 2013 +0200

    Initial import (#903824).

 .gitignore            |    1 +
 perl-Convert-Age.spec |   54 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b2c8c1b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Convert-Age-0.04.tar.gz
diff --git a/perl-Convert-Age.spec b/perl-Convert-Age.spec
new file mode 100644
index 0000000..b5b6cb6
--- /dev/null
+++ b/perl-Convert-Age.spec
@@ -0,0 +1,54 @@
+Name:		perl-Convert-Age
+Version:	0.04
+Release:	1%{?dist}
+Summary:	Perl module that converts integer seconds into a "compact" form and back
+
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/Convert-Age
+Source0:	http://search.cpan.org/CPAN/authors/id/C/CF/CFEDDE/Convert-Age-%{version}.tar.gz
+
+
+BuildArch:	noarch
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(Exporter)
+
+
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+
+%description
+This is a rather simple perl module for dealing with time intervals. 
+Convert 189988007 seconds to compact form: 6y7d10h26m47s
+Convert compact 5h37m5s to seconds: 20225
+
+
+%prep
+%setup -q -n Convert-Age-%{version}
+
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+%{_fixperms} %{buildroot}/*
+
+
+%check
+make test
+
+
+%files
+%doc Changes README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Wed Jan 23 2013 Normunds Neimanis <fedorapkg at rule.lv> 0.04-1
+- Package for current Fedora
diff --git a/sources b/sources
index e69de29..ac64187 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+79b4069c89a7cdf28444d5ea5ef72f21  Convert-Age-0.04.tar.gz



More information about the perl-devel mailing list