3 %bcond_without tests # do not perform "make test"
7 Summary: Inline::Struct - Manipulate C structs directly from Perl
8 Summary(pl.UTF-8): Inline::Struct - dostęp do struktur C z poziomu Perla
9 Name: perl-Inline-Struct
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Inline/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a12b18f058361f4a3df4d39a67440bbd
17 URL: http://search.cpan.org/dist/Inline-Struct/
18 BuildRequires: perl-Inline-C >= 0.42
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 Requires: perl-Inline-C >= 0.42
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Inline::Struct is not a new language. It's a language extension
27 designed to be used by Inline::C. It parses struct definitions and
28 creates typemaps and XS code which bind each struct into a Perl class.
29 This code is passed to Inline::C, which compiles it in the normal way.
31 %description -l pl.UTF-8
32 Inline::Struct nie jest nowym językiem, lecz rozszerzeniem języka
33 zaprojektowanym do używania przez Inline::C. Analizuje definicje
34 struktur i tworzy mapy typów oraz kod XS przypisujący każdą strukturę
35 do klasy perlowej. Kod ten jest przekazywany do Inline::C, który
36 kompiluje go w zwykły sposób.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL </dev/null \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Inline/Struct.pm
61 %{perl_vendorlib}/Inline/Struct