perl-Math-BigInt-GMP-vl.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Name: perl-Math-BigInt-GMP
  2. Version: 1.24
  3. Release: 1%{?_dist_release}
  4. Summary: Math::BigInt::GMP Perl module
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Math-BigInt-GMP/
  8. Source0: http://search.cpan.org/CPAN/authors/id/P/PJ/PJACKLAM/Math-BigInt-GMP-%{version}.tar.gz
  9. BuildRequires: gmp-devel
  10. BuildRequires: perl(ExtUtils::MakeMaker)
  11. BuildRequires: perl(Math::BigInt) >= 1.87
  12. BuildRequires: perl(Test::More)
  13. BuildRequires: perl(Test::Pod)
  14. BuildRequires: perl(Test::Pod::Coverage) >= 1.08
  15. BuildRequires: perl(YAML)
  16. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  17. %{?perl_default_filter}
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: shaolin
  21. %description
  22. This package contains a replacement (drop-in) module for Math::BigInt's
  23. core, Math::BigInt::Calc.pm. It needs the new versions of Math::BigInt and
  24. Math::BigFloat as they are from Perl 5.7.x onwards.
  25. %prep
  26. %setup -q -n Math-BigInt-GMP-%{version}
  27. %build
  28. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  29. make %{?_smp_mflags}
  30. %install
  31. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  32. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  33. find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
  34. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  35. %{_fixperms} %{buildroot}/*
  36. %check
  37. make test
  38. %files
  39. %doc BUGS CHANGES CREDITS LICENSE README TODO
  40. %{perl_vendorarch}/auto/*
  41. %{perl_vendorarch}/Math*
  42. %{_mandir}/man3/*
  43. %changelog
  44. * Mon Mar 12 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.24-1
  45. - initial build for Vine Linux
  46. - the newest upstream so far is 1.37 that needs perl(Math::BigInt) >= 1.993,
  47. better consider upgrading to 1.37 after we upgrade perl to 5.14.x