]>
Commit | Line | Data |
---|---|---|
288aa6ff | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir ExtUtils | |
7 | %define pnam XSpp | |
8 | Summary: ExtUtils::XSpp - XS for C++ | |
9 | Summary(pl.UTF-8): ExtUtils::XSpp - XS dla C++ | |
10 | Name: perl-ExtUtils-XSpp | |
11 | Version: 0.05 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://search.cpan.org/CPAN/authors/id/M/MB/MBARBON/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 8a039891dbf2deeebe8940bc805e0660 | |
18 | URL: http://search.cpan.org/dist/ExtUtils-XSpp/ | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Test-Base | |
23 | BuildRequires: perl-Test-Differences | |
24 | %endif | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Anything that does not look like a XS++ directive or a class | |
29 | declaration is passed verbatim to XS. If you want XS++ to ignore code | |
30 | that looks like a XS++ directive or class declaration, simply surround | |
31 | it with a raw block delimiter like this: | |
32 | ||
33 | %{ XS++ won't interpret this %} | |
34 | ||
35 | See under Classes. | |
36 | ||
37 | # %description -l pl.UTF-8 | |
38 | # TODO | |
39 | ||
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
44 | %{__perl} Build.PL \ | |
45 | config="optimize='%{rpmcflags}'" \ | |
46 | destdir=$RPM_BUILD_ROOT \ | |
47 | installdirs=vendor | |
48 | ./Build | |
49 | ||
50 | %{?with_tests:./Build test} | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | ./Build install | |
56 | ||
57 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
58 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc Changes README | |
66 | %attr(755,root,root) %{_bindir}/xspp | |
67 | %{perl_vendorlib}/ExtUtils/*.pm | |
68 | %dir %{perl_vendorlib}/ExtUtils/XSpp | |
69 | %{perl_vendorlib}/ExtUtils/XSpp/*.pm | |
70 | %{_mandir}/man?/* | |
71 | %{_examplesdir}/%{name}-%{version} |