2010-05-12 14:50:47 +00:00
|
|
|
#
|
2011-05-26 13:51:44 +00:00
|
|
|
# spec file for package perl-ExtUtils-CChecker
|
2010-05-12 14:50:47 +00:00
|
|
|
#
|
2014-02-24 06:31:05 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-05-12 14:50:47 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2010-07-13 12:01:52 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2010-05-12 14:50:47 +00:00
|
|
|
|
2011-05-26 13:51:44 +00:00
|
|
|
|
2010-07-13 12:01:52 +00:00
|
|
|
Name: perl-ExtUtils-CChecker
|
2014-02-24 06:31:05 +00:00
|
|
|
Version: 0.09
|
2011-12-19 14:50:20 +00:00
|
|
|
Release: 0
|
2011-12-19 15:35:10 +00:00
|
|
|
%define cpan_name ExtUtils-CChecker
|
2014-02-24 06:31:05 +00:00
|
|
|
Summary: Configure-time utilities for using C headers
|
2011-12-19 15:35:10 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Development/Libraries/Perl
|
2010-07-13 12:01:52 +00:00
|
|
|
Url: http://search.cpan.org/dist/ExtUtils-CChecker/
|
2011-12-19 15:35:10 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
|
2010-07-13 12:01:52 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-12-19 15:35:10 +00:00
|
|
|
BuildRequires: perl(ExtUtils::CBuilder)
|
2011-12-19 14:50:20 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2011-12-19 15:35:10 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
|
|
|
Requires: perl(ExtUtils::CBuilder)
|
|
|
|
%{perl_requires}
|
2010-05-12 14:50:47 +00:00
|
|
|
|
2010-07-13 12:01:52 +00:00
|
|
|
%description
|
2014-02-24 06:31:05 +00:00
|
|
|
Often Perl modules are written to wrap functionality found in existing C
|
2010-07-13 12:01:52 +00:00
|
|
|
headers, libraries, or to use OS-specific features. It is useful in the
|
2011-12-19 15:35:10 +00:00
|
|
|
_Build.PL_ or _Makefile.PL_ file to check for the existance of these
|
2010-07-13 12:01:52 +00:00
|
|
|
requirements before attempting to actually build the module.
|
2010-05-12 14:50:47 +00:00
|
|
|
|
2011-12-19 15:35:10 +00:00
|
|
|
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.
|
|
|
|
|
2010-05-12 14:50:47 +00:00
|
|
|
%prep
|
2011-12-19 15:35:10 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-05-12 14:50:47 +00:00
|
|
|
|
|
|
|
%build
|
2010-07-13 12:01:52 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
2011-12-19 15:35:10 +00:00
|
|
|
./Build build flags=%{?_smp_mflags}
|
2010-05-12 14:50:47 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2011-12-19 15:35:10 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2010-05-12 14:50:47 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-12-19 15:35:10 +00:00
|
|
|
%defattr(-,root,root,755)
|
2010-07-13 12:01:52 +00:00
|
|
|
%doc Changes LICENSE README
|
2010-05-12 14:50:47 +00:00
|
|
|
|
|
|
|
%changelog
|