2015-02-17 13:43:08 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-FFI-CheckLib
|
|
|
|
#
|
2021-05-18 09:23:28 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2015-02-17 13:43:08 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-11-08 15:18:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-02-17 13:43:08 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-05-18 09:23:28 +00:00
|
|
|
%define cpan_name FFI-CheckLib
|
2015-02-17 13:43:08 +00:00
|
|
|
Name: perl-FFI-CheckLib
|
2021-05-18 09:23:28 +00:00
|
|
|
Version: 0.28
|
2015-02-17 13:43:08 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Check that a library is available for FFI
|
2018-06-14 06:45:13 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2020-05-12 16:45:39 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-08-14 13:14:53 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
|
2019-11-19 13:33:28 +00:00
|
|
|
Source1: cpanspec.yml
|
2015-02-17 13:43:08 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2021-05-18 09:23:28 +00:00
|
|
|
BuildRequires: perl(List::Util) >= 1.33
|
2017-08-14 13:14:53 +00:00
|
|
|
BuildRequires: perl(Test2::API) >= 1.302015
|
2019-05-05 09:24:02 +00:00
|
|
|
BuildRequires: perl(Test2::Require::EnvVar) >= 0.000060
|
2017-08-14 13:14:53 +00:00
|
|
|
BuildRequires: perl(Test2::Require::Module) >= 0.000060
|
|
|
|
BuildRequires: perl(Test2::V0) >= 0.000060
|
2021-05-18 09:23:28 +00:00
|
|
|
Requires: perl(List::Util) >= 1.33
|
2015-02-17 13:43:08 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module checks whether a particular dynamic library is available for
|
2016-05-25 07:50:50 +00:00
|
|
|
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
|
2018-06-14 06:45:13 +00:00
|
|
|
dynamic library, which can be feed directly into FFI::Platypus or another
|
|
|
|
FFI system.
|
2015-02-17 13:43:08 +00:00
|
|
|
|
|
|
|
%prep
|
2021-05-18 09:23:28 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2020-01-23 12:39:04 +00:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2015-02-17 13:43:08 +00:00
|
|
|
|
|
|
|
%build
|
2018-11-08 15:18:34 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2021-05-18 09:23:28 +00:00
|
|
|
%make_build
|
2015-02-17 13:43:08 +00:00
|
|
|
|
|
|
|
%check
|
2018-12-06 15:52:36 +00:00
|
|
|
make test
|
2015-02-17 13:43:08 +00:00
|
|
|
|
|
|
|
%install
|
2015-09-24 05:12:42 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-02-17 13:43:08 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2020-01-23 12:39:04 +00:00
|
|
|
%doc author.yml Changes example README
|
2017-08-14 13:14:53 +00:00
|
|
|
%license LICENSE
|
2015-02-17 13:43:08 +00:00
|
|
|
|
|
|
|
%changelog
|