perl-Devel-CheckLib/perl-Devel-CheckLib.spec

75 lines
2.2 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Devel-CheckLib
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-Devel-CheckLib
Version: 1.01
Release: 0
Summary: Check that a library is available
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MATTN/Devel-CheckLib-%{version}.tar.gz
Url: http://github.com/mattn/p5-Devel-CheckLib
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::CaptureOutput)
BuildRequires: perl(Test::More)
Requires: perl(File::Temp)
Requires: perl(IO::CaptureOutput)
Requires: perl(Test::More)
%description
Devel::CheckLib is a perl module that checks whether a particular C library and
its headers are available.
%prep
%setup -q -n "Devel-CheckLib-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc CHANGES TODO README
%{_bindir}/use-devel-checklib
%doc %{_mandir}/man1/use-devel-checklib.1%{ext_man}
%dir %{perl_vendorlib}/Devel
%{perl_vendorlib}/Devel/CheckLib.pm
%dir %{perl_vendorarch}/auto/Devel
%{perl_vendorarch}/auto/Devel/CheckLib
%doc %{perl_man3dir}/Devel::CheckLib.%{perl_man3ext}%{ext_man}
%changelog