]> git.pld-linux.org Git - packages/perl-ExtUtils-XSBuilder.git/blame - perl-ExtUtils-XSBuilder.spec
- updated URL
[packages/perl-ExtUtils-XSBuilder.git] / perl-ExtUtils-XSBuilder.spec
CommitLineData
16fdc018 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
f2aef37e 4#
96a90fc7 5%define pdir ExtUtils
6%define pnam XSBuilder
a836cd62 7Summary: ExtUtils::XSBuilder - automatic XS glue code generation
3ad77958 8Summary(pl.UTF-8): ExtUtils::XSBuilder - automatyczne generowanie kodu łączącego XS
16fdc018 9Name: perl-ExtUtils-XSBuilder
12f59be8 10Version: 0.28
11Release: 1
16fdc018 12License: GPL or Artistic
13Group: Development/Languages/Perl
26e78e43 14Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
12f59be8 15# Source0-md5: 1d33ddeacc01426a02e23c71c2e4cd04
8a7dbcd0 16URL: https://metacpan.org/dist/ExtUtils-XSBuilder
16fdc018 17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
383add4e 19BuildRequires: rpmbuild(macros) >= 1.745
26e78e43
JB
20%if %{with tests}
21BuildRequires: perl-Tie-IxHash
22%endif
1884f209 23Requires: perl-Tie-IxHash
16fdc018 24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
f2aef37e
JB
28ExtUtils::XSBuilder is a set modules to parse C header files and
29create XS glue code and documentation out of it. Idealy this allows to
30"write" an interface to a C library without coding a line. Since no
31C-API is ideal, some adjuments are necessary most of the time. So to
32use this module you must still be familar with C and XS programming,
33but it removes a lot of stupid work and copy&paste from you. Also when
34the C API changes, most of the time you only have to rerun XSBuilder
35to get your new Perl API.
36
756b8908
JR
37%description -l pl.UTF-8
38ExtUtils::XSBuilder to zbiór modułów do analizy plików nagłówkowych C
39i tworzenia z nich kodu łączącego XS oraz dokumentacji. W idealnej
f2aef37e 40sytuacji pozwala to na "napisanie" interfejsu do biblioteki C bez
756b8908
JR
41kodowania ani jednej linii. Ale jako że żadne API w C nie jest
42idealne, w większości przypadków potrzebne są pewne poprawki - tak
43więc aby używać tego modułu nadal trzeba znać się na programowaniu w C
44oraz XS, ale zapobiega on dużej ilości głupiej pracy i copy-paste.
45Także kiedy API w C się zmienia, większość roboty to ponowne
f2aef37e 46uruchomienie XSBuildera dla uzyskania nowego perlowego API.
16fdc018 47
48%prep
49%setup -q -n %{pdir}-%{pnam}-%{version}
50
51%build
52%{__perl} Makefile.PL \
53 INSTALLDIRS=vendor
54
55%{__make}
56
57%{?with_tests:%{__make} test}
58
59%install
60rm -rf $RPM_BUILD_ROOT
61
62%{__make} install \
63 DESTDIR=$RPM_BUILD_ROOT
64
26e78e43
JB
65%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/*.pod
66
16fdc018 67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(644,root,root,755)
72%doc Changes README
73%{perl_vendorlib}/ExtUtils/XSBuilder.pm
f2aef37e 74%{perl_vendorlib}/ExtUtils/XSBuilder
26e78e43
JB
75%{_mandir}/man3/ExtUtils::XSBuilder*.3pm*
76%{_mandir}/man3/ExtUtils::xsbuilder.osc2002.3pm*
This page took 0.268493 seconds and 4 git commands to generate.