3 %bcond_without tests # do not perform "make test"
4 # there are no tests defined currently, so
7 %include /usr/lib/rpm/macros.perl
10 Summary: ExtUtils::XSBuilder - automatic XS glue code generation
11 Summary(pl.UTF-8): ExtUtils::XSBuilder - automatyczne generowanie kodu łączącego XS
12 Name: perl-ExtUtils-XSBuilder
15 License: GPL or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 6e1f1c8207b598166dc7a06d633db308
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 Requires: perl-Tie-IxHash
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 ExtUtils::XSBuilder is a set modules to parse C header files and
27 create XS glue code and documentation out of it. Idealy this allows to
28 "write" an interface to a C library without coding a line. Since no
29 C-API is ideal, some adjuments are necessary most of the time. So to
30 use this module you must still be familar with C and XS programming,
31 but it removes a lot of stupid work and copy&paste from you. Also when
32 the C API changes, most of the time you only have to rerun XSBuilder
33 to get your new Perl API.
35 %description -l pl.UTF-8
36 ExtUtils::XSBuilder to zbiór modułów do analizy plików nagłówkowych C
37 i tworzenia z nich kodu łączącego XS oraz dokumentacji. W idealnej
38 sytuacji pozwala to na "napisanie" interfejsu do biblioteki C bez
39 kodowania ani jednej linii. Ale jako że żadne API w C nie jest
40 idealne, w większości przypadków potrzebne są pewne poprawki - tak
41 więc aby używać tego modułu nadal trzeba znać się na programowaniu w C
42 oraz XS, ale zapobiega on dużej ilości głupiej pracy i copy-paste.
43 Także kiedy API w C się zmienia, większość roboty to ponowne
44 uruchomienie XSBuildera dla uzyskania nowego perlowego API.
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
69 %{perl_vendorlib}/ExtUtils/XSBuilder.pm
70 %{perl_vendorlib}/ExtUtils/XSBuilder