Accepting request 97104 from devel:languages:perl

- update to 0.07:
   * Use Test::Fatal instead of Test::Exception
   * Advise against calling it "config.h" as that gets confused with
     core perl's file

OBS-URL: https://build.opensuse.org/request/show/97104
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-ExtUtils-CChecker?expand=0&rev=4
This commit is contained in:
Stephan Kulow 2011-12-21 16:00:35 +00:00 committed by Git OBS Bridge
commit 4625e65c83
4 changed files with 36 additions and 23 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14054899e652c22fe991211fa7b2e31da243f44a64b576b1af9824fe8e8eaa0e
size 14248

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:413a18463bb433f720ad301074027734cfd8ef6c20378c0260e0c356cddcae4e
size 20250

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Dec 19 14:49:51 UTC 2011 - coolo@suse.de
- update to 0.07:
* Use Test::Fatal instead of Test::Exception
* Advise against calling it "config.h" as that gets confused with
core perl's file
-------------------------------------------------------------------
Sun Feb 6 18:28:23 UTC 2011 - lars@linux-schulserver.de

View File

@ -15,53 +15,58 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-ExtUtils-CChecker
Version: 0.07
Release: 0
%define cpan_name ExtUtils-CChecker
Summary: Configure-time utilities for using C headers, libraries, or OS features
Version: 0.06
Release: 1
License: GPL+ or Artistic
Summary: Configure-time utilities for using C headers
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/ExtUtils-CChecker/
#Source: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-CChecker-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Source: http://www.cpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Pod)
BuildRequires: perl-macros
BuildRequires: perl(Test::Exception)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Fatal)
#BuildRequires: perl(ExtUtils::CChecker)
#BuildRequires: perl(Module::Build::Compat) >= 0.02
Requires: perl(ExtUtils::CBuilder)
%{perl_requires}
%description
Often Perl modules are written to wrap functionallity found in existing C
headers, libraries, or to use OS-specific features. It is useful in the
Build.PL or Makefile.PL file to check for the existance of these
_Build.PL_ or _Makefile.PL_ file to check for the existance of these
requirements before attempting to actually build the module.
Objects in this class provide an extension around the ExtUtils::CBuilder
manpage to simplify the creation of a _.c_ file, compiling, linking and
running it, to test if a certain feature is present.
It may also be necessary to search for the correct library to link against,
or for the right include directories to find header files in. This class
also provides assistance here.
%prep
%setup -q -n ExtUtils-CChecker-%{version}
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
./Build build flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%defattr(-,root,root,755)
%doc Changes LICENSE README
%changelog