[packages/perl-Math-GSL] - updated to 0.39 - added inc patch (handle . not being in INC) - added update patch (remove functio

qboosh qboosh at pld-linux.org
Mon Jul 3 16:03:47 CEST 2017


commit bb83c0cf2a5b4199db4aeea727badf524bd23e66
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 3 16:05:19 2017 +0200

    - updated to 0.39
    - added inc patch (handle . not being in INC)
    - added update patch (remove functions dropped from gsl 2.4)

 perl-Math-GSL-inc.patch    | 11 ++++++++++
 perl-Math-GSL-update.patch | 41 +++++++++++++++++++++++++++++++++++++
 perl-Math-GSL.spec         | 50 ++++++++++++++++++++++++++++++++--------------
 3 files changed, 87 insertions(+), 15 deletions(-)
---
diff --git a/perl-Math-GSL.spec b/perl-Math-GSL.spec
index 31cec5e..ed85392 100644
--- a/perl-Math-GSL.spec
+++ b/perl-Math-GSL.spec
@@ -8,17 +8,30 @@
 Summary:	Math::GSL Perl module - resticted interface to GNU Scientific Library
 Summary(pl.UTF-8):	Moduł Perla Math::GSL - ograniczony interfejs do GNU Scientific Library
 Name:		perl-Math-GSL
-Version:	0.01
-Release:	13
+Version:	0.39
+Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	abc4474bbbf5439b46a551284013cb35
+# Source0-md5:	6bbcb412e230d3e1602164e15767d102
+Patch0:		%{name}-inc.patch
+Patch1:		%{name}-update.patch
 URL:		http://search.cpan.org/dist/Math-GSL/
-BuildRequires:	gsl-devel
+BuildRequires:	gsl-devel >= 1.15
+BuildRequires:	perl-Module-Build >= 0.38
+BuildRequires:	perl-PkgConfig >= 0.07720
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
+BuildRequires:	swig-perl
+%if %{with tests}
+BuildRequires:	perl-Test-Class >= 0.12
+BuildRequires:	perl-Test-Exception >= 0.21
+BuildRequires:	perl-Test-Most >= 0.31
+BuildRequires:	perl-Test-Taint >= 1.06
+BuildRequires:	perl-version >= 0.77
+%endif
+Requires:	gsl >= 1.15
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,28 +48,35 @@ udostępnić te funkcje "tkscope" w module Audio::Data.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
+%patch1 -p1
+
+# simulate non-release to force swig rebuild
+mkdir .git
 
 %build
-%{__perl} Makefile.PL \
-	INSTALLDIRS=vendor
-%{__make} \
-	CC="%{__cc}" \
-	OPTIMIZE="%{rpmcflags}"
+%{__perl} Build.PL \
+	config="optimize='%{rpmcflags}'" \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
 
-%{?with_tests:%{__make} test}
+%{?with_tests:./Build test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+./Build install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
-%{perl_vendorarch}/Math/*
+%doc CREDITS Changes KNOWN_BUGS README.md TODO
+%{perl_vendorarch}/Math/GSL.pm
+%{perl_vendorarch}/Math/GSL
 %dir %{perl_vendorarch}/auto/Math/GSL
-%attr(755,root,root) %{perl_vendorarch}/auto/Math/GSL/*.so
+%dir %{perl_vendorarch}/auto/Math/GSL/*
+%attr(755,root,root) %{perl_vendorarch}/auto/Math/GSL/*/*.so
+%{_mandir}/man3/Math::GSL*.3pm*
diff --git a/perl-Math-GSL-inc.patch b/perl-Math-GSL-inc.patch
new file mode 100644
index 0000000..647bf5d
--- /dev/null
+++ b/perl-Math-GSL-inc.patch
@@ -0,0 +1,11 @@
+--- Math-GSL-0.39/Build.PL.orig	2016-10-01 08:24:23.000000000 +0200
++++ Math-GSL-0.39/Build.PL	2017-07-02 17:50:23.584626022 +0200
+@@ -85,7 +85,7 @@
+ 
+ $ldflags = '-shared ' . $ldflags unless GSLBuilder::is_darwin();
+ 
+-my $ver2func = do(catfile(qw/inc ver2func/));
++my $ver2func = do("./inc/ver2func");
+ 
+ unless (GSLBuilder::is_release()) {
+     my $swig_ver = swig_version();
diff --git a/perl-Math-GSL-update.patch b/perl-Math-GSL-update.patch
new file mode 100644
index 0000000..b0d3358
--- /dev/null
+++ b/perl-Math-GSL-update.patch
@@ -0,0 +1,41 @@
+--- Math-GSL-0.39/pod/Linalg.pod.orig	2016-10-01 08:24:23.000000000 +0200
++++ Math-GSL-0.39/pod/Linalg.pod	2017-07-02 21:48:43.871129403 +0200
+@@ -16,7 +16,6 @@
+                 gsl_linalg_hessenberg_unpack_accum
+                 gsl_linalg_hessenberg_set_zero
+                 gsl_linalg_hessenberg_submatrix
+-                gsl_linalg_hessenberg
+                 gsl_linalg_hesstri_decomp
+                 gsl_linalg_SV_decomp
+                 gsl_linalg_SV_decomp_mod
+@@ -171,8 +170,6 @@
+ 
+ =item gsl_linalg_hessenberg_submatrix
+ 
+-=item gsl_linalg_hessenberg
+-
+ =item gsl_linalg_hesstri_decomp($A, $B, $U, $V, $work) - This function computes the Hessenberg-Triangular decomposition of the matrix pair ($A, $B). On output, H is stored in $A, and R is stored in $B. If $U and $V are provided (they may be null), the similarity transformations are stored in them. Additional workspace of length N is needed in the vector $work.
+ 
+ =item gsl_linalg_SV_decomp($A, $V, $S, $work) - This function factorizes the M-by-N matrix $A into the singular value decomposition A = U S V^T for M >= N. On output the matrix $A is replaced by U. The diagonal elements of the singular value matrix S are stored in the vector $S. The singular values are non-negative and form a non-increasing sequence from S_1 to S_N. The matrix $V contains the elements of V in untransposed form. To form the product U S V^T it is necessary to take the transpose of V. A workspace of length N is required in vector $work. This routine uses the Golub-Reinsch SVD algorithm.
+--- Math-GSL-0.39/pod/SF.pod.orig	2016-10-01 08:24:23.000000000 +0200
++++ Math-GSL-0.39/pod/SF.pod	2017-07-02 21:57:49.121123178 +0200
+@@ -156,8 +156,6 @@
+                gsl_sf_coupling_RacahW
+                gsl_sf_coupling_9j_e
+                gsl_sf_coupling_9j
+-               gsl_sf_coupling_6j_INCORRECT_e
+-               gsl_sf_coupling_6j_INCORRECT
+                /;
+ @EXPORT_dawson = qw/
+                gsl_sf_dawson_e
+--- Math-GSL-0.39/Build.PL.orig	2017-07-02 21:58:07.807789632 +0200
++++ Math-GSL-0.39/Build.PL	2017-07-02 22:12:26.074446499 +0200
+@@ -56,7 +56,7 @@
+ $ccflags .= try_cflags("-Wno-gnu");
+ $ccflags .= try_cflags("-g");
+ 
+-$swig_flags = "$gsl_conf->{gsl_cflags} $swig_flags";
++$swig_flags = "$gsl_conf->{gsl_cflags} $swig_flags -DGSL_DISABLE_DEPRECATED";
+ 
+ if ( GSLBuilder::is_cygwin()  && $Config{shrpenv} =~ m{\Aenv LD_RUN_PATH=(.*)\Z} ) {
+     $ldflags .= " -L$1 -lperl";
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Math-GSL.git/commitdiff/bb83c0cf2a5b4199db4aeea727badf524bd23e66



More information about the pld-cvs-commit mailing list