]> git.pld-linux.org Git - packages/perl-ExtUtils-CChecker.git/blame - perl-ExtUtils-CChecker.spec
- updated to: 0.06
[packages/perl-ExtUtils-CChecker.git] / perl-ExtUtils-CChecker.spec
CommitLineData
4b125f5c 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir ExtUtils
7%define pnam CChecker
8Summary: ExtUtils::CChecker - configure-time utilities for using C headers, libraries, or OS features
9#Summary(pl.UTF-8):
10Name: perl-ExtUtils-CChecker
c63155f6 11Version: 0.06
4b125f5c 12Release: 1
13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/ExtUtils-CChecker-%{version}.tar.gz
c63155f6 17# Source0-md5: 18d0a1a50afd5a8185c03cbed9098e4e
4b125f5c 18URL: http://search.cpan.org/dist/ExtUtils-CChecker/
19BuildRequires: perl-Module-Build
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
22%if %{with tests}
23BuildRequires: perl-Test-Exception
8321bc60 24BuildRequires: perl-Test-Pod
4b125f5c 25%endif
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Often Perl modules are written to wrap functionallity found in
31existing C headers, libraries, or to use OS-specific features. It is
32useful in the Build.PL or Makefile.PL file to check for the existance
33of these requirements before attempting to actually build the module.
34
35Objects in this class provide an extension around ExtUtils::CBuilder
36to simplify the creation of a .c file, compiling, linking and running
37it, to test if a certain feature is present.
38
39It may also be necessary to search for the correct library to link
40against, or for the right include directories to find header files in.
41This class also provides assistance here.
42
43# %description -l pl.UTF-8
44# TODO
45
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48
49%build
50%{__perl} Build.PL \
51 destdir=$RPM_BUILD_ROOT \
52 installdirs=vendor
53./Build
54
55%{?with_tests:./Build test}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60./Build install
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc Changes README
8321bc60 68%{perl_vendorlib}/ExtUtils/CChecker.pm
69%{_mandir}/man3/*.3pm*
This page took 0.068588 seconds and 4 git commands to generate.