File perl-Test-Builder-Tester.spec of Package perl-Test-Builder-Tester

# spec file for package perl-Test-Builder-Tester
# Copyright (c) 2013 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

Name:           perl-Test-Builder-Tester
Version:        1.01
Release:        0
%define cpan_name Test-Builder-Tester
Summary:        test testsuites that have been built with
License:        CHECK(GPL-1.0+ or Artistic-1.0)
Group:          Development/Libraries/Perl
Source:         Test-Builder-Tester-1.01.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Build)

A module that helps you test testing modules that are built with

The testing system is designed to be used by performing a three step
process for each test you wish to test. This process starts with using
'test_out' and 'test_err' in advance to declare what the testsuite you are
testing will output with *Test::Builder* to stdout and stderr.

You then can run the test(s) from your test suite that call
*Test::Builder*. At this point the output of *Test::Builder* is safely
captured by *Test::Builder::Tester* rather than being interpreted as real
test output.

The final stage is to call 'test_test' that will simply compare what you
predeclared to what *Test::Builder* actually outputted, and report the
results back with a "ok" or "not ok" (with debugging) to the normal output.

%setup -q -n %{cpan_name}-%{version}

%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}


./Build install destdir=%{buildroot} create_packlist=0

%files -f %{name}.files