]>
Commit | Line | Data |
---|---|---|
e3c5134d JB |
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 ParseXS | |
8 | Summary: ExtUtils::ParseXS - converts Perl XS code into C code | |
b7db902e | 9 | Summary(pl.UTF-8): ExtUtils::ParseXS - przekształcanie kodu Perl XS do C |
e3c5134d | 10 | Name: perl-ExtUtils-ParseXS |
f3dbe3da | 11 | Version: 3.30 |
e3c5134d | 12 | Release: 1 |
508ab71a | 13 | Epoch: 1 |
e3c5134d JB |
14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
16 | Group: Development/Languages/Perl | |
5fec1ffe | 17 | Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz |
f3dbe3da | 18 | # Source0-md5: db1d2dffcf538c9b49701d8aa2aea7fa |
e3c5134d | 19 | URL: http://search.cpan.org/dist/ExtUtils-ParseXS/ |
0a60db15 | 20 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.46 |
e3c5134d JB |
21 | BuildRequires: perl-devel >= 1:5.8.0 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
23 | %if %{with tests} | |
24 | BuildRequires: perl-ExtUtils-CBuilder | |
1202fe65 | 25 | BuildRequires: perl-Test-Simple >= 0.47 |
e3c5134d JB |
26 | %endif |
27 | BuildArch: noarch | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | ExtUtils::ParseXS will compile XS code into C code by embedding the | |
32 | constructs necessary to let C functions manipulate Perl values and | |
33 | creates the glue necessary to let Perl access those functions. The | |
34 | compiler uses typemaps to determine how to map C function parameters | |
35 | and variables to Perl values. | |
36 | ||
688bcd35 JR |
37 | %description -l pl.UTF-8 |
38 | ExtUtils::ParseXS kompiluje kod XS do kodu C osadzając konstrukcje | |
39 | umożliwiające funkcjom w C operowanie na wartościach perlowych, a | |
40 | także tworzy kod sklejający umożliwiający Perlowi dostęp do tych | |
41 | funkcji. Kompilator wykorzystuje plik typemaps do określenia sposobu | |
42 | odwzorowywania parametrów funkcji i zmiennych C na wartości perlowe. | |
e3c5134d JB |
43 | |
44 | %prep | |
5fec1ffe | 45 | %setup -q -n %{pdir}-%{pnam}-%{version} |
e3c5134d JB |
46 | |
47 | %build | |
1202fe65 JB |
48 | %{__perl} Makefile.PL \ |
49 | INSTALLDIRS=vendor | |
50 | %{__make} | |
e3c5134d | 51 | |
1202fe65 | 52 | %{?with_tests:%{__make} test} |
e3c5134d JB |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
1202fe65 JB |
57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
e3c5134d | 59 | |
5fec1ffe JB |
60 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/ParseXS.pod |
61 | # in perl-devel-tools | |
62 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/xsubpp \ | |
63 | $RPM_BUILD_ROOT%{_mandir}/man1/xsubpp.1p | |
64 | ||
e3c5134d JB |
65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc Changes | |
71 | %{perl_vendorlib}/ExtUtils/ParseXS.pm | |
5fec1ffe JB |
72 | %{perl_vendorlib}/ExtUtils/ParseXS |
73 | %{perl_vendorlib}/ExtUtils/Typemaps.pm | |
74 | %{perl_vendorlib}/ExtUtils/Typemaps | |
1202fe65 | 75 | %{perl_vendorlib}/ExtUtils/xsubpp |
5fec1ffe JB |
76 | %{_mandir}/man3/ExtUtils::ParseXS*.3pm* |
77 | %{_mandir}/man3/ExtUtils::Typemaps*.3pm* |