%define module Math-BigRat %define name perl-%{module} %define version 0.22 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: Arbitrary big rational numbers License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/Math/%{module}-%{version}.tar.gz # automatic dependency doesn't work here, because perl package # provides an unversioned one BuildRequires: perl-Math-BigInt >= 1.87 BuildRoot: %{_tmppath}/%{name}-%{version} %description Math::BigRat complements Math::BigInt and Math::BigFloat by providing support for arbitrary big rational numbers. %prep %setup -q -n %{module}-%{version} %build export PERL5LIB=%{perl_vendorlib} %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check export PERL5LIB=%{perl_vendorlib}/ make test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README %{perl_vendorlib}/Math %{_mandir}/*/* %changelog * Fri Aug 08 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.22-2mdv2009.0 + Revision: 268613 - rebuild early 2009.0 package (before pixel changes) * Wed Apr 16 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.22-1mdv2009.0 + Revision: 194859 - update to new version 0.22 - update to new version 0.22 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sun Sep 02 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.20-1mdv2008.0 + Revision: 78233 - import perl-Math-BigRat * Sun Sep 02 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.20-1mdv2008.0 - first mdv release