diff options
Diffstat (limited to 'perl-Test-Mock-Cmd.spec')
-rw-r--r-- | perl-Test-Mock-Cmd.spec | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/perl-Test-Mock-Cmd.spec b/perl-Test-Mock-Cmd.spec new file mode 100644 index 0000000..9c8b903 --- /dev/null +++ b/perl-Test-Mock-Cmd.spec @@ -0,0 +1,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. |