You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.2 KiB
76 lines
2.2 KiB
Name: perl-Time-Duration-Parse
|
|
Version: 0.06
|
|
Release: 5%{?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
|
|
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-5
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.06-4
|
|
- rebuild against perl 5.10.1
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sat Jan 10 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.06-1
|
|
- brush-up for review
|
|
|
|
* Sat Oct 11 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.06-0.1
|
|
- initial RPM packaging
|
|
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.1)
|
|
|