Stephan Kulow 2014-03-22 07:59:39 +00:00 committed by Git OBS Bridge
parent c2fc0a2fa9
commit cf24e20f7f
2 changed files with 25 additions and 36 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 22 07:04:56 UTC 2014 - coolo@suse.com
- regenerate with cpan2spec
-------------------------------------------------------------------
Fri Mar 21 06:20:51 UTC 2014 - mlin@suse.com

View File

@ -1,4 +1,3 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Devel-CheckLib
#
@ -20,55 +19,40 @@
Name: perl-Devel-CheckLib
Version: 1.01
Release: 0
Summary: Check that a library is available
License: GPL-1.0+ or Artistic-1.0
%define cpan_name Devel-CheckLib
Summary: check that a library is available
License: Artistic-1.0 or GPL-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
Url: http://search.cpan.org/dist/Devel-CheckLib/
Source: http://www.cpan.org/authors/id/M/MA/MATTN/%{cpan_name}-%{version}.tar.gz
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)
BuildRequires: perl(IO::CaptureOutput) >= 1.0801
%{perl_requires}
%description
Devel::CheckLib is a perl module that checks whether a particular C library and
its headers are available.
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
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%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}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES README TODO VMS-notes
%changelog