summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--perl-Test-Mock-Cmd.spec47
-rw-r--r--sources1
3 files changed, 49 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..782eedb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+Test-Mock-Cmd-0.6.tar.gz
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.
diff --git a/sources b/sources
new file mode 100644
index 0000000..158fbc7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+64e84e42b3a293c78241866b5064c42e Test-Mock-Cmd-0.6.tar.gz