[perl-Math-Round] Spec clean-up
Paul Howarth
pghmcfc at fedoraproject.org
Fri Jan 20 19:12:15 UTC 2012
commit 528d46467717c60ac5c1ccd32752eedeed9ee4b9
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Jan 20 19:11:36 2012 +0000
Spec clean-up
- BR: perl(Exporter) and perl(POSIX)
- Make %files list more specific
- Don't use macros for commands
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Recode README as UTF-8
.gitignore | 2 +-
Math-Round-0.06-utf8.patch | 11 +++++++++
perl-Math-Round.spec | 54 +++++++++++++++++++++++--------------------
3 files changed, 41 insertions(+), 26 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7a51b5d..d7bb130 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-Math-Round-0.06.tar.gz
+/Math-Round-[0-9.]*.tar.gz
diff --git a/Math-Round-0.06-utf8.patch b/Math-Round-0.06-utf8.patch
new file mode 100644
index 0000000..be1cd2c
--- /dev/null
+++ b/Math-Round-0.06-utf8.patch
@@ -0,0 +1,11 @@
+--- Math-Round-0.06/README
++++ Math-Round-0.06/README
+@@ -37,7 +37,7 @@
+ make install
+
+
+-Copyright © 2002 Geoffrey Rommel. All rights reserved.
++Copyright © 2002 Geoffrey Rommel. All rights reserved.
+ This program is free software; you can redistribute it and/or modify
+ it under the same terms as Perl itself.
+
diff --git a/perl-Math-Round.spec b/perl-Math-Round.spec
index acc8c92..024ea15 100644
--- a/perl-Math-Round.spec
+++ b/perl-Math-Round.spec
@@ -1,61 +1,65 @@
Name: perl-Math-Round
-Version: 0.06
-Release: 11%{?dist}
+Version: 0.06
+Release: 12%{?dist}
Summary: Perl extension for rounding numbers
-
Group: Development/Libraries
-License: GPL+ or Artistic
-URL: http://search.cpan.org/dist/Math-Round
-Source0: http://search.cpan.org/CPAN/authors/id/G/GR/GROMMEL/Math-Round-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildArch: noarch
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Math-Round
+Source0: http://search.cpan.org/CPAN/authors/id/G/GR/GROMMEL/Math-Round-%{version}.tar.gz
+Patch0: Math-Round-0.06-utf8.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch: noarch
+BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(POSIX)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Math::Round supplies functions that will round numbers in different ways. The
functions round and nearest are exported by default; others are available as
described below. "use ... qw(:all)" exports all functions.
-
%prep
%setup -q -n Math-Round-%{version}
+# Recode docs as UTF-8
+%patch0 -p1
+
# remove errant execute bits
-find . -type f -exec chmod -x {} ';'
+find . -type f -exec chmod -c -x {} ';'
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-
%install
rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
-
-%{_fixperms} %{buildroot}/*
-
+%{_fixperms} %{buildroot}
%check
make test
-
%clean
rm -rf %{buildroot}
-
%files
%defattr(-,root,root,-)
%doc Changes README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*.3*
-
+%{perl_vendorlib}/auto/Math/
+%{perl_vendorlib}/Math/
+%{_mandir}/man3/Math::Round.3pm*
%changelog
+* Fri Jan 20 2012 Paul Howarth <paul at city-fan.org> - 0.06-12
+- BR: perl(Exporter) and perl(POSIX)
+- Make %%files list more specific
+- Don't use macros for commands
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Recode README as UTF-8
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.06-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
@@ -69,7 +73,7 @@ rm -rf %{buildroot}
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Dec 20 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.06-7
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
* Mon May 03 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.06-6
- Mass rebuild with perl-5.12.0
More information about the perl-devel
mailing list