91 lines
2.9 KiB
RPMSpec
91 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Test-Deep (Version 0.108)
|
|
#
|
|
# Copyright (c) 2010 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
|
|
# 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: perl-Test-Deep
|
|
%define cpan_name Test-Deep
|
|
Summary: Extremely flexible deep comparison
|
|
Version: 0.108
|
|
Release: 2
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/Test-Deep/
|
|
#Source: http://www.cpan.org/modules/by-module/Test/Test-Deep-%{version}.tar.gz
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(List::Util) >= 1.09
|
|
BuildRequires: perl(Scalar::Util) >= 1.09
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Test::NoWarnings) >= 0.02
|
|
BuildRequires: perl(Test::Tester) >= 0.04
|
|
#
|
|
Requires: perl(List::Util) >= 1.09
|
|
Requires: perl(Scalar::Util) >= 1.09
|
|
Requires: perl(Test::More)
|
|
Requires: perl(Test::NoWarnings) >= 0.02
|
|
Requires: perl(Test::Tester) >= 0.04
|
|
|
|
%description
|
|
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.
|
|
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.
|
|
|
|
Authors:
|
|
--------
|
|
Fergal Daly <fergal@esatclear.ie>
|
|
Ricardo Signes <rjbs@cpan.org> (Maintainer)
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
# do not perl_process_packlist (noarch)
|
|
# remove .packlist file
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
# remove perllocal.pod file
|
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGES README TODO
|
|
|
|
%changelog
|