Christopher Hofmann
bd20c5389f
Copy from home:cwh/perl-ExtUtils-CChecker via accept of submit request 39866 revision 5. Request was accepted with message: tested & working OBS-URL: https://build.opensuse.org/request/show/39866 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CChecker?expand=0&rev=1
60 lines
2.2 KiB
RPMSpec
60 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package perl-ExtUtils-CChecker (Version 20090616)
|
|
#
|
|
# Copyright 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
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/
|
|
Summary: Configure-time utilities for using C headers, libraries, or OS features
|
|
Source: %cpan_name-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n %cpan_name-%{version}
|
|
|
|
%build
|
|
perl Build.PL
|
|
./Build
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir $RPM_BUILD_ROOT --installdirs vendor
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
# clean up the hard disc after build
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root)
|
|
%doc Changes MANIFEST README LICENSE
|
|
|
|
%changelog
|