%define perl_vendorlib %(eval "`%{_bindir}/perl -V:installvendorlib`"; echo $installvendorlib) Name: perl-Date-Manip Version: 5.48 Release: 1 Summary: A Perl module containing a wide variety of date manipulation routines Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Date-Manip/ Source0: http://www.cpan.org/authors/id/S/SB/SBECK/Date-Manip-%{version}.tar.gz Patch0: %{name}-%{version}-datez-rhbz248500.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: patch Requires: perl(:MODULE_COMPAT_%(eval "`%{_bindir}/perl -V:version`"; echo $version)) Requires: perl >= 5.8.8 # This package was formerly known as perl-DateManip Provides: perl-DateManip = %{version}-%{release} Obsoletes: perl-DateManip < 5.48-1 %description This is a set of routines designed to make any common date/time manipulation easy to do. Operations such as comparing two times, calculating a time a given amount of time from another, or parsing international times are all easily done. %prep export PATH=/opt/freeware/bin:$PATH %setup -q -n Date-Manip-%{version} %patch0 -p1 %build %{_bindir}/perl Makefile.PL INSTALLDIRS=vendor make %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} -depth -type d -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,-) %doc README TODO HISTORY %{perl_vendorlib}/Date/ %{_mandir}/man3/*.3* %changelog * Thu Oct 16 2008 Michael Perzl - 5.48-1 - first version for AIX V5.1 and higher