%define pkg_name Math-BigRat %define pkg_version 0.20 %define rpm_pkg_version 0.20 %define rpm_pkg_release 1.n0i.6 Summary: Arbitrary size rational numbers Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} # avoid buggy RPM versioning (core perl build) Epoch: 0 Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/T/TE/TELS/math/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(Module::Build) Requires: perl(Math::BigInt) >= 1.83 %{!?_without_test:BuildRequires: perl(Math::BigInt) >= 1.83} %{!?_without_test:BuildRequires: perl(Test::More) >= 0.47} %description Math::BigRat complements Math::BigInt and Math::BigFloat by providing support for arbitrarily big rational numbers. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc BUGS CHANGES LICENSE README TODO %changelog * Wed Aug 01 2007 Marius Feraru - 0:0.20-1.n0i.6 - version 0.20 * Tue May 22 2007 Marius Feraru - 0:0.19-1.n0i.5 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 - version 0.19 * Tue Mar 23 2004 Marius Feraru 0:0.12-3.n0i.4 - spec file (re?)created using N0i::CPAN::RPMizer/2004032101 - install into vendorlib * Sat Mar 20 2004 Marius FERARU 0:0.12-2.n0i.3 - epoch: 0! it willl need a --force to install... but let's keep the fucked up >0 epoch only for the perl base package. * Fri Mar 19 2004 Marius FERARU 3:0.12-1.n0i.2 - version 0.12 * Wed Feb 25 2004 Marius FERARU 3:0.11-1.n0i.1 - version 0.11 - spec file (re?)created using N0i::CPAN::RPMizer/2004022501