[perl-Math-GMP] Spec clean-up

Paul Howarth pghmcfc at fedoraproject.org
Thu Jan 12 16:53:12 UTC 2012


commit 117b65b27a6dc40c7b4e1232e70838e04009f466
Author: Paul Howarth <paul at city-fan.org>
Date:   Thu Jan 12 12:58:56 2012 +0000

    Spec clean-up
    
    - Use %{_fixperms} macro rather than our own chmod incantation
    - Add buildreqs for perl core modules, which might be dual-lived
    - Don't run tests in VERBOSE mode anymore

 perl-Math-GMP.spec |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/perl-Math-GMP.spec b/perl-Math-GMP.spec
index 2414c0f..0c3652a 100644
--- a/perl-Math-GMP.spec
+++ b/perl-Math-GMP.spec
@@ -1,7 +1,7 @@
 Summary:	High speed arbitrary size integer math
 Name:		perl-Math-GMP
 Version:	2.06
-Release:	8%{?dist}.1
+Release:	9%{?dist}
 License:	LGPLv2+
 Group:		Development/Libraries
 Url:		http://search.cpan.org/dist/Math-GMP/
@@ -11,6 +11,10 @@ Source2:	161C06B1.asc
 Patch0:		Math-GMP-2.06-stopwords.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildRequires:	gmp-devel
+BuildRequires:	perl(AutoLoader)
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(DynaLoader)
+BuildRequires:	perl(Exporter)
 BuildRequires:	perl(ExtUtils::MakeMaker)
 BuildRequires:	perl(File::Comments)
 BuildRequires:	perl(Module::Signature)
@@ -66,7 +70,7 @@ make -C Math-GMP-%{version} pure_install PERL_INSTALL_ROOT=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
 find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
 find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
-chmod -R u+w %{buildroot}
+%{_fixperms} %{buildroot}
 
 %check
 export GNUPGHOME=$(pwd)/gnupghome
@@ -76,7 +80,7 @@ cd Math-GMP-%{version}
 [ -f MYMETA.yml ] && mv MYMETA.yml ..
 
 # Locale set to en_US for spell check tests
-LANG=en_US make test RELEASE_TESTING=1 TEST_VERBOSE=1
+LANG=en_US make test RELEASE_TESTING=1
 
 # Restore MYMETA.yml if necessary
 [ -f ../MYMETA.yml ] && mv ../MYMETA.yml .
@@ -94,8 +98,13 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Math::GMP.3pm*
 
 %changelog
-* Wed Oct 12 2011 Peter Schiffer <pschiffe at redhat.com> - 2.06-8.1
-- rebuild with new gmp
+* Thu Jan 12 2012 Paul Howarth <paul at city-fan.org> 2.06-9
+- Use %%{_fixperms} macro rather than our own chmod incantation
+- Add buildreqs for perl core modules, which might be dual-lived
+- Don't run tests in VERBOSE mode anymore
+
+* Wed Oct 12 2011 Peter Schiffer <pschiffe at redhat.com> 2.06-8.1
+- Rebuild with new gmp
 
 * Wed Jul 20 2011 Paul Howarth <paul at city-fan.org> 2.06-8
 - Perl mass rebuild


More information about the scm-commits mailing list