[perl-Math-Pari] Update to 2.01080605

Paul Howarth pghmcfc at fedoraproject.org
Sat Apr 30 10:11:21 UTC 2011


commit e578b6a0d7a90103d5d804cf8c864d8e856e0113
Author: Paul Howarth <paul at city-fan.org>
Date:   Sat Apr 30 11:10:10 2011 +0100

    Update to 2.01080605
    
    - Update to 2.01080605 (see Changes for details)
    - Remove buildroot definition and cleaning, redundant with modern rpmbuild
    - Nobody else likes macros for commands
    - PERL_INSTALL_ROOT => DESTDIR
    - Use %{_fixperms} macro instead of our own chmod incantation

 .gitignore          |    4 ++--
 perl-Math-Pari.spec |   42 ++++++++++++++++++++++--------------------
 sources             |    2 +-
 3 files changed, 25 insertions(+), 23 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index cfe3600..d8b8c6b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-Math-Pari-2.01080604.tar.gz
-pari-2.3.5.tar.gz
+/Math-Pari-2.01080605.tar.gz
+/pari-2.3.5.tar.gz
diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec
index 0706314..fe339dc 100644
--- a/perl-Math-Pari.spec
+++ b/perl-Math-Pari.spec
@@ -8,14 +8,14 @@
 # have to enforce a tight dependency on the main pari library version
 # so that we stay in step properly.
 %global pari_version	2.3.5
-%global pari_int_version %(echo %{pari_version} | %{__perl} -pi -e 's/(\\d+)\\.(\\d+)\\.(\\d+)/sprintf("%d%03d%03d",$1,$2,$3)/e')
+%global pari_int_version %(echo %{pari_version} | perl -pi -e 's/(\\d+)\\.(\\d+)\\.(\\d+)/sprintf("%d%03d%03d",$1,$2,$3)/e')
 
-%global extraversion	04
+%global extraversion	05
 
 Summary:	Perl interface to PARI
 Name:		perl-Math-Pari
 Version:	2.010806
-Release:	9%{?dist}
+Release:	10%{?dist}
 License:	GPL+ or Artistic
 Group:		Development/Libraries
 Url:		http://search.cpan.org/dist/Math-Pari/
@@ -24,8 +24,7 @@ Source1:	http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%{pari_version}.tar.g
 Patch0:		perl-Math-Pari-2.010802-no-fake-version.patch
 Patch1:		perl-Math-Pari-2.010802-docs-and-testsuite.patch
 Patch2:		perl-Math-Pari-2.01080604-extra-stack-for-test.patch
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 BuildRequires:	perl(ExtUtils::MakeMaker)
 
 # Enforce dependency against same version of pari that we're built for
@@ -45,11 +44,11 @@ as Perl functions, and (almost) seamless merging of PARI and Perl data.
 %setup -q -n Math-Pari-%{version}%{extraversion} -a 1
 
 # Remove spurious executable permission bits
-%{__chmod} -x Changes README Pari.pm PariInit.pm func_codes.h Pari.xs
+chmod -x Changes README Pari.pm PariInit.pm func_codes.h Pari.xs
 
 # Don't use a fake version number when we can use a real one
 %patch0 -p1
-%{__sed} -i -e s/@@@OUR-PARI-VERSION@@@/%{pari_int_version}/ Makefile.PL
+sed -i -e s/@@@OUR-PARI-VERSION@@@/%{pari_int_version}/ Makefile.PL
 
 # We want to build the docs and test suite from the local pari sources
 %patch1 -p1
@@ -60,25 +59,21 @@ cd pari-%{pari_version}
 cd -
 
 %build
-%{__perl} Makefile.PL \
+perl Makefile.PL \
 	INSTALLDIRS=vendor \
 	OPTIMIZE="-I%{_includedir}/pari %{optflags}" \
 	parilib="-lpari"
-%{__make} %{?_smp_mflags}
+make %{?_smp_mflags}
 
 %install
-%{__rm} -rf %{buildroot}
-%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
-/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
-%{__chmod} -R u+w %{buildroot}
+make pure_install DESTDIR=%{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
+%{_fixperms} %{buildroot}
 
 %check
-%{__make} test
-
-%clean
-%{__rm} -rf %{buildroot}
+make test
 
 %files
 %defattr(-,root,root,-)
@@ -94,11 +89,18 @@ cd -
 %exclude %{_mandir}/man3/Math::libPARI.dumb.3pm*
 
 %changelog
+* Sat Apr 30 2011 Paul Howarth <paul at city-fan.org> - 2.010806-10
+- Update to 2.01080605 (see Changes for details)
+- Remove buildroot definition and cleaning, redundant with modern rpmbuild
+- Nobody else likes macros for commands
+- PERL_INSTALL_ROOT => DESTDIR
+- Use %%{_fixperms} macro instead of our own chmod incantation
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.010806-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
 * Mon Dec 20 2010 Marcela Maslanova <mmaslano at redhat.com> - 2.010806-8
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
 * Fri Jul  9 2010 Paul Howarth <paul at city-fan.org> - 2.010806-7
 - Rebuild with pari 2.3.5
diff --git a/sources b/sources
index bac63f6..220a366 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-27f5999671fe2a29cfd2e8c8a1f9308e  Math-Pari-2.01080604.tar.gz
+ccb3da2bdce184a5df3f52cfa8b43a85  Math-Pari-2.01080605.tar.gz
 6077c6db56fdd32e39a06a9bf320e1f7  pari-2.3.5.tar.gz


More information about the scm-commits mailing list