File perl-Test-Most.spec of Package perl-Test-Most

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Test-Most
#
# Copyright (c) 2011 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/
#
Name:           perl-Test-Most
Version:        0.25
Release:        0
Summary:        Most commonly needed test functions and features
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Source:         http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Test-Most-%{version}.tar.gz
Url:            http://search.cpan.org/dist/Test-Most/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Exception::Class) >= 1.14
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::Deep) >= 0.106
BuildRequires:  perl(Test::Differences) >= 0.61
BuildRequires:  perl(Test::Exception) >= 0.31
BuildRequires:  perl(Test::Harness) >= 3.21
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Warn) >= 0.23
#BuildRequires: perl(OurTester)
#BuildRequires: perl(Test::Most)
#BuildRequires: perl(Test::Most::Exception)
Requires:       perl(Exception::Class) >= 1.14
Requires:       perl(Test::Deep) >= 0.106
Requires:       perl(Test::Differences) >= 0.61
Requires:       perl(Test::Exception) >= 0.31
Requires:       perl(Test::Harness) >= 3.21
Requires:       perl(Test::More) >= 0.88
Requires:       perl(Test::Warn) >= 0.23
Recommends:     perl(Data::Dumper::Names) >= 0.03

%description
Test::Most exists to reduce boilerplate and to make your testing life easier.
We provide "one stop shopping" for most commonly used testing modules. In fact,
we often require the latest versions so that you get bug fixes through
Test::Most and don't have to keep upgrading these modules separately.

This module provides you with the most commonly used testing functions, along
with automatically turning on strict and warning and gives you a bit more
fine-grained control over your test suite.

%prep
%setup -q -n "Test-Most-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}

%install
%perl_make_install
%perl_process_packlist

%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1120
%check
%__make test
%endif

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Test
%{perl_vendorlib}/Test/Most.pm
%{perl_vendorlib}/Test/Most
%dir %{perl_vendorarch}/auto/Test
%{perl_vendorarch}/auto/Test/Most
%doc %{perl_man3dir}/Test::Most.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Test::Most::*.%{perl_man3ext}%{ext_man}

%changelog
openSUSE Build Service is sponsored by