From eebaf7ae80d95e7be9215a6bacb35e166fa03ea4 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Feb 11 2009 10:49:21 +0000 Subject: - update to 2.010801, but build with pari-2.1.7 since 2.1.8 doesn't exist (upstream forgot their own numbering convention - CPAN RT#35493) - re-enable tests - drop patch for perl 5.10, no longer needed - remove spurious exec bits on files in upstream distribution --- diff --git a/.cvsignore b/.cvsignore index 2ae9b18..3210e75 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,2 @@ -Math-Pari-2.010709.tar.gz +Math-Pari-2.010801.tar.gz pari-2.1.7.tgz diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec index 936c4f4..ffa643a 100644 --- a/perl-Math-Pari.spec +++ b/perl-Math-Pari.spec @@ -7,20 +7,22 @@ # (c) Functionality is lost if built against an external PARI library # (see the INSTALL file in the distribution) +# The perl module version used to indicate the latest PARI version that +# it was tested against, but due to an oversight 2.010800 was released +# and broke the numbering scheme, so we need to hardcode both version +# numbers from now on (see CPAN RT#35493) +%define module_version 2.010801 +%define pari_version 2.1.7 + Summary: Perl interface to PARI Name: perl-Math-Pari -Version: 2.010709 -# You'll need to replace pariversion with a hardcoded version number if you're -# testing with a development version of PARI, as this expression evaluates -# the latest version of GP/PARI the perl module was tested with. -%define pariversion %(echo %{version} | %{__perl} -pi -e 's/(\\d+)\\.(\\d\\d)(\\d\\d).*/sprintf("%d.%d.%d",$1,$2,$3)/e') -Release: 7%{?dist} +Version: %{module_version} +Release: 1%{?dist} License: GPL+ or Artistic Group: Development/Libraries Url: http://search.cpan.org/dist/Math-Pari/ -Source0: http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/Math-Pari-%{version}.tar.gz -Source1: http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/pari-%{pariversion}.tgz -Patch0: Math-Pari-2.010709-perl510.patch +Source0: http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/Math-Pari-%{module_version}.tar.gz +Source1: http://pari.math.u-bordeaux.fr/pub/pari/unix/OLD/pari-%{pari_version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(ExtUtils::MakeMaker) @@ -31,13 +33,15 @@ scientific/ number-theoretic calculations. It allows use of most PARI functions as Perl functions, and (almost) seamless merging of PARI and Perl data. %prep -%setup -q -n Math-Pari-%{version} -a 1 -%patch0 -p1 +%setup -q -n Math-Pari-%{module_version} -a 1 # Remove redundant provides (there's also a versioned one) %global provfilt /bin/sh -c "%{__perl_provides} | %{__grep} -Fvx 'perl(Math::Pari)'" %define __perl_provides %{provfilt} +# Remove spurious executable permission bits +%{__chmod} -x Changes README Pari.pm PariInit.pm func_codes.h Pari.xs + %build # machine=linux-none needed to avoid breakage of 64-bit builds # other flags cribbed from pari.spec (#169703) @@ -48,9 +52,6 @@ export DLCFLAGS=-fPIC machine=none %{__make} %{?_smp_mflags} -%check -# %{__make} test - %install %{__rm} -rf %{buildroot} %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} @@ -59,6 +60,9 @@ export DLCFLAGS=-fPIC /usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} 2>/dev/null ';' %{__chmod} -R u+w %{buildroot}/* +%check +%{__make} test + %clean %{__rm} -rf %{buildroot} @@ -76,6 +80,13 @@ export DLCFLAGS=-fPIC %exclude %{_mandir}/man3/Math::libPARI.dumb.3pm* %changelog +* Wed Feb 11 2009 Paul Howarth 2.010801-1 +- update to 2.010801, but build with pari-2.1.7 since 2.1.8 doesn't exist + (upstream forgot their own numbering convention - CPAN RT#35493) +- re-enable tests +- drop patch for perl 5.10, no longer needed +- remove spurious exec bits on files in upstream distribution + * Fri Mar 7 2008 Tom "spot" Callaway - 2.010709-7 - disable tests, they're being weird in the buildservers diff --git a/sources b/sources index 2c0713c..aca0e87 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -58fdea358b37d00072723bd9cd69ce9e Math-Pari-2.010709.tar.gz +c0628a5ad79a53a22188aca476ea45ce Math-Pari-2.010801.tar.gz 357b7a42e89e2761a5367bbcbfcca5f2 pari-2.1.7.tgz