perl-Time-Period/perl-Time-Period.spec

64 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

%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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.25-1mamba
- update to 1.25
* Fri Aug 30 2013 Automatic Build System <autodist@mambasoft.it> 1.20-5mamba
- automatic rebuild by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20-4mamba
- automatic rebuild by autodist
* Sat Jun 21 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.20-3mamba
- updated Vendor, Distribution, Packager
* Tue Feb 01 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20-2qilnx
- fixed perl version check
* Fri Apr 30 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.20-1qilnx
- First build