File perl-Test-MockObject.spec of Package perl-Test-MockObject
# norootforbuild
Name: perl-Test-MockObject
Version: 1.09
Release: 0
Summary: Perl extension for emulating troublesome interfaces
Source: http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/Test-MockObject-%{version}.tar.gz
URL: http://search.cpan.org/dist/Test-MockObject/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: make perl
BuildRequires: perl-macros
BuildRequires: perl(UNIVERSAL::isa)
BuildRequires: perl(UNIVERSAL::can)
BuildRequires: perl(Test::Exception)
Requires: perl(UNIVERSAL::isa)
Requires: perl(UNIVERSAL::can)
%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
# vim: set sw=4 ts=4 et nu: