Accepting request 42863 from home:computersalat:devel:perl

Copy from home:computersalat:devel:perl/perl-ExtUtils-CChecker via accept of submit request 42863 revision 2.
Request was accepted with message:
self accept

OBS-URL: https://build.opensuse.org/request/show/42863
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CChecker?expand=0&rev=2
This commit is contained in:
Christian Wittmer 2010-07-13 12:01:52 +00:00 committed by Git OBS Bridge
parent bd20c5389f
commit 0c972264f6
4 changed files with 48 additions and 31 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9af28324d31ecde08a9a9f5dd601c9ff472657d7c101086e65af12c1f836bf19
size 12174

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ffdf6b24cb4bc3daaaef8778ac58a0cbe4eb2efe0992cfa8920a8e0c5ce58b4
size 13118

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jul 13 11:43:28 UTC 2010 - chris@computersalat.de
- update to 0.04
* Provide optional variants of ->find_include_dirs_for and
->find_libs_for with try_... prefix
- recreated by cpanspec 1.78
- noarch pkg
-------------------------------------------------------------------
Tue May 11 15:25:03 UTC 2010 - cwh@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-ExtUtils-CChecker (Version 20090616)
# spec file for package perl-ExtUtils-CChecker (Version 0.04)
#
# Copyright 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 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
@ -12,48 +12,56 @@
# 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/
#
# norootforbuild
Name: perl-ExtUtils-CChecker
Version: 0.03
Release: 0
# define the name from CPAN
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Requires: perl = %{perl_version}
BuildRequires: perl-Test-Exception
Group: Development/Libraries/Perl
License: Artistic License, Other License(s), see package
URL: http://search.cpan.org/~shancock/
%define cpan_name ExtUtils-CChecker
Summary: Configure-time utilities for using C headers, libraries, or OS features
Source: %cpan_name-%{version}.tar.bz2
Version: 0.04
Release: 1
License: GPL+ or Artistic
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
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl(Module::Build)
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Test::Exception)
Requires: perl = %{perl_version}
%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 requirements before attempting to actually build the module.
Objects in this class provide an extension around ExtUtils::CBuilder 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.
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
requirements before attempting to actually build the module.
%prep
%setup -q -n %cpan_name-%{version}
%setup -q -n ExtUtils-CChecker-%{version}
%build
perl Build.PL
%{__perl} Build.PL installdirs=vendor
./Build
%check
./Build test
%install
./Build install --destdir $RPM_BUILD_ROOT --installdirs vendor
%perl_process_packlist
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%perl_gen_filelist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes MANIFEST README LICENSE
%defattr(-,root,root,-)
%doc Changes LICENSE README
%changelog