Copy from devel:languages:perl/perl-Test-Deep based on submit request 25089 from user msmeissn OBS-URL: https://build.opensuse.org/request/show/25089 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Test-Deep?expand=0&rev=3
82 lines
2.6 KiB
RPMSpec
82 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package perl-Test-Deep (Version 0.106)
|
|
#
|
|
# Copyright (c) 2009 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 %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
Summary: Extremely flexible deep comparison
|
|
Version: 0.106
|
|
Release: 1
|
|
License: Artistic
|
|
Group: Development/Libraries/Perl
|
|
Url: http://cpan.org/
|
|
Source: http://cpan.org/modules/by-module/Test/%{cpan_name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
#BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Test::More) >= 0
|
|
BuildRequires: perl(Test::Tester) >= 0.107
|
|
BuildRequires: perl(Test::NoWarnings) >= 0.02
|
|
# other not perl || perl-base
|
|
BuildRequires: perl(Scalar::Util) >= 1.09
|
|
BuildRequires: perl(List::Util) >= 1.09
|
|
Requires: perl = %{perl_version}
|
|
# other not perl || perl-base
|
|
Requires: perl(Test::Tester) >= 0.107
|
|
Requires: perl(Test::NoWarnings) >= 0.02
|
|
Requires: perl(Scalar::Util) >= 1.09
|
|
Requires: perl(List::Util) >= 1.09
|
|
|
|
%description
|
|
|
|
%{cpan_name} module for perl
|
|
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.
|
|
Author: Fergal Daly <fergal@esatclear.ie>
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
|
%{__make}
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
%files -f %{name}.files
|
|
# normally you only need to check for doc files
|
|
%defattr(-,root,root)
|
|
%doc CHANGES README
|
|
|
|
%changelog
|