]> git.pld-linux.org Git - packages/perl-ExtUtils-XSpp.git/blame - perl-ExtUtils-XSpp.spec
- x32 rebuild
[packages/perl-ExtUtils-XSpp.git] / perl-ExtUtils-XSpp.spec
CommitLineData
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
8Summary: ExtUtils::XSpp - XS for C++
9Summary(pl.UTF-8): ExtUtils::XSpp - XS dla C++
10Name: perl-ExtUtils-XSpp
1741506b 11Version: 0.18
405216f2 12Release: 2
288aa6ff 13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
1741506b
JB
16Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
17# Source0-md5: c44ad3281df81319d02833a4e42282ac
288aa6ff 18URL: http://search.cpan.org/dist/ExtUtils-XSpp/
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21%if %{with tests}
22BuildRequires: perl-Test-Base
23BuildRequires: perl-Test-Differences
24%endif
1741506b
JB
25Requires: perl-Digest-MD5 >= 2.0
26Requires: perl-ExtUtils-ParseXS >= 3.07
27Requires: perl(ExtUtils::Typemaps) >= 1
288aa6ff 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
1741506b 31XS++ is just a thin layer over plain XS.
288aa6ff 32
1741506b
JB
33%description -l pl.UTF-8
34XS++ 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
49rm -rf $RPM_BUILD_ROOT
50
51./Build install
52
53install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54cp -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
60rm -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}
This page took 0.05773 seconds and 4 git commands to generate.