Stephan Kulow 2011-12-19 15:35:10 +00:00 committed by Git OBS Bridge
parent 999f0e60e0
commit 956bd8be9b

View File

@ -17,48 +17,56 @@
Name: perl-ExtUtils-CChecker Name: perl-ExtUtils-CChecker
%define cpan_name ExtUtils-CChecker
Summary: Configure-time utilities for using C headers, libraries, or OS features
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Version: 0.07 Version: 0.07
Release: 0 Release: 0
%define cpan_name ExtUtils-CChecker
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/ Url: http://search.cpan.org/dist/ExtUtils-CChecker/
Source: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-CChecker-%{version}.tar.gz Source: http://www.cpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Pod) #BuildRequires: perl(ExtUtils::CChecker)
#BuildRequires: perl(Module::Build::Compat) >= 0.02
Requires: perl(ExtUtils::CBuilder)
%{perl_requires}
%description %description
Often Perl modules are written to wrap functionallity found in existing C 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 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. 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 %prep
%setup -q -n ExtUtils-CChecker-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
%{__perl} Build.PL installdirs=vendor %{__perl} Build.PL installdirs=vendor
./Build ./Build build flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 ./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(-,root,root,755)
%doc Changes LICENSE README %doc Changes LICENSE README
%changelog %changelog