2014-03-21 15:02:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-Devel-CheckLib
|
|
|
|
#
|
2019-11-14 18:01:48 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-03-21 15:02:37 +01: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.
|
|
|
|
|
2019-11-14 18:01:48 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-03-21 15:02:37 +01:00
|
|
|
#
|
|
|
|
|
2010-08-23 02:36:00 +02:00
|
|
|
|
|
|
|
Name: perl-Devel-CheckLib
|
2019-11-14 18:01:48 +01:00
|
|
|
Version: 1.14
|
2010-08-23 02:36:00 +02:00
|
|
|
Release: 0
|
2014-03-22 08:59:39 +01:00
|
|
|
%define cpan_name Devel-CheckLib
|
2019-11-14 18:01:48 +01:00
|
|
|
Summary: Check that a library is available
|
2018-06-01 08:22:07 +02:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-08-23 02:36:00 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2019-11-14 18:01:48 +01:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
2017-03-23 07:49:52 +01:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MA/MATTN/%{cpan_name}-%{version}.tar.gz
|
2015-09-20 15:47:40 +02:00
|
|
|
Source1: cpanspec.yml
|
2014-03-21 15:02:37 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2010-12-03 15:02:33 +01:00
|
|
|
BuildRequires: perl-macros
|
2019-11-14 18:01:48 +01:00
|
|
|
BuildRequires: perl(Capture::Tiny)
|
2017-10-16 12:38:19 +02:00
|
|
|
BuildRequires: perl(Mock::Config) >= 0.02
|
2019-11-14 18:01:48 +01:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2014-03-22 08:59:39 +01:00
|
|
|
%{perl_requires}
|
2010-08-23 02:36:00 +02:00
|
|
|
|
|
|
|
%description
|
2014-03-22 08:59:39 +01:00
|
|
|
Devel::CheckLib is a perl module that checks whether a particular C library
|
|
|
|
and its headers are available.
|
2010-08-23 02:36:00 +02:00
|
|
|
|
|
|
|
%prep
|
2014-03-22 08:59:39 +01:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2019-11-14 18:01:48 +01:00
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-08-23 02:36:00 +02:00
|
|
|
|
|
|
|
%build
|
2019-11-14 18:01:48 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
make %{?_smp_mflags}
|
2014-03-22 08:59:39 +01:00
|
|
|
|
|
|
|
%check
|
2019-11-14 18:01:48 +01:00
|
|
|
make test
|
2010-08-23 02:36:00 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2014-03-22 08:59:39 +01:00
|
|
|
%perl_gen_filelist
|
2010-08-23 02:36:00 +02:00
|
|
|
|
2014-03-22 08:59:39 +01:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc CHANGES README TODO VMS-notes
|
2010-08-23 02:36:00 +02:00
|
|
|
|
2014-03-21 15:02:37 +01:00
|
|
|
%changelog
|