2010-08-23 02:36:00 +02:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: perl-Devel-CheckLib
|
|
|
|
Version: 0.6
|
|
|
|
Release: 0
|
|
|
|
Summary: Check that a library is available
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/Devel-CheckLib-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/Devel-CheckLib/
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2010-12-01 07:56:38 +01:00
|
|
|
%{perl_requires}
|
2010-08-23 02:36:00 +02:00
|
|
|
BuildRequires: make perl
|
2010-12-03 15:02:33 +01:00
|
|
|
BuildRequires: perl-macros
|
2010-08-23 02:36:00 +02:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(File::Temp)
|
|
|
|
BuildRequires: perl(IO::CaptureOutput)
|
|
|
|
Requires: perl(Test::More)
|
|
|
|
Requires: perl(File::Temp)
|
|
|
|
Requires: perl(IO::CaptureOutput)
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|