Name: perl-Test-Regression Version: 0.05 Release: 1%{?dist} Summary: Test library that can generate outputs and compare against them License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Test-Regression/ Source0: http://www.cpan.org/modules/by-module/Test/Test-Regression-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(Algorithm::Diff) BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Differences) BuildRequires: perl(Test::MockObject) BuildRequires: perl(Test::More) BuildRequires: perl(Text::Diff) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Using the various Test:: modules you can compare the output of a function against what you expect. However if the output is complex and changes from version to version, maintenance of the expected output could be costly. This module allows one to use the test code to generate the expected output, so that if the differences with model output are expected, one can easily refresh the model output. %prep %setup -q -n Test-Regression-%{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 * Thu Jun 24 2010 Emmanuel Seyman <emmanuel.seyman@club-internet.fr> 0.05-1 - Specfile autogenerated by cpanspec 1.78.