]> git.pld-linux.org Git - packages/perl-ExtUtils-ParseXS.git/blame - perl-ExtUtils-ParseXS.spec
- up to 3.30
[packages/perl-ExtUtils-ParseXS.git] / perl-ExtUtils-ParseXS.spec
CommitLineData
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
8Summary: ExtUtils::ParseXS - converts Perl XS code into C code
b7db902e 9Summary(pl.UTF-8): ExtUtils::ParseXS - przekształcanie kodu Perl XS do C
e3c5134d 10Name: perl-ExtUtils-ParseXS
f3dbe3da 11Version: 3.30
e3c5134d 12Release: 1
508ab71a 13Epoch: 1
e3c5134d
JB
14# same as perl
15License: GPL v1+ or Artistic
16Group: Development/Languages/Perl
5fec1ffe 17Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
f3dbe3da 18# Source0-md5: db1d2dffcf538c9b49701d8aa2aea7fa
e3c5134d 19URL: http://search.cpan.org/dist/ExtUtils-ParseXS/
0a60db15 20BuildRequires: perl-ExtUtils-MakeMaker >= 6.46
e3c5134d
JB
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
23%if %{with tests}
24BuildRequires: perl-ExtUtils-CBuilder
1202fe65 25BuildRequires: perl-Test-Simple >= 0.47
e3c5134d
JB
26%endif
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31ExtUtils::ParseXS will compile XS code into C code by embedding the
32constructs necessary to let C functions manipulate Perl values and
33creates the glue necessary to let Perl access those functions. The
34compiler uses typemaps to determine how to map C function parameters
35and variables to Perl values.
36
688bcd35
JR
37%description -l pl.UTF-8
38ExtUtils::ParseXS kompiluje kod XS do kodu C osadzając konstrukcje
39umożliwiające funkcjom w C operowanie na wartościach perlowych, a
40także tworzy kod sklejający umożliwiający Perlowi dostęp do tych
41funkcji. Kompilator wykorzystuje plik typemaps do określenia sposobu
42odwzorowywania 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
55rm -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
66rm -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*
This page took 0.092461 seconds and 4 git commands to generate.