2009-08-04 10:23:04 +00:00
|
|
|
#
|
2011-11-17 15:51:18 +00:00
|
|
|
# spec file for package perl-Test-Deep
|
2009-08-04 10:23:04 +00:00
|
|
|
#
|
2013-06-04 15:31:10 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-04 10:23:04 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2010-10-06 20:47:28 +00:00
|
|
|
|
2009-08-04 10:23:04 +00:00
|
|
|
Name: perl-Test-Deep
|
2013-12-09 11:26:10 +00:00
|
|
|
Version: 0.112
|
2012-02-20 08:44:38 +00:00
|
|
|
Release: 0
|
2010-10-06 20:47:30 +00:00
|
|
|
%define cpan_name Test-Deep
|
2009-08-04 10:23:04 +00:00
|
|
|
Summary: Extremely flexible deep comparison
|
2011-12-06 17:48:00 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2009-08-04 10:23:04 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-10-06 20:47:30 +00:00
|
|
|
Url: http://search.cpan.org/dist/Test-Deep/
|
2012-02-20 08:44:38 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
|
2010-10-06 20:47:30 +00:00
|
|
|
BuildArch: noarch
|
2009-08-04 10:23:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2010-10-06 20:47:30 +00:00
|
|
|
BuildRequires: perl(Test::NoWarnings) >= 0.02
|
|
|
|
BuildRequires: perl(Test::Tester) >= 0.04
|
2012-02-20 08:44:38 +00:00
|
|
|
#BuildRequires: perl(A)
|
|
|
|
#BuildRequires: perl(Test::Deep)
|
|
|
|
#BuildRequires: perl(Test::Deep::Array)
|
|
|
|
#BuildRequires: perl(Test::Deep::Cache)
|
|
|
|
#BuildRequires: perl(Test::Deep::Cache::Simple)
|
|
|
|
#BuildRequires: perl(Test::Deep::Class)
|
|
|
|
#BuildRequires: perl(Test::Deep::Cmp)
|
|
|
|
#BuildRequires: perl(Test::Deep::Hash)
|
|
|
|
#BuildRequires: perl(Test::Deep::HashElements)
|
|
|
|
#BuildRequires: perl(Test::Deep::HashKeys)
|
|
|
|
#BuildRequires: perl(Test::Deep::HashKeysOnly)
|
|
|
|
#BuildRequires: perl(Test::Deep::Methods)
|
|
|
|
#BuildRequires: perl(Test::Deep::MM)
|
|
|
|
#BuildRequires: perl(Test::Deep::NoTest)
|
|
|
|
#BuildRequires: perl(Test::Deep::Ref)
|
|
|
|
#BuildRequires: perl(Test::Deep::RegexpMatches)
|
|
|
|
#BuildRequires: perl(Test::Deep::RegexpVersion)
|
|
|
|
#BuildRequires: perl(Test::Deep::Set)
|
|
|
|
#BuildRequires: perl(Test::Deep::Stack)
|
|
|
|
#BuildRequires: perl(t::std)
|
2010-10-06 20:47:30 +00:00
|
|
|
Requires: perl(Test::NoWarnings) >= 0.02
|
|
|
|
Requires: perl(Test::Tester) >= 0.04
|
2012-02-20 08:44:38 +00:00
|
|
|
%{perl_requires}
|
2009-08-04 10:23:04 +00:00
|
|
|
|
|
|
|
%description
|
2010-10-06 20:47:30 +00:00
|
|
|
If you don't know anything about automated testing in Perl then you should
|
|
|
|
probably read about Test::Simple and Test::More before preceding.
|
|
|
|
Test::Deep uses the Test::Builder framework.
|
2009-08-04 10:23:04 +00:00
|
|
|
|
2012-02-20 08:44:38 +00:00
|
|
|
Test::Deep gives you very flexible ways to check that the result you got is
|
|
|
|
the result you were expecting. At it's simplest it compares two structures
|
|
|
|
by going through each level, ensuring that the values match, that arrays
|
|
|
|
and hashes have the same elements and that references are blessed into the
|
|
|
|
correct class. It also handles circular data structures without getting
|
|
|
|
caught in an infinite loop.
|
|
|
|
|
|
|
|
Where it becomes more interesting is in allowing you to do something
|
|
|
|
besides simple exact comparisons. With strings, the 'eq' operator checks
|
|
|
|
that 2 strings are exactly equal but sometimes that's not what you want.
|
|
|
|
When you don't know exactly what the string should be but you do know some
|
|
|
|
things about how it should look, 'eq' is no good and you must use pattern
|
|
|
|
matching instead. Test::Deep provides pattern matching for complex data
|
|
|
|
structures
|
2009-08-04 10:23:04 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2010-10-06 20:47:30 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
2010-01-12 11:13:23 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2009-08-04 10:23:04 +00:00
|
|
|
|
|
|
|
%check
|
2010-10-06 20:47:30 +00:00
|
|
|
%{__make} test
|
2009-08-04 10:23:04 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
2012-02-20 08:44:38 +00:00
|
|
|
%perl_process_packlist
|
2009-08-04 10:23:04 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2012-02-20 08:44:38 +00:00
|
|
|
%defattr(-,root,root,755)
|
2013-12-09 11:26:10 +00:00
|
|
|
%doc Changes README TODO
|
2009-08-04 10:23:04 +00:00
|
|
|
|
|
|
|
%changelog
|