2016-01-14 06:49:26 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-Math-GSL
|
|
|
|
|
#
|
2018-09-26 07:33:22 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-01-14 06:49:26 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-09-26 07:33:22 +00:00
|
|
|
%define cpan_name Math-GSL
|
2016-01-14 06:49:26 +00:00
|
|
|
Name: perl-Math-GSL
|
2018-09-26 07:33:22 +00:00
|
|
|
Version: 0.39
|
2016-01-14 06:49:26 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Perl interface to the GNU Scientific Library (GSL)
|
2018-09-26 07:33:22 +00:00
|
|
|
License: GPL-1.0-or-later
|
2016-01-14 06:49:26 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2018-09-26 07:33:22 +00:00
|
|
|
Url: https://metacpan.org/release/Math-GSL
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LE/LETO/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
Patch0: 0001-Hardening-Build-Patch.patch
|
|
|
|
|
Patch1: 0002-Fixed-spelling-errors-in-man.patch
|
|
|
|
|
Patch2: 0003-Fix-ccflags-handling.patch
|
|
|
|
|
Patch3: 0001-Fix-a-swig-syntax-error-in-Integration.i.patch
|
|
|
|
|
Patch4: 0002-Disable-deprecated-function-usage-in-SF.i.patch
|
|
|
|
|
Patch5: dot-in-inc.patch
|
|
|
|
|
Patch6: force-swig-rebuild.patch
|
|
|
|
|
# PATCH-FIX-OPENSUSE fix env-script-interpreter errors
|
|
|
|
|
Patch7: perl-Math-GSL-remove-env.patch
|
|
|
|
|
BuildRequires: fdupes
|
2016-01-14 06:49:26 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
2018-09-26 07:33:22 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: swig
|
2016-01-14 06:49:26 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.380000
|
2018-09-26 07:33:22 +00:00
|
|
|
BuildRequires: perl(Module::Load::Conditional)
|
2016-01-14 06:49:26 +00:00
|
|
|
BuildRequires: perl(PkgConfig) >= 0.07720
|
|
|
|
|
BuildRequires: perl(Test::Class) >= 0.12
|
|
|
|
|
BuildRequires: perl(Test::Exception) >= 0.210000
|
|
|
|
|
BuildRequires: perl(Test::Most) >= 0.31
|
2018-09-26 07:33:22 +00:00
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
2016-01-14 06:49:26 +00:00
|
|
|
BuildRequires: perl(Test::Taint) >= 1.06
|
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
|
BuildRequires: perl(version) >= 0.77
|
2016-01-14 06:59:59 +00:00
|
|
|
BuildRequires: pkgconfig(gsl)
|
2018-09-26 07:33:22 +00:00
|
|
|
Requires: perl(Scalar::Util)
|
2016-01-14 06:49:26 +00:00
|
|
|
Requires: perl(parent)
|
|
|
|
|
Requires: perl(version) >= 0.77
|
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
|
|
%description
|
2018-09-26 07:33:22 +00:00
|
|
|
Math::GSL is an interface to the [GNU Scientific Library](http://www.gnu.org/software/gsl/),
|
|
|
|
|
using [SWIG](http://swig.org). The GNU Scientific Library (GSL) is a numerical library for C
|
|
|
|
|
and C++ programmers. It is free software under the GNU General Public License. Math::GSL
|
|
|
|
|
uses SWIG to generate Perl bindings to *most* GSL functionality.
|
2016-01-14 06:49:26 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2018-09-26 07:33:22 +00:00
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
%patch6 -p1
|
|
|
|
|
%patch7 -p1
|
2016-01-14 06:49:26 +00:00
|
|
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
|
|
|
|
|
|
|
|
|
%build
|
2018-09-26 07:33:22 +00:00
|
|
|
perl Build.PL installdirs=vendor optimize="%{optflags}"
|
2016-01-14 06:49:26 +00:00
|
|
|
./Build build flags=%{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
|
|
%install
|
2018-09-26 07:33:22 +00:00
|
|
|
rm -rf pm/Math/GSL/*.pm.[1-2]*
|
2016-01-14 06:49:26 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%defattr(-,root,root,755)
|
2018-09-26 07:33:22 +00:00
|
|
|
%doc Changes CREDITS examples KNOWN_BUGS pm pod README.md swig TODO
|
2016-01-14 06:49:26 +00:00
|
|
|
|
|
|
|
|
%changelog
|