From d39bfde132f45af3083a4b26f1df5ceb052b18a7179770240e7a5a75c3f0beb8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 15 Sep 2014 15:18:15 +0000 Subject: [PATCH] update OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Differences?expand=0&rev=16 --- Test-Differences-0.61.tar.gz | 3 -- Test-Differences-0.62.tar.gz | 3 ++ perl-Test-Differences.changes | 7 +++++ perl-Test-Differences.spec | 56 +++++++++++++++++------------------ 4 files changed, 38 insertions(+), 31 deletions(-) delete mode 100644 Test-Differences-0.61.tar.gz create mode 100644 Test-Differences-0.62.tar.gz diff --git a/Test-Differences-0.61.tar.gz b/Test-Differences-0.61.tar.gz deleted file mode 100644 index 0bb2b55..0000000 --- a/Test-Differences-0.61.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:759b6560011b77e6713c2a5020407e1136fa5772058c8f742d70c38aed799c10 -size 14057 diff --git a/Test-Differences-0.62.tar.gz b/Test-Differences-0.62.tar.gz new file mode 100644 index 0000000..70a3ecf --- /dev/null +++ b/Test-Differences-0.62.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b627194ca3cc3de282a46417e894239bc3ac3a814732af76112dc7cdfcf05075 +size 13694 diff --git a/perl-Test-Differences.changes b/perl-Test-Differences.changes index 060c77b..3f92717 100644 --- a/perl-Test-Differences.changes +++ b/perl-Test-Differences.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Sep 15 15:15:09 UTC 2014 - coolo@suse.com + +- updated to 0.62 + - Document the Text::Diff unicode fix. + - Add ability to customise 'Got' and 'Expected' column headers + ------------------------------------------------------------------- Tue Dec 27 13:30:21 UTC 2011 - coolo@suse.com diff --git a/perl-Test-Differences.spec b/perl-Test-Differences.spec index 7defa9c..604cd95 100644 --- a/perl-Test-Differences.spec +++ b/perl-Test-Differences.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Test-Differences # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,50 +17,50 @@ Name: perl-Test-Differences -Version: 0.61 +Version: 0.62 Release: 0 +%define cpan_name Test-Differences Summary: Test strings and data structures and show differences if not ok License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-Differences-%{version}.tar.gz Url: http://search.cpan.org/dist/Test-Differences/ +Source: http://www.cpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: make BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Test::Pod) -BuildRequires: perl(Test::Pod::Coverage) -BuildRequires: perl(Text::Diff) -Requires: perl(Text::Diff) -# MANUAL -Provides: perl(Test::Differences) = 0.600 +BuildRequires: perl(Capture::Tiny) >= 0.24 +BuildRequires: perl(Data::Dumper) >= 2.126 +BuildRequires: perl(Module::Build) +BuildRequires: perl(Text::Diff) >= 0.35 +Requires: perl(Capture::Tiny) >= 0.24 +Requires: perl(Data::Dumper) >= 2.126 +Requires: perl(Text::Diff) >= 0.35 +%{perl_requires} %description -Test strings and data structures and show differences if not ok. +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}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} - -%install -%perl_make_install -%perl_process_packlist +%{__perl} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} %check -%__make test +./Build test -%files -%defattr(-,root,root) +%install +./Build install destdir=%{buildroot} create_packlist=0 +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) %doc Changes README -%dir %{perl_vendorlib}/Test -%{perl_vendorlib}/Test/Differences.pm -%dir %{perl_vendorarch}/auto/Test -%{perl_vendorarch}/auto/Test/Differences -%doc %{perl_man3dir}/Test::Differences.%{perl_man3ext}%{ext_man} %changelog