]>
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 | |
1741506b | 11 | Version: 0.18 |
405216f2 | 12 | Release: 2 |
288aa6ff | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
1741506b JB |
16 | Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz |
17 | # Source0-md5: c44ad3281df81319d02833a4e42282ac | |
288aa6ff | 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 | |
1741506b JB |
25 | Requires: perl-Digest-MD5 >= 2.0 |
26 | Requires: perl-ExtUtils-ParseXS >= 3.07 | |
27 | Requires: perl(ExtUtils::Typemaps) >= 1 | |
288aa6ff | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
1741506b | 31 | XS++ is just a thin layer over plain XS. |
288aa6ff | 32 | |
1741506b JB |
33 | %description -l pl.UTF-8 |
34 | XS++ to niewielka warstwa nad zwykłym XS. | |
288aa6ff | 35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Build.PL \ | |
41 | config="optimize='%{rpmcflags}'" \ | |
42 | destdir=$RPM_BUILD_ROOT \ | |
43 | installdirs=vendor | |
44 | ./Build | |
45 | ||
46 | %{?with_tests:./Build test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | ./Build install | |
52 | ||
53 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
54 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | ||
1741506b JB |
56 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/XSpp.pod \ |
57 | $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/XSpp/Plugin.pod | |
58 | ||
288aa6ff | 59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes README | |
65 | %attr(755,root,root) %{_bindir}/xspp | |
1741506b | 66 | %{perl_vendorlib}/ExtUtils/XSpp.pm |
288aa6ff | 67 | %dir %{perl_vendorlib}/ExtUtils/XSpp |
68 | %{perl_vendorlib}/ExtUtils/XSpp/*.pm | |
1741506b JB |
69 | %{perl_vendorlib}/ExtUtils/XSpp/Exception |
70 | %{perl_vendorlib}/ExtUtils/XSpp/Node | |
71 | %dir %{perl_vendorlib}/ExtUtils/XSpp/Plugin | |
72 | %dir %{perl_vendorlib}/ExtUtils/XSpp/Plugin/feature | |
73 | %{perl_vendorlib}/ExtUtils/XSpp/Plugin/feature/default_xs_typemap.pm | |
74 | %{perl_vendorlib}/ExtUtils/XSpp/Typemap | |
75 | %{_mandir}/man1/xspp.1p* | |
76 | %{_mandir}/man3/ExtUtils::XSpp*.3pm* | |
288aa6ff | 77 | %{_examplesdir}/%{name}-%{version} |