[perl-Mock-Quick] Initial import (perl-Mock-Quick-1.107-2)

Paul Howarth pghmcfc at fedoraproject.org
Fri Aug 30 17:03:09 UTC 2013


commit 973ab03e8ae228385523feac4c346d12aa22787f
Author: Paul Howarth <paul at city-fan.org>
Date:   Fri Aug 30 18:02:00 2013 +0100

    Initial import (perl-Mock-Quick-1.107-2)
    
    Mock-Quick is here to solve the current problems with Mocking libraries.
    
    There are a couple of Mocking libraries available on CPAN. The primary problems
    with these libraries include verbose syntax, and most importantly side-effects.
    Some Mocking libraries expect you to mock a specific class, and will unload it
    then redefine it. This is particularly a problem if you only want to override
    a class on a lexical level.
    
    Mock-Object provides a declarative mocking interface that results in a very
    concise, but clear syntax. There are separate facilities for mocking object
    instances, and classes. You can quickly create an instance of an object with
    custom attributes and methods. You can also quickly create an anonymous class,
    optionally inheriting from another, with whatever methods you desire.
    
    Mock-Object also provides a tool that provides an OO interface to overriding
    methods in existing classes. This tool also allows for the restoration of the
    original class methods. Best of all, this is a localized tool: when your
    control object falls out of scope, the original class is restored.

 .gitignore           |    1 +
 perl-Mock-Quick.spec |   78 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b1bd087 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Mock-Quick-[0-9.]*.tar.gz
diff --git a/perl-Mock-Quick.spec b/perl-Mock-Quick.spec
new file mode 100644
index 0000000..40c7934
--- /dev/null
+++ b/perl-Mock-Quick.spec
@@ -0,0 +1,78 @@
+Name:		perl-Mock-Quick
+Version:	1.107
+Release:	2%{?dist}
+Summary:	Quickly mock objects and classes, side-effect free
+License:	GPL+ or Artistic
+Group:		Development/Libraries
+URL:		https://metacpan.org/release/Mock-Quick
+Source0:	http://cpan.metacpan.org/authors/id/E/EX/EXODIST/Mock-Quick-%{version}.tar.gz
+BuildArch:	noarch
+# Module Build
+BuildRequires:	perl(Module::Build) >= 0.40
+# Module Runtime
+BuildRequires:	perl(base)
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(Exporter)
+BuildRequires:	perl(Exporter::Declare) >= 0.103
+BuildRequires:	perl(Scalar::Util)
+BuildRequires:	perl(strict)
+BuildRequires:	perl(warnings)
+# Test Suite
+BuildRequires:	perl(Fennec::Lite) >= 0.004
+BuildRequires:	perl(Test::Exception) >= 0.29
+BuildRequires:	perl(Test::Simple) >= 0.88
+# Runtime
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+%description
+Mock-Quick is here to solve the current problems with Mocking libraries.
+
+There are a couple of Mocking libraries available on CPAN. The primary problems
+with these libraries include verbose syntax, and most importantly side-effects.
+Some Mocking libraries expect you to mock a specific class, and will unload it
+then redefine it. This is particularly a problem if you only want to override
+a class on a lexical level.
+
+Mock-Object provides a declarative mocking interface that results in a very
+concise, but clear syntax. There are separate facilities for mocking object
+instances, and classes. You can quickly create an instance of an object with
+custom attributes and methods. You can also quickly create an anonymous class,
+optionally inheriting from another, with whatever methods you desire.
+
+Mock-Object also provides a tool that provides an OO interface to overriding
+methods in existing classes. This tool also allows for the restoration of the
+original class methods. Best of all, this is a localized tool: when your
+control object falls out of scope, the original class is restored.
+
+%prep
+%setup -q -n Mock-Quick-%{version}
+
+%build
+perl Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}
+
+%check
+./Build test
+
+%files
+%doc README
+%{perl_vendorlib}/Mock/
+%{perl_vendorlib}/Object/
+%{_mandir}/man3/Mock::Quick.3pm*
+%{_mandir}/man3/Mock::Quick::Class.3pm*
+%{_mandir}/man3/Mock::Quick::Method.3pm*
+%{_mandir}/man3/Mock::Quick::Object.3pm*
+%{_mandir}/man3/Mock::Quick::Object::Control.3pm*
+%{_mandir}/man3/Mock::Quick::Util.3pm*
+%{_mandir}/man3/Object::Quick.3pm*
+
+%changelog
+* Thu Aug 15 2013 Paul Howarth <paul at city-fan.org> - 1.107-2
+- Sanitize for Fedora submission
+
+* Wed Aug 14 2013 Paul Howarth <paul at city-fan.org> - 1.107-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..09c96aa 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+74e12065780203466245adc44c8eac93  Mock-Quick-1.107.tar.gz


More information about the scm-commits mailing list