Files
perl-Alien-GMP/perl-Alien-GMP.spec
2025-08-12 18:11:37 +02:00

86 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-Alien-GMP
#
# 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 Alien-GMP
Name: perl-Alien-GMP
Version: 1.160.0
Release: 0
# 1.16 -> normalize -> 1.160.0
%define cpan_version 1.16
License: LGPL-2.1-or-later
Summary: Alien package for the GNU Multiple Precision library
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
# MANUAL
#BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Alien::Base) >= 1.46
BuildRequires: perl(Alien::Build) >= 1.46
BuildRequires: perl(Alien::Build::MM) >= 0.32
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
BuildRequires: perl(Test2::V0) >= 0.000060
BuildRequires: perl(Test::Alien)
Requires: perl(Alien::Base) >= 1.46
Provides: perl(Alien::GMP) = %{version}
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(Devel::CheckLib)
BuildRequires: perl(Mojo::DOM58)
BuildRequires: perl(Sort::Versions)
BuildRequires: perl(URI::Escape)
# SuSE doesn't find gmp via pkgconfig, so use named package
%if 0%{?suse_version} > 1540
BuildRequires: pkgconfig(gmp)
%else
BuildRequires: gmp-devel
%endif
# MANUAL END
%description
This distribution installs GMP so that it can be used by other Perl
distributions. If already installed for your operating system, and it can
be found, this distribution will use the GMP that comes with your operating
system, otherwise it will download it from the Internet, build and install
it for you.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc alienfile Changes README
%license LICENSE
%changelog