%define upstream_name Test-Regression %define upstream_version 0.06 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Test library to generate and compare output License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Algorithm::Diff) BuildRequires: perl(DirHandle) BuildRequires: perl(File::Spec) BuildRequires: perl(FileHandle) BuildRequires: perl(Test::Differences) BuildRequires: perl(Test::MockObject) BuildRequires: perl(Test::More) BuildRequires: perl(Text::Diff) BuildRequires: perl(Module::Build::Compat) BuildArch: noarch %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 %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc META.yml Changes README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.60.0-2.mga3 + Revision: 373737 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Jan 22 2011 jquelin <jquelin> 0.60.0-1.mga1 + Revision: 32464 - mageia rebuild - imported package perl-Test-Regression