File perl-Math-GSL-Alien.spec of Package perl-Math-GSL-Alien
#
# spec file for package perl-Math-GSL-Alien
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Math-GSL-Alien
Name: perl-Math-GSL-Alien
Version: 1.50.0
Release: 0
# 1.05 -> normalize -> 1.50.0
%define cpan_version 1.05
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Easy installation of the GSL shared library
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAKONH/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Alien::Base) >= 2.21
BuildRequires: perl(Alien::Build) >= 2.21
BuildRequires: perl(Alien::Build::MM) >= 2.21
BuildRequires: perl(Alien::Role::Dino)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
BuildRequires: perl(Test2::V0)
BuildRequires: perl(Test::Alien)
BuildRequires: perl(Test::Alien::Diag)
Requires: perl(Alien::Base) >= 2.21
Requires: perl(Alien::Build) >= 0.25
Provides: perl(Math::GSL::Alien) = %{version}
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: gsl-devel
# MANUAL END
%description
Provides the Gnu Scientific Library (GSL) for use by Perl modules,
installing it if necessary. This module relies heavily on the Alien::Base
system to do so. To avoid documentation skew, the author asks the reader to
learn about the capabilities provided by that module rather than repeating
them here.
The difference between this module and Alien::GSL is that this module will
download and install a shared version of the GSL library, whereas
'Alien::GSL' will install a static version of the GSL library. The shared
version is needed by Math::GSL, see at
https://github.com/PerlAlien/Alien-GSL/issues/17. It will also reduce the
size of the generated Perl XS libraries ('.so', '.xs.dll').
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc alienfile Changes
%changelog