]> git.pld-linux.org Git - packages/perl-Module-Build-XSUtil.git/blame - perl-Module-Build-XSUtil.spec
- updated to 0.19
[packages/perl-Module-Build-XSUtil.git] / perl-Module-Build-XSUtil.spec
CommitLineData
ce655699
JR
1#
2# Conditional build:
e10b63bf 3%bcond_without tests # unit tests
092df19b 4
ce655699
JR
5%define pdir Module
6%define pnam Build-XSUtil
e10b63bf
JB
7Summary: Module::Build::XSUtil - a Module::Build class for building XS modules
8Summary(pl.UTF-8): Module::Build::XSUtil - klasa Module::Build do budowania modułów XS
ce655699 9Name: perl-Module-Build-XSUtil
e10b63bf 10Version: 0.19
ce655699
JR
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
e10b63bf
JB
16# Source0-md5: 7ebe5859645989a556c333f3de7fc337
17URL: https://metacpan.org/dist/Module-Build-XSUtil
18BuildRequires: perl-Module-Build >= 0.4005
19BuildRequires: perl-devel >= 1:5.8.1
ce655699 20BuildRequires: rpm-perlprov >= 4.1-13
e10b63bf 21BuildRequires: rpmbuild(macros) >= 1.745
ce655699 22%if %{with tests}
ce655699 23BuildRequires: perl-Capture-Tiny
e10b63bf
JB
24BuildRequires: perl-Cwd-Guard
25BuildRequires: perl-Devel-CheckCompiler
26BuildRequires: perl-Devel-PPPort
27BuildRequires: perl-ExtUtils-CBuilder
28BuildRequires: perl-File-Copy-Recursive-Reduced >= 0.002
29BuildRequires: perl-Test-Simple >= 0.98
ce655699
JR
30%endif
31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%description
35Module::Build::XSUtil is subclass of Module::Build for support
36building XS modules.
37
e10b63bf
JB
38%description -l pl.UTF-8
39Module::Build::XSUtil to podklasa Module::Build do obsługi budowania
40modułów XS.
41
ce655699
JR
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44
45%build
46%{__perl} Build.PL \
47 destdir=$RPM_BUILD_ROOT \
48 installdirs=vendor
49./Build
50
51%{?with_tests:./Build test}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
56./Build install
57
58install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%files
65%defattr(644,root,root,755)
66%doc Changes
e10b63bf
JB
67%{perl_vendorlib}/Module/Build/XSUtil.pm
68%{_mandir}/man3/Module::Build::XSUtil.3pm*
ce655699 69%{_examplesdir}/%{name}-%{version}
This page took 0.090294 seconds and 4 git commands to generate.