2014-03-11 18:38:35 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
#
|
|
|
|
|
# spec file for package perl-Test-MockObject
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2010-07-15 16:15:46 +00:00
|
|
|
|
|
|
|
|
Name: perl-Test-MockObject
|
|
|
|
|
Version: 1.09
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Perl extension for emulating troublesome interfaces
|
2014-03-11 18:38:35 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-07-15 16:15:46 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2014-03-11 18:38:35 +00:00
|
|
|
Source: Test-MockObject-%{version}.tar.gz
|
|
|
|
|
Url: http://search.cpan.org/dist/Test-MockObject/
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 09:46:20 +00:00
|
|
|
%{perl_requires}
|
2014-03-11 18:38:35 +00:00
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:52:29 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-07-15 16:15:46 +00:00
|
|
|
BuildRequires: perl(Test::Exception)
|
2014-03-11 18:38:35 +00:00
|
|
|
BuildRequires: perl(UNIVERSAL::can)
|
|
|
|
|
BuildRequires: perl(UNIVERSAL::isa)
|
2010-07-15 16:15:46 +00:00
|
|
|
Requires: perl(UNIVERSAL::can)
|
2014-03-11 18:38:35 +00:00
|
|
|
Requires: perl(UNIVERSAL::isa)
|
2010-07-15 16:15:46 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
It's a simple program that doesn't use any other modules, and those are easy to
|
|
|
|
|
test. More often, testing a program completely means faking up input to another
|
|
|
|
|
module, trying to coax the right output from something you're not supposed to
|
|
|
|
|
be testing anyway.
|
|
|
|
|
|
|
|
|
|
Testing is a lot easier when you can control the entire environment. With
|
|
|
|
|
Test::MockObject, you can get a lot closer.
|
|
|
|
|
|
|
|
|
|
Test::MockObject allows you to create objects that conform to particular
|
|
|
|
|
interfaces with very little code. You don't have to reimplement the behavior,
|
|
|
|
|
just the input and the output.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n "Test-MockObject-%{version}"
|
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%__rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%dir %{perl_vendorlib}/Test
|
|
|
|
|
%{perl_vendorlib}/Test/MockObject.pm
|
|
|
|
|
%{perl_vendorlib}/Test/MockObject
|
|
|
|
|
%dir %{perl_vendorarch}/auto/Test
|
|
|
|
|
%{perl_vendorarch}/auto/Test/MockObject
|
|
|
|
|
%doc %{perl_man3dir}/Test::MockObject.%{perl_man3ext}%{ext_man}
|
|
|
|
|
%doc %{perl_man3dir}/Test::MockObject::*.%{perl_man3ext}%{ext_man}
|
|
|
|
|
|
|
|
|
|
%changelog
|