[5844] | 1 | Name: perl-Math-Round |
---|
| 2 | Version: 0.06 |
---|
| 3 | Release: 1%{?_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}-%{release}-root-%(id -nu) |
---|
| 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 | |
---|
| 17 | %description |
---|
| 18 | Math::Round supplies functions that will round numbers in different ways. The |
---|
| 19 | functions round and nearest are exported by default; others are available as |
---|
| 20 | described below. "use ... qw(:all)" exports all functions. |
---|
| 21 | |
---|
| 22 | %prep |
---|
| 23 | %setup -q -n Math-Round-%{version} |
---|
| 24 | |
---|
| 25 | # Recode docs as UTF-8 |
---|
| 26 | %patch0 -p1 |
---|
| 27 | |
---|
| 28 | # remove errant execute bits |
---|
| 29 | find . -type f -exec chmod -c -x {} ';' |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 33 | make %{?_smp_mflags} |
---|
| 34 | |
---|
| 35 | %install |
---|
| 36 | rm -rf %{buildroot} |
---|
| 37 | make pure_install DESTDIR=%{buildroot} |
---|
| 38 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
| 39 | find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 40 | %{_fixperms} %{buildroot} |
---|
| 41 | |
---|
| 42 | %check |
---|
| 43 | make test |
---|
| 44 | |
---|
| 45 | %clean |
---|
| 46 | rm -rf %{buildroot} |
---|
| 47 | |
---|
| 48 | %files |
---|
| 49 | %defattr(-,root,root,-) |
---|
| 50 | %doc Changes README |
---|
| 51 | %{perl_vendorlib}/auto/Math/ |
---|
| 52 | %{perl_vendorlib}/Math/ |
---|
| 53 | %{_mandir}/man3/Math::Round.3pm* |
---|
| 54 | |
---|
| 55 | %changelog |
---|
| 56 | * Mon Mar 05 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.06-1 |
---|
| 57 | - initial build for Vine Linux |
---|
| 58 | |
---|
| 59 | * Fri Jan 20 2012 Paul Howarth <paul@city-fan.org> - 0.06-12 |
---|
| 60 | - BR: perl(Exporter) and perl(POSIX) |
---|
| 61 | - Make %%files list more specific |
---|
| 62 | - Don't use macros for commands |
---|
| 63 | - Use DESTDIR rather than PERL_INSTALL_ROOT |
---|
| 64 | - Recode README as UTF-8 |
---|
| 65 | |
---|
| 66 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-11 |
---|
| 67 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 68 | |
---|
| 69 | * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-10 |
---|
| 70 | - Perl mass rebuild |
---|
| 71 | |
---|
| 72 | * Tue Jun 14 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-9 |
---|
| 73 | - Perl mass rebuild |
---|
| 74 | |
---|
| 75 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-8 |
---|
| 76 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 77 | |
---|
| 78 | * Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-7 |
---|
| 79 | - Rebuild to fix problems with vendorarch/lib (#661697) |
---|
| 80 | |
---|
| 81 | * Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-6 |
---|
| 82 | - Mass rebuild with perl-5.12.0 |
---|
| 83 | |
---|
| 84 | * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.06-5 |
---|
| 85 | - rebuild against perl 5.10.1 |
---|
| 86 | |
---|
| 87 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-4 |
---|
| 88 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 89 | |
---|
| 90 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-3 |
---|
| 91 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 92 | |
---|
| 93 | * Tue Mar 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.06-2 |
---|
| 94 | - rebuild for new perl |
---|
| 95 | |
---|
| 96 | * Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.06-1.1 |
---|
| 97 | - correct license tag |
---|
| 98 | - add BR: perl(ExtUtils::MakeMaker) |
---|
| 99 | |
---|
| 100 | * Tue Dec 05 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.06-1 |
---|
| 101 | - update to 0.06 |
---|
| 102 | - minor spec file tweaks |
---|
| 103 | |
---|
| 104 | * Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.05-2 |
---|
| 105 | - bump for mass rebuild |
---|
| 106 | |
---|
| 107 | * Mon Jul 3 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.05-1 |
---|
| 108 | - bump for F-E release |
---|
| 109 | |
---|
| 110 | * Thu Jun 29 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.05-0 |
---|
| 111 | - Initial spec file for F-E |
---|