%define PERL_VERSION %(eval `perl -V:version`; echo $version) Name: perl-Time-Period Version: 1.25 Release: 1mamba Summary: A Perl module that contains code to deal with time periods. Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org/ Source: https://cpan.metacpan.org/authors/id/P/PB/PBOYD/Time-Period-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: perl-devel ## AUTOBUILDREQ-END Requires: perl >= %PERL_VERSION %description Period.pm is a Perl module that contains code to deal with time periods. %prep %setup -q -n Time-Period-%{version} %build perl Makefile.PL %make make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" make pure_install DESTDIR=%{buildroot} %define PERL_SITEARCH %(eval `perl -V:sitearch`; echo $sitearch) cat $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Time/Period/.packlist | \ sed "s@$RPM_BUILD_ROOT@@g;s@.*/man/.*@&.gz@g" | \ sort -u > .packlist rm -f $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Time/Period/.packlist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Mon Jan 10 2022 Silvan Calarco 1.25-1mamba - update to 1.25 * Fri Aug 30 2013 Automatic Build System 1.20-5mamba - automatic rebuild by autodist * Wed Nov 05 2008 Silvan Calarco 1.20-4mamba - automatic rebuild by autodist * Sat Jun 21 2008 Tiziana Ferro 1.20-3mamba - updated Vendor, Distribution, Packager * Tue Feb 01 2005 Silvan Calarco 1.20-2qilnx - fixed perl version check * Fri Apr 30 2004 Silvan Calarco 1.20-1qilnx - First build