perl-Devel-CheckLib/perl-Devel-CheckLib.spec
Stephan Kulow a2299621ff - update to 0.92
* Patch included, thanks to CHM and SISYPHUS (see RT #63742)
 * Fix deprecated parenthesis. use "(qw())".
 * Add include header files into dependencies files.
   (see RT #61297)
 * Add support for checking if a function exists
   in a library and it returns the right value

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Devel-CheckLib?expand=0&rev=5
2011-01-22 20:41:10 +00:00

57 lines
1.5 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: perl-Devel-CheckLib
Version: 0.92
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}
%{perl_requires}
BuildRequires: make perl
BuildRequires: perl-macros
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}