Name: perl-Test-Differences Epoch: 1 Version: 0.500 Release: 1%{?dist} Summary: Test strings and data structures and show differences if not ok License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Differences/ Source0: http://www.cpan.org/authors/id/O/OV/OVID/Test-Differences-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) BuildRequires: perl(Text::Diff) >= 0.35 Requires: perl(Test::More) Requires: perl(Text::Diff) >= 0.35 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description When the code you're testing returns multiple lines, records or data structures and they're just plain wrong, an equivalent to the Unix diff utility may be just what's needed. Here's output from an example test script that checks two text documents and then two (trivial) data structures: %prep %setup -q -n Test-Differences-%{version} %build %{__perl} Build.PL installdirs=vendor ./Build %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue May 18 2010 Dave Cross 0.500-1 - Specfile autogenerated by cpanspec 1.78.