3 %bcond_without tests # do not perform "make test"
7 Summary: ExtUtils::CBuilder - Compile and link C code for Perl modules
8 Summary(pl.UTF-8): EXtUtils::CBuilder - kompilowanie i linkowanie kodu C dla modułów Perla
9 Name: perl-ExtUtils-CBuilder
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: cf12adecda91703057e5b10e0898aeb6
17 URL: https://metacpan.org/release/ExtUtils-CBuilder
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl-Perl-OSType >= 1
24 BuildRequires: perl-Test-Simple >= 0.47
25 BuildRequires: perl(File::Spec) >= 3.13
27 Requires: perl-Perl-OSType >= 1
28 Requires: perl(File::Spec) >= 3.13
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This module can build the C portions of Perl modules by invoking the
34 appropriate compilers and linkers in a cross-platform manner. It was
35 motivated by the Module::Build project, but may be useful for other
36 purposes as well. However, it is not intended as a general
37 cross-platform interface to all your C building needs. That would have
38 been a much more ambitious goal!
40 %description -l pl.UTF-8
41 Ten moduł potrafi budować części modułów perlowych napisane w C
42 wywołując odpowiednie kompilatory i linkery w sposób wieloplatformowy.
43 Powstał z myślą o projekcie Module::Build, ale może być przydatny
44 także do innych celów. Nie jest jednak przeznaczony do używania jako
45 ogólny wieloplatformowy interfejs do wszelkich potrzeb budowania
46 programów w C. To byłby zbyt ambitny cel.
49 %setup -q -n %{pdir}-%{pnam}-%{version}
52 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
61 %{__make} pure_install \
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %{perl_vendorlib}/ExtUtils/CBuilder.pm
71 %{perl_vendorlib}/ExtUtils/CBuilder
72 %{_mandir}/man3/ExtUtils::CBuilder*.3pm*