3 %bcond_without tests # do not perform "make test"
7 Summary: ExtUtils::XSBuilder - automatic XS glue code generation
8 Summary(pl.UTF-8): ExtUtils::XSBuilder - automatyczne generowanie kodu łączącego XS
9 Name: perl-ExtUtils-XSBuilder
12 License: GPL or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 1d33ddeacc01426a02e23c71c2e4cd04
16 URL: https://metacpan.org/dist/ExtUtils-XSBuilder
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRequires: rpmbuild(macros) >= 1.745
21 BuildRequires: perl-Tie-IxHash
23 Requires: perl-Tie-IxHash
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 ExtUtils::XSBuilder is a set modules to parse C header files and
29 create 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
31 C-API is ideal, some adjuments are necessary most of the time. So to
32 use this module you must still be familar with C and XS programming,
33 but it removes a lot of stupid work and copy&paste from you. Also when
34 the C API changes, most of the time you only have to rerun XSBuilder
35 to get your new Perl API.
37 %description -l pl.UTF-8
38 ExtUtils::XSBuilder to zbiór modułów do analizy plików nagłówkowych C
39 i tworzenia z nich kodu łączącego XS oraz dokumentacji. W idealnej
40 sytuacji pozwala to na "napisanie" interfejsu do biblioteki C bez
41 kodowania ani jednej linii. Ale jako że żadne API w C nie jest
42 idealne, w większości przypadków potrzebne są pewne poprawki - tak
43 więc aby używać tego modułu nadal trzeba znać się na programowaniu w C
44 oraz XS, ale zapobiega on dużej ilości głupiej pracy i copy-paste.
45 Także kiedy API w C się zmienia, większość roboty to ponowne
46 uruchomienie XSBuildera dla uzyskania nowego perlowego API.
49 %setup -q -n %{pdir}-%{pnam}-%{version}
52 %{__perl} Makefile.PL \
57 %{?with_tests:%{__make} test}
60 rm -rf $RPM_BUILD_ROOT
63 DESTDIR=$RPM_BUILD_ROOT
65 %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/*.pod
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %{perl_vendorlib}/ExtUtils/XSBuilder.pm
74 %{perl_vendorlib}/ExtUtils/XSBuilder
75 %{_mandir}/man3/ExtUtils::XSBuilder*.3pm*
76 %{_mandir}/man3/ExtUtils::xsbuilder.osc2002.3pm*