summaryrefslogtreecommitdiffstats
path: root/perl-Test-Mock-Cmd.spec
blob: 9c8b9030b1819fc6717c1ca9baa05a48d4761096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Name:           perl-Test-Mock-Cmd
Version:        0.6
Release:        1%{?dist}
Summary:        Mock system(), exec(), and qx() for testing
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Test-Mock-Cmd/
Source0:        http://www.cpan.org/modules/by-module/Test/Test-Mock-Cmd-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::Carp)
BuildRequires:  perl(Test::More)
Requires:       perl(Test::Carp)
Requires:       perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Mock system(), exec(), qx() (AKA `` and readpipe()) with your own functions
in order to test code that may call them.

%prep
%setup -q -n Test-Mock-Cmd-%{version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0

%{_fixperms} $RPM_BUILD_ROOT/*

perldoc -t perlgpl > COPYING
perldoc -t perlartistic > Artistic

%check
./Build test

%files
%doc Changes META.json README COPYING Artistic
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Tue May 28 2013 Ken Dreyer <ktdreyer@ktdreyer.com> 0.6-1
- Specfile autogenerated by cpanspec 1.78.