]>
Commit | Line | Data |
---|---|---|
6ca55965 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
6ca55965 JB |
5 | %define pdir ExtUtils |
6 | %define pnam CBuilder | |
7 | Summary: ExtUtils::CBuilder - Compile and link C code for Perl modules | |
66737353 | 8 | Summary(pl.UTF-8): EXtUtils::CBuilder - kompilowanie i linkowanie kodu C dla modułów Perla |
6ca55965 | 9 | Name: perl-ExtUtils-CBuilder |
7dc9915b | 10 | Version: 0.280230 |
6ca55965 JB |
11 | Release: 1 |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
b86b21c4 | 15 | Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz |
7dc9915b | 16 | # Source0-md5: cf12adecda91703057e5b10e0898aeb6 |
4022d9cd | 17 | URL: https://metacpan.org/release/ExtUtils-CBuilder |
b86b21c4 | 18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 |
6ca55965 JB |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
4022d9cd | 21 | BuildRequires: rpmbuild(macros) >= 1.745 |
b86b21c4 | 22 | %if %{with tests} |
6eb280c3 | 23 | BuildRequires: perl-Perl-OSType >= 1 |
b86b21c4 JB |
24 | BuildRequires: perl-Test-Simple >= 0.47 |
25 | BuildRequires: perl(File::Spec) >= 3.13 | |
26 | %endif | |
6eb280c3 | 27 | Requires: perl-Perl-OSType >= 1 |
b86b21c4 | 28 | Requires: perl(File::Spec) >= 3.13 |
6ca55965 JB |
29 | BuildArch: noarch |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
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 | |
8828994f | 37 | cross-platform interface to all your C building needs. That would have |
38 | been a much more ambitious goal! | |
6ca55965 | 39 | |
b0bf479a | 40 | %description -l pl.UTF-8 |
8828994f | 41 | Ten moduł potrafi budować części modułów perlowych napisane w C |
b0bf479a JR |
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. | |
6ca55965 JB |
47 | |
48 | %prep | |
49 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
50 | ||
51 | %build | |
8828994f | 52 | %{__perl} Makefile.PL \ |
53 | INSTALLDIRS=vendor | |
54 | %{__make} | |
6ca55965 | 55 | |
8828994f | 56 | %{?with_tests:%{__make} test} |
6ca55965 JB |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
8828994f | 61 | %{__make} pure_install \ |
62 | DESTDIR=$RPM_BUILD_ROOT | |
6ca55965 JB |
63 | |
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
7dc9915b | 69 | %doc Changes README |
6ca55965 JB |
70 | %{perl_vendorlib}/ExtUtils/CBuilder.pm |
71 | %{perl_vendorlib}/ExtUtils/CBuilder | |
8828994f | 72 | %{_mandir}/man3/ExtUtils::CBuilder*.3pm* |