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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Name: perl-Math-BigInt-GMP
  2. Version: 1.37
  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. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: gmp-devel
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(Math::BigInt) >= 1.994
  13. BuildRequires: perl(Math::BigFloat) >= 1.994
  14. BuildRequires: perl(Pod::Coverage) >= 0.18
  15. BuildRequires: perl(Test::More)
  16. BuildRequires: perl(Test::Pod) >= 1.22
  17. BuildRequires: perl(Test::Pod::Coverage) >= 1.08
  18. BuildRequires: perl(threads)
  19. BuildRequires: perl(XSLoader)
  20. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  21. %{?perl_default_filter}
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: shaolin
  25. %description
  26. This package contains a replacement (drop-in) module for Math::BigInt's
  27. core, Math::BigInt::Calc.pm. It needs the new versions of Math::BigInt and
  28. Math::BigFloat as they are from Perl 5.7.x onwards.
  29. %prep
  30. %setup -q -n Math-BigInt-GMP-%{version}
  31. %build
  32. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  33. make %{?_smp_mflags}
  34. %install
  35. make pure_install PERL_INSTALL_ROOT=%{buildroot}
  36. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  37. find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
  38. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  39. %{_fixperms} %{buildroot}/*
  40. %check
  41. make test
  42. %files
  43. %doc BUGS CHANGES CREDITS LICENSE README TODO
  44. %{perl_vendorarch}/auto/*
  45. %{perl_vendorarch}/Math*
  46. %{_mandir}/man3/*
  47. %changelog
  48. * Wed Nov 5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.37-1
  49. - updated to 1.37
  50. - built with perl 5.16.3 and gmp 5.1.3
  51. * Mon Mar 12 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.24-1
  52. - initial build for Vine Linux
  53. - the newest upstream so far is 1.37 that needs perl(Math::BigInt) >= 1.993,
  54. better consider upgrading to 1.37 after we upgrade perl to 5.14.x