3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: ExtUtils::CChecker - configure-time utilities for using C headers, libraries, or OS features
10 Name: perl-ExtUtils-CChecker
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/ExtUtils-CChecker-%{version}.tar.gz
17 # Source0-md5: f2a9da32e70ec32c5b47652e020021d0
18 URL: http://search.cpan.org/dist/ExtUtils-CChecker/
19 BuildRequires: perl-Module-Build
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-Test-Exception
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Often Perl modules are written to wrap functionallity found in
30 existing C headers, libraries, or to use OS-specific features. It is
31 useful in the Build.PL or Makefile.PL file to check for the existance
32 of these requirements before attempting to actually build the module.
34 Objects in this class provide an extension around ExtUtils::CBuilder
35 to simplify the creation of a .c file, compiling, linking and running
36 it, to test if a certain feature is present.
38 It may also be necessary to search for the correct library to link
39 against, or for the right include directories to find header files in.
40 This class also provides assistance here.
42 # %description -l pl.UTF-8
46 %setup -q -n %{pdir}-%{pnam}-%{version}
50 destdir=$RPM_BUILD_ROOT \
54 %{?with_tests:./Build test}
57 rm -rf $RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorlib}/ExtUtils/*.pm