]> git.pld-linux.org Git - SPECS.git/blob - perl-Inline-Struct.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Inline-Struct.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Inline
6 %define         pnam    Struct
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
10 Version:        0.06
11 Release:        4
12 # same as perl
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
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
30
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.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL </dev/null \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README TODO
60 %{perl_vendorlib}/Inline/Struct.pm
61 %{perl_vendorlib}/Inline/Struct
62 %{_mandir}/man3/*
This page took 0.323534 seconds and 3 git commands to generate.