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

# spec file for package perl-Test-Script
# Copyright (c) 2021 SUSE LLC
# 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

%define cpan_name Test-Script
Name:           perl-Test-Script
Version:        1.29
Release:        0
Summary:        Basic cross-platform tests for scripts
License:        Artistic-1.0 OR GPL-1.0-or-later
URL:  {cpan_name}
Source1:        cpanspec.yml
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(Probe::Perl) >= 0.01
BuildRequires:  perl(Test2::API) >= 1.302015
BuildRequires:  perl(Test2::V0) >= 0.000060
Requires:       perl(Capture::Tiny)
Requires:       perl(Probe::Perl) >= 0.01
Requires:       perl(Test2::API) >= 1.302015

The intent of this module is to provide a series of basic tests for 80% of
the testing you will need to do for scripts in the _script_ (or _bin_ as is
also commonly used) paths of your Perl distribution.

It also provides similar functions for testing programs that are not Perl

Further, it aims to provide this functionality with perfect
platform-compatibility, and in a way that is as unobtrusive as possible.

That is, if the program works on a platform, then *Test::Script* should
always work on that platform as well. Anything less than 100% is considered

In doing so, it is hoped that *Test::Script* can become a module that you
can safely make a dependency of all your modules, without risking that your
module won't on some platform because of the dependency.

Where a clash exists between wanting more functionality and maintaining
platform safety, this module will err on the side of platform safety.

%autosetup  -n %{cpan_name}-%{version}

perl Makefile.PL INSTALLDIRS=vendor

make test


%files -f %{name}.files
%doc author.yml Changes README
%license LICENSE

openSUSE Build Service is sponsored by