perl-FFI-CheckLib/perl-FFI-CheckLib.spec
Dirk Stoecker d290440d2e Accepting request 1006056 from devel:languages:perl:autoupdate
- updated to 0.30
   see /usr/share/doc/packages/perl-FFI-CheckLib/Changes
  0.30      2022-09-22 04:24:26 -0600
    - [ BREAKING CHANGE ]
      If the alien option is provided, the libraries provided by aliens will be
      preferred over the system libraries (gh#47, gh#48)

OBS-URL: https://build.opensuse.org/request/show/1006056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-FFI-CheckLib?expand=0&rev=22
2022-09-27 15:33:21 +00:00

68 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-FFI-CheckLib
#
# Copyright (c) 2022 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 FFI-CheckLib
Name: perl-FFI-CheckLib
Version: 0.30
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Check that a library is available for FFI
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::Util) >= 1.33
BuildRequires: perl(Test2::API) >= 1.302015
BuildRequires: perl(Test2::Require::EnvVar) >= 0.000121
BuildRequires: perl(Test2::Require::Module) >= 0.000121
BuildRequires: perl(Test2::V0) >= 0.000121
Requires: perl(List::Util) >= 1.33
%{perl_requires}
%description
This module checks whether a particular dynamic library is available for
FFI to use. It is modeled heavily on Devel::CheckLib, but will find dynamic
libraries even when development packages are not installed. It also
provides a find_lib function that will return the full path to the found
dynamic library, which can be feed directly into FFI::Platypus or another
FFI system.
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%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 author.yml Changes example README
%license LICENSE
%changelog