diff --git a/.cvsignore b/.cvsignore index e69de29..dbd2e56 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Time-Duration-Parse-0.06.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..10cb16e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Time-Duration-Parse-0_06-1_fc10:HEAD:perl-Time-Duration-Parse-0.06-1.fc10.src.rpm:1231974641 diff --git a/perl-Time-Duration-Parse.spec b/perl-Time-Duration-Parse.spec new file mode 100644 index 0000000..76fdfe1 --- /dev/null +++ b/perl-Time-Duration-Parse.spec @@ -0,0 +1,63 @@ +Name: perl-Time-Duration-Parse +Version: 0.06 +Release: 1%{?dist} +# see lib/Time/Duration/Parse.pm +License: GPL+ or Artistic +Group: Development/Libraries +Summary: Parse string that represents time duration +Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Time-Duration-Parse-%{version}.tar.gz +Url: http://search.cpan.org/dist/Time-Duration-Parse +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Exporter::Lite) +BuildRequires: perl(Test::More) +# optional tests +BuildRequires: perl(Time::Duration) + + +%description +Time::Duration::Parse is a module to parse human readable duration strings +like _2 minutes and 3 seconds_ to seconds. + +It does the opposite of duration_exact() in Time::Duration and is roundtrip +safe. So, the following is always true. + +%prep +%setup -q -n Time-Duration-Parse-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Sat Jan 10 2009 Chris Weyl 0.06-1 +- brush-up for review + +* Sat Oct 11 2008 Chris Weyl 0.06-0.1 +- initial RPM packaging +- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.1) + diff --git a/sources b/sources index e69de29..5b1cd17 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a23b7ca50a909df57e484cf39a3fa414 Time-Duration-Parse-0.06.tar.gz