%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-DateTime-Format-ISO8601 Version: 0.08 Release: 1mamba Summary: DateTime::Format::ISO8601 - Parses ISO8601 formats Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/J/JH/JHOBLITT/DateTime-Format-ISO8601-%{version}.tar.gz License: GPL, Artistic BuildRequires: perl(DateTime) BuildRequires: perl(DateTime::Format::Builder) BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Test::Distribution) BuildRequires: perl(Test::More) BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Parses almost all ISO8601 date and time formats. ISO8601 time-intervals will be supported in a later release. %prep %setup -q -n DateTime-Format-ISO8601-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{perl_vendorlib}/DateTime %{_mandir}/man3/*.3pm.gz %doc Changes LICENSE README Todo %changelog * Thu Aug 16 2012 Silvan Calarco 0.08-1mamba - update to 0.08 * Mon Mar 07 2011 gil 0.07-1mamba - package created by autospec