]> git.pld-linux.org Git - packages/perl-ExtUtils-XSpp.git/blame - perl-ExtUtils-XSpp.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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#
288aa6ff 5%define pdir ExtUtils
6%define pnam XSpp
7Summary: ExtUtils::XSpp - XS for C++
8Summary(pl.UTF-8): ExtUtils::XSpp - XS dla C++
9Name: perl-ExtUtils-XSpp
1741506b 10Version: 0.18
585b1dc6 11Release: 3
288aa6ff 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
1741506b
JB
15Source0: http://www.cpan.org/modules/by-module/ExtUtils/%{pdir}-%{pnam}-%{version}.tar.gz
16# Source0-md5: c44ad3281df81319d02833a4e42282ac
288aa6ff 17URL: http://search.cpan.org/dist/ExtUtils-XSpp/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Test-Base
22BuildRequires: perl-Test-Differences
23%endif
1741506b
JB
24Requires: perl-Digest-MD5 >= 2.0
25Requires: perl-ExtUtils-ParseXS >= 3.07
26Requires: perl(ExtUtils::Typemaps) >= 1
288aa6ff 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
1741506b 30XS++ is just a thin layer over plain XS.
288aa6ff 31
1741506b
JB
32%description -l pl.UTF-8
33XS++ to niewielka warstwa nad zwykłym XS.
288aa6ff 34
35%prep
36%setup -q -n %{pdir}-%{pnam}-%{version}
37
38%build
39%{__perl} Build.PL \
40 config="optimize='%{rpmcflags}'" \
41 destdir=$RPM_BUILD_ROOT \
42 installdirs=vendor
43./Build
44
45%{?with_tests:./Build test}
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50./Build install
51
52install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
54
1741506b
JB
55%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/XSpp.pod \
56 $RPM_BUILD_ROOT%{perl_vendorlib}/ExtUtils/XSpp/Plugin.pod
57
288aa6ff 58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc Changes README
64%attr(755,root,root) %{_bindir}/xspp
1741506b 65%{perl_vendorlib}/ExtUtils/XSpp.pm
288aa6ff 66%dir %{perl_vendorlib}/ExtUtils/XSpp
67%{perl_vendorlib}/ExtUtils/XSpp/*.pm
1741506b
JB
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*
288aa6ff 76%{_examplesdir}/%{name}-%{version}
This page took 0.134978 seconds and 4 git commands to generate.