]> git.pld-linux.org Git - packages/perl-ExtUtils-CChecker.git/blame - perl-ExtUtils-CChecker.spec
- updated to 0.11
[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#
4b125f5c 5%define pdir ExtUtils
6%define pnam CChecker
7Summary: ExtUtils::CChecker - configure-time utilities for using C headers, libraries, or OS features
9c7670e9 8Summary(pl.UTF-8): ExtUtils::CChecker - sprawdzanie nagłówków C, bibliotek i cech OS w czasie konfiguracji
4b125f5c 9Name: perl-ExtUtils-CChecker
08bc09a0 10Version: 0.11
4b125f5c 11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
9c7670e9 15Source0: http://www.cpan.org/modules/by-authors/id/P/PE/PEVANS/ExtUtils-CChecker-%{version}.tar.gz
08bc09a0
JB
16# Source0-md5: 6c40b0aa26907aed861288808dee755c
17URL: https://metacpan.org/dist/ExtUtils-CChecker
18BuildRequires: perl-Module-Build >= 0.4004
4b125f5c 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
08bc09a0
JB
22BuildRequires: perl-Test-Fatal
23BuildRequires: perl-Test-Pod >= 1.00
24BuildRequires: perl-Test-Simple >= 0.88
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
9c7670e9
JB
43%description -l pl.UTF-8
44Często moduły Perla obudowują funkcjonalność istniejących nagłówków C,
45bibliotek i innych właściwości systemu operacyjnego. Wtedy w pliku
46Build.PL lub Makefile.PL przydaje się sprawdzić istnienie wymaganych
47elementów przed próbą właściwego zbudowania modułu.
48
49Obiekty w tej klasie udostępniają rozszerzenie modułu
50ExtUtils::CBuilder upraszczające tworzenie pliku .c, kompilację,
51linkowanie i uruchamianie w celu sprawdzenia istnienia pewnej cechy.
52
53Moduł może być przydatny także w celu znalezienia właściwej biblioteki
54lub katalogu z plikami nagłówkowymi do użycia.
4b125f5c 55
56%prep
57%setup -q -n %{pdir}-%{pnam}-%{version}
58
59%build
60%{__perl} Build.PL \
61 destdir=$RPM_BUILD_ROOT \
62 installdirs=vendor
63./Build
64
65%{?with_tests:./Build test}
66
67%install
68rm -rf $RPM_BUILD_ROOT
69
70./Build install
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
77%doc Changes README
8321bc60 78%{perl_vendorlib}/ExtUtils/CChecker.pm
9c7670e9 79%{_mandir}/man3/ExtUtils::CChecker.3pm*
This page took 0.103943 seconds and 4 git commands to generate.