perl-FFI-CheckLib/perl-FFI-CheckLib.spec
Pedro Monreal Gonzalez fc3d13d535 Accepting request 893994 from devel:languages:perl:autoupdate
- updated to 0.28
   see /usr/share/doc/packages/perl-FFI-CheckLib/Changes
  0.28      2021-05-16 15:10:34 -0600
    - Avoid undef warning from File::Spec->catpath (gh#30, gh#33)
    - The alien option now works in fallback mode; if one or more of the
      Aliens are not installed then they will be ignored, previously this
      module would throw whatever exception was produced by require (gh#23, gh#34)
    - Move to PerlFFI org on GitHub (previously this dist lived in Perl5-FFI)
      (gh#24)

OBS-URL: https://build.opensuse.org/request/show/893994
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-FFI-CheckLib?expand=0&rev=18
2021-05-18 09:23:28 +00:00

68 lines
2.2 KiB
RPMSpec

#
# spec file for package perl-FFI-CheckLib
#
# Copyright (c) 2021 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.28
Release: 0
Summary: Check that a library is available for FFI
License: Artistic-1.0 OR GPL-1.0-or-later
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.000060
BuildRequires: perl(Test2::Require::Module) >= 0.000060
BuildRequires: perl(Test2::V0) >= 0.000060
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