- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Module-Build-XSUtil.git] / perl-Module-Build-XSUtil.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define         pdir    Module
6 %define         pnam    Build-XSUtil
7 Summary:        Module::Build::XSUtil - A Module::Build class for building XS modules
8 Name:           perl-Module-Build-XSUtil
9 Version:        0.14
10 Release:        1
11 # same as perl
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  40045cdd0730d09abc05423f7c103adb
16 URL:            http://search.cpan.org/dist/Module-Build-XSUtil/
17 BuildRequires:  perl-Module-Build
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl(Cwd::Guard)
22 BuildRequires:  perl(Devel::CheckCompiler) >= 0.02
23 BuildRequires:  perl(File::Copy::Recursive)
24 BuildRequires:  perl-Capture-Tiny
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Module::Build::XSUtil is subclass of Module::Build for support
31 building XS modules.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Build.PL \
38         destdir=$RPM_BUILD_ROOT \
39         installdirs=vendor
40 ./Build
41
42 %{?with_tests:./Build test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 ./Build install
48
49 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50 cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes
58 %{perl_vendorlib}/Module/Build/*.pm
59 %{_mandir}/man3/*
60 %{_examplesdir}/%{name}-%{version}
This page took 0.148457 seconds and 4 git commands to generate.