80 lines
2.6 KiB
RPMSpec
80 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package perl-Test-Is
|
|
#
|
|
# Copyright (c) 2024 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Test-Is
|
|
Name: perl-Test-Is
|
|
Version: 20140823.100.0
|
|
Release: 0
|
|
# 20140823.1 -> normalize -> 20140823.100.0
|
|
%define cpan_version 20140823.1
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Skip test in a declarative way, following the Lancaster Consensus
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DO/DOLMEN/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
Requires: perl(Test::More) >= 0.88
|
|
Provides: perl(Test::Is) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module is a simple way of following the at
|
|
https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster
|
|
-consensus.md#environment-variables-for-testing-contexts variables
|
|
available for Perl tests as defined as one of the "at
|
|
https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster
|
|
-consensus.md" at Perl QA Hackathon 2013. Those variables
|
|
('NONINTERACTIVE_TESTING', 'EXTENDED_TESTING') define which tests should be
|
|
skipped.
|
|
|
|
If the environment does not match what the author of the test expected, the
|
|
complete test is skipped (in the same way as 'use Test::More skip_all =>
|
|
...').
|
|
|
|
As an author, you can also expect that you will automatically benefit of
|
|
later evolutions of this specification just by upgrading the module.
|
|
|
|
As a CPAN toolchain author (CPAN client, smoker...) you may want to ensure
|
|
at runtime that the installed version of this module matches the
|
|
environment you set yourself.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
%license LICENSE
|
|
|
|
%changelog
|