]>
Commit | Line | Data |
---|---|---|
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 | |
8 | Summary: ExtUtils::CChecker - configure-time utilities for using C headers, libraries, or OS features | |
9 | #Summary(pl.UTF-8): | |
10 | Name: perl-ExtUtils-CChecker | |
c63155f6 | 11 | Version: 0.06 |
4b125f5c | 12 | Release: 1 |
13 | # same as perl | |
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 | |
c63155f6 | 17 | # Source0-md5: 18d0a1a50afd5a8185c03cbed9098e4e |
4b125f5c | 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 | |
22 | %if %{with tests} | |
23 | BuildRequires: perl-Test-Exception | |
8321bc60 | 24 | BuildRequires: perl-Test-Pod |
4b125f5c | 25 | %endif |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Often Perl modules are written to wrap functionallity found in | |
31 | existing C headers, libraries, or to use OS-specific features. It is | |
32 | useful in the Build.PL or Makefile.PL file to check for the existance | |
33 | of these requirements before attempting to actually build the module. | |
34 | ||
35 | Objects in this class provide an extension around ExtUtils::CBuilder | |
36 | to simplify the creation of a .c file, compiling, linking and running | |
37 | it, to test if a certain feature is present. | |
38 | ||
39 | It may also be necessary to search for the correct library to link | |
40 | against, or for the right include directories to find header files in. | |
41 | This 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 | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | ./Build install | |
61 | ||
62 | %clean | |
63 | rm -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* |