[perl-Math-Pari] Update to 2.01080606
Paul Howarth
pghmcfc at fedoraproject.org
Thu Apr 24 15:26:26 UTC 2014
commit c2eb2b0df2f2a3701587d38400f55e3fafe03731
Author: Paul Howarth <paul at city-fan.org>
Date: Thu Apr 24 16:24:29 2014 +0100
Update to 2.01080606
- New upstream release 2.01080606
- Fixes for downloading pari and Windows builds
- Fix dubious permissions from upstream's tarball
.gitignore | 2 +-
perl-Math-Pari.spec | 21 ++++++++++++++-------
sources | 2 +-
3 files changed, 16 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d8b8c6b..e25e863 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-/Math-Pari-2.01080605.tar.gz
+/Math-Pari-[0-9.]*.tar.gz
/pari-2.3.5.tar.gz
diff --git a/perl-Math-Pari.spec b/perl-Math-Pari.spec
index e7668b2..1aa0f7b 100644
--- a/perl-Math-Pari.spec
+++ b/perl-Math-Pari.spec
@@ -1,9 +1,9 @@
-%global extraversion 05
+%global extraversion 06
Summary: Perl interface to PARI
Name: perl-Math-Pari
Version: 2.010806
-Release: 20%{?dist}
+Release: 21%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Url: http://search.cpan.org/dist/Math-Pari/
@@ -12,6 +12,7 @@ Patch0: Math-Pari-2.010802-no-fake-version.patch
Patch1: Math-Pari-2.010802-docs-and-testsuite.patch
Patch2: Math-Pari-2.01080605-include-path.patch
BuildRequires: libpari23-devel
+BuildRequires: perl
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
@@ -31,14 +32,16 @@ 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}%{extraversion}
-
-# Remove spurious executable permission bits
-chmod -c -x Changes README Pari.pm PariInit.pm func_codes.h Pari.xs
+# Fix missing read permissions in upstream's tarball
+%setup -q -c -T -n Math-Pari-%{version}%{extraversion}
+cd ..
+tar xfz %{SOURCE0}
+%{_fixperms} Math-Pari-%{version}%{extraversion}
+cd Math-Pari-%{version}%{extraversion}
# Don't use a fake version number when we can use a real one
%patch0 -p1
-pari_int_version=$(pkg-config --modversion libpari23 | perl -pi -e 's/(\d+)\.(\d+)\.(\d+)/sprintf("%d%03d%03d",$1,$2,$3)/e')
+pari_int_version=$(pkg-config --modversion libpari23 | perl -p -e 's/(\d+)\.(\d+)\.(\d+)/sprintf("%d%03d%03d",$1,$2,$3)/e')
sed -i -e "s/@@@OUR-PARI-VERSION@@@/${pari_int_version}/" Makefile.PL
# We want to build the docs and test suite too
@@ -78,6 +81,10 @@ make test
%exclude %{_mandir}/man3/Math::libPARI.dumb.3pm*
%changelog
+* Thu Apr 24 2014 Paul Howarth <paul at city-fan.org> - 2.010806-21
+- Update to 2.01080606 (fixes for downloading pari and Windows builds)
+- Fix dubious permissions from upstream's tarball
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.010806-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
diff --git a/sources b/sources
index 747b530..a45c21e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ccb3da2bdce184a5df3f52cfa8b43a85 Math-Pari-2.01080605.tar.gz
+84cdf890a82f06a8fa1307ecea5db76c Math-Pari-2.01080606.tar.gz
More information about the perl-devel
mailing list