%define module Test-MockObject %define name perl-%{module} %define version 1.07 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} Summary: Perl extension for emulating troublesome interfaces License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/Test/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl(UNIVERSAL::isa) BuildRequires: perl(UNIVERSAL::can) BuildRequires: perl(Test::Warn) BuildRequires: perl(Test::Exception) BuildRequires: perl(CGI) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %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 %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %install rm -rf %{buildroot} %makeinstall_std %check %{__make} test %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README %{perl_vendorlib}/Test %{_mandir}/*/* %changelog * Wed Nov 15 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.07-1mdv2007.0 + Revision: 84321 - new version - Import perl-Test-MockObject * Tue Aug 29 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.06-2mdv2007.0 - Rebuild * Mon Apr 24 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.06-1mdk - New release 1.06 - better source URL - better buildrequires syntax * Tue Apr 11 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.05-1mdk - New release 1.05 - better source URL * Mon Mar 20 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.04-1mdk - New release 1.04 * Tue Mar 07 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.03-1mdk - New release 1.03 * Tue Dec 27 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.02-1mdk - New release 1.02 * Tue Oct 04 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.01-3mdk - Fix BuildRequires * Mon Oct 03 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.01-2mdk - Fix BuildRequires * Tue Sep 06 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.01-1mdk - New release 1.01 * Mon Jul 18 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1.00-1mdk - New release 1.00 - spec cleanup - test in %%check - fix source url * Tue Dec 21 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 0.20-1mdk - 0.20 * Mon Dec 20 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.14-2mdk - fix buildrequires in a backward compatible way * Sun Sep 12 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.14-1mdk - first mdk release