%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-DateTime-Format-HTTP Version: 0.42 Release: 1mamba Summary: DateTime::Format::HTTP - Date conversion routines Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/C/CK/CKRAS/DateTime-Format-HTTP-%{version}.tar.gz License: GPL, Artistic BuildRequires: perl(Class::ISA) BuildRequires: perl(DateTime) BuildRequires: perl(File::Find::Rule) BuildRequires: perl(HTTP::Date) BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This module provides functions that deal the date formats used by the HTTP protocol (and then some more). %prep %setup -q -n DateTime-Format-HTTP-%{version} sed -i -e 's/\r//' LICENSE README Changes CREDITS %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 LICENSE #Changes CREDITS README %changelog * Thu May 08 2014 Automatic Build System 0.42-1mamba - automatic update by autodist * Thu Aug 16 2012 Silvan Calarco 0.40-2mamba - imported in devel * Mon Mar 07 2011 gil 0.40-1mamba - package created by autospec