diff --git a/.cvsignore b/.cvsignore index e69de29..17eeab8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Math-BigInt-GMP-1.24.tar.gz diff --git a/perl-Math-BigInt-GMP.spec b/perl-Math-BigInt-GMP.spec new file mode 100644 index 0000000..6726da5 --- /dev/null +++ b/perl-Math-BigInt-GMP.spec @@ -0,0 +1,56 @@ +Name: perl-Math-BigInt-GMP +Version: 1.24 +Release: 1%{?dist} +Summary: Math::BigInt::GMP Perl module +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Math-BigInt-GMP/ +Source0: http://www.cpan.org/authors/id/T/TE/TELS/math/Math-BigInt-GMP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: gmp-devel +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This package contains a replacement (drop-in) module for Math::BigInt's +core, Math::BigInt::Calc.pm. It needs the new versions of Math::BigInt and +Math::BigFloat as they are from Perl 5.7.x onwards. + +%prep +%setup -q -n Math-BigInt-GMP-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +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 -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc BUGS CHANGES CREDITS LICENSE README TODO +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/Math* +%{_mandir}/man3/* + +%changelog +* Sun May 18 2008 Steven Pritchard 1.24-1 +- Specfile autogenerated by cpanspec 1.75. +- BR Test::More, Test::Pod, Test::Pod::Coverage, and gmp-devel. diff --git a/sources b/sources index e69de29..db9d687 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +de5bb548f9e8e2254565926eec1d15b2 Math-BigInt-GMP-1.24.tar.gz