1
0
forked from perl/perl-Math-GSL
Files
perl-Math-GSL/perl-Math-GSL.spec

93 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Math-GSL
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define cpan_name Math-GSL
Name: perl-Math-GSL
Version: 0.39
Release: 0
Summary: Perl interface to the GNU Scientific Library (GSL)
License: GPL-1.0-or-later
Group: Development/Libraries/Perl
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
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: pkgconfig
BuildRequires: swig
BuildRequires: perl(Module::Build) >= 0.380000
BuildRequires: perl(Module::Load::Conditional)
BuildRequires: perl(PkgConfig) >= 0.07720
BuildRequires: perl(Test::Class) >= 0.12
BuildRequires: perl(Test::Exception) >= 0.210000
BuildRequires: perl(Test::Most) >= 0.31
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Taint) >= 1.06
BuildRequires: perl(parent)
BuildRequires: perl(version) >= 0.77
BuildRequires: pkgconfig(gsl)
Requires: perl(Scalar::Util)
Requires: perl(parent)
Requires: perl(version) >= 0.77
%{perl_requires}
%description
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.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%build
perl Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
rm -rf pm/Math/GSL/*.pm.[1-2]*
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CREDITS examples KNOWN_BUGS pm pod README.md swig TODO
%changelog