%define perl_vendorlib %(eval "`%{_bindir}/perl -V:installvendorlib`"; echo $installvendorlib) Name: perl-TimeDate Version: 1.19 Release: 1 Summary: A Perl module for time and date manipulation Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/TimeDate/ Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires: perl(:MODULE_COMPAT_%(eval "`%{_bindir}/perl -V:version`"; echo $version)) Requires: perl >= 5.8.8 %description This module includes a number of smaller modules suited for manipulation of time and date strings with Perl. In particular, the Date::Format and Date::Parse modules can display and read times and dates in various formats, providing a more reliable interface to textual representations of points in time. %prep %setup -q -n TimeDate-%{version} %build %{_bindir}/perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make pure_install PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} find ${RPM_BUILD_ROOT} -type f -name .packlist -exec rm -f {} ';' find ${RPM_BUILD_ROOT} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w ${RPM_BUILD_ROOT}/* %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %{perl_vendorlib}/Date/ %{perl_vendorlib}/Time/ %{_mandir}/man3/*.3* %changelog * Thu Dec 03 2009 Michael Perzl - 1.19-1 - first version for AIX V5.1 and higher