perl-Math-Round-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Name: perl-Math-Round
  2. Version: 0.06
  3. Release: 2%{?_dist_release}
  4. Summary: Perl extension for rounding numbers
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/Math-Round
  8. Source0: http://search.cpan.org/CPAN/authors/id/G/GR/GROMMEL/Math-Round-%{version}.tar.gz
  9. Patch0: Math-Round-0.06-utf8.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. BuildRequires: perl(Exporter)
  13. BuildRequires: perl(ExtUtils::MakeMaker)
  14. BuildRequires: perl(POSIX)
  15. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  16. %description
  17. Math::Round supplies functions that will round numbers in different ways. The
  18. functions round and nearest are exported by default; others are available as
  19. described below. "use ... qw(:all)" exports all functions.
  20. %prep
  21. %setup -q -n Math-Round-%{version}
  22. # Recode docs as UTF-8
  23. %patch0 -p1
  24. # remove errant execute bits
  25. find . -type f -exec chmod -c -x {} ';'
  26. %build
  27. perl Makefile.PL INSTALLDIRS=vendor
  28. make %{?_smp_mflags}
  29. %install
  30. rm -rf %{buildroot}
  31. make pure_install DESTDIR=%{buildroot}
  32. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  33. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  34. %{_fixperms} %{buildroot}
  35. %check
  36. make test
  37. %clean
  38. rm -rf %{buildroot}
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc Changes README
  42. %{perl_vendorlib}/auto/Math/
  43. %{perl_vendorlib}/Math/
  44. %{_mandir}/man3/Math::Round.3pm*
  45. %changelog
  46. * Tue Nov 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.06-2
  47. - rebuilt with perl 5.16.3
  48. * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.06-1
  49. - initial build for Vine Linux
  50. * Fri Jan 20 2012 Paul Howarth <paul@city-fan.org> - 0.06-12
  51. - BR: perl(Exporter) and perl(POSIX)
  52. - Make %%files list more specific
  53. - Don't use macros for commands
  54. - Use DESTDIR rather than PERL_INSTALL_ROOT
  55. - Recode README as UTF-8
  56. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-11
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  58. * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-10
  59. - Perl mass rebuild
  60. * Tue Jun 14 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-9
  61. - Perl mass rebuild
  62. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-8
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  64. * Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-7
  65. - Rebuild to fix problems with vendorarch/lib (#661697)
  66. * Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-6
  67. - Mass rebuild with perl-5.12.0
  68. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.06-5
  69. - rebuild against perl 5.10.1
  70. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-4
  71. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  72. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  74. * Tue Mar 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.06-2
  75. - rebuild for new perl
  76. * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.06-1.1
  77. - correct license tag
  78. - add BR: perl(ExtUtils::MakeMaker)
  79. * Tue Dec 05 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.06-1
  80. - update to 0.06
  81. - minor spec file tweaks
  82. * Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.05-2
  83. - bump for mass rebuild
  84. * Mon Jul 3 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.05-1
  85. - bump for F-E release
  86. * Thu Jun 29 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.05-0
  87. - Initial spec file for F-E