Stephan Kulow 2014-09-15 15:18:15 +00:00 committed by Git OBS Bridge
parent fb4ccc4b7b
commit d39bfde132
4 changed files with 38 additions and 31 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:759b6560011b77e6713c2a5020407e1136fa5772058c8f742d70c38aed799c10
size 14057

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b627194ca3cc3de282a46417e894239bc3ac3a814732af76112dc7cdfcf05075
size 13694

View File

@ -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

View File

@ -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