3 %bcond_without tests # do not perform "make test"
7 Summary: ExtUtils::XSpp - XS for C++
8 Summary(pl.UTF-8): ExtUtils::XSpp - XS dla C++
9 Name: perl-ExtUtils-XSpp
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: c44ad3281df81319d02833a4e42282ac
17 URL: http://search.cpan.org/dist/ExtUtils-XSpp/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Test-Base
22 BuildRequires: perl-Test-Differences
24 Requires: perl-Digest-MD5 >= 2.0
25 Requires: perl-ExtUtils-ParseXS >= 3.07
26 Requires: perl(ExtUtils::Typemaps) >= 1
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 XS++ is just a thin layer over plain XS.
32 %description -l pl.UTF-8
33 XS++ to niewielka warstwa nad zwykłym XS.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
40 config="optimize='%{rpmcflags}'" \
41 destdir=$RPM_BUILD_ROOT \
45 %{?with_tests:./Build test}
48 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/XSpp.pod \
56 $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/XSpp/Plugin.pod
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/xspp
65 %{perl_vendorlib}/ExtUtils/XSpp.pm
66 %dir %{perl_vendorlib}/ExtUtils/XSpp
67 %{perl_vendorlib}/ExtUtils/XSpp/*.pm
68 %{perl_vendorlib}/ExtUtils/XSpp/Exception
69 %{perl_vendorlib}/ExtUtils/XSpp/Node
70 %dir %{perl_vendorlib}/ExtUtils/XSpp/Plugin
71 %dir %{perl_vendorlib}/ExtUtils/XSpp/Plugin/feature
72 %{perl_vendorlib}/ExtUtils/XSpp/Plugin/feature/default_xs_typemap.pm
73 %{perl_vendorlib}/ExtUtils/XSpp/Typemap
74 %{_mandir}/man1/xspp.1p*
75 %{_mandir}/man3/ExtUtils::XSpp*.3pm*
76 %{_examplesdir}/%{name}-%{version}