107 lines
3.9 KiB
RPMSpec
107 lines
3.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Test-Unit
|
|
#
|
|
# 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-Unit
|
|
Name: perl-Test-Unit
|
|
Version: 0.270.0
|
|
Release: 0
|
|
# 0.27 -> normalize -> 0.270.0
|
|
%define cpan_version 0.27
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: The PerlUnit testing framework
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Inner)
|
|
BuildRequires: perl(Devel::Symdump)
|
|
BuildRequires: perl(Error)
|
|
Requires: perl(Class::Inner)
|
|
Requires: perl(Devel::Symdump)
|
|
Requires: perl(Error)
|
|
Provides: perl(Test::Unit) = %{version}
|
|
Provides: perl(Test::Unit::Assert)
|
|
Provides: perl(Test::Unit::Assertion)
|
|
Provides: perl(Test::Unit::Assertion::Boolean)
|
|
Provides: perl(Test::Unit::Assertion::CodeRef)
|
|
Provides: perl(Test::Unit::Assertion::Exception)
|
|
Provides: perl(Test::Unit::Assertion::Regexp)
|
|
Provides: perl(Test::Unit::Debug)
|
|
Provides: perl(Test::Unit::Decorator)
|
|
Provides: perl(Test::Unit::Error)
|
|
Provides: perl(Test::Unit::Exception)
|
|
Provides: perl(Test::Unit::Failure)
|
|
Provides: perl(Test::Unit::HarnessUnit)
|
|
Provides: perl(Test::Unit::Listener)
|
|
Provides: perl(Test::Unit::Loader)
|
|
Provides: perl(Test::Unit::Procedural)
|
|
Provides: perl(Test::Unit::Result)
|
|
Provides: perl(Test::Unit::Runner)
|
|
Provides: perl(Test::Unit::Runner::Terminal)
|
|
Provides: perl(Test::Unit::Setup)
|
|
Provides: perl(Test::Unit::Test)
|
|
Provides: perl(Test::Unit::TestCase)
|
|
Provides: perl(Test::Unit::TestRunner)
|
|
Provides: perl(Test::Unit::TestSuite)
|
|
Provides: perl(Test::Unit::TkTestRunner)
|
|
Provides: perl(Test::Unit::Tutorial)
|
|
Provides: perl(Test::Unit::UnitHarness) = 1.1502
|
|
Provides: perl(Test::Unit::UnitHarness::Exception)
|
|
Provides: perl(Test::Unit::UnitHarness::TestCase)
|
|
Provides: perl(Test::Unit::Warning)
|
|
Provides: perl(Tk::ArrayBar)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This framework is intended to support unit testing in an object-oriented
|
|
development paradigm (with support for inheritance of tests etc.) and is
|
|
derived from the JUnit testing framework for Java by Kent Beck and Erich
|
|
Gamma. To start learning how to use this framework, see
|
|
Test::Unit::TestCase and Test::Unit::TestSuite. (There will also eventually
|
|
be a tutorial in Test::Unit::Tutorial.
|
|
|
|
However 'Test::Unit::Procedural' is the procedural style interface to a
|
|
sophisticated unit testing framework for Perl that . Test::Unit is intended
|
|
to provide a simpler interface to the framework that is more suitable for
|
|
use in a scripting style environment. Therefore, Test::Unit does not
|
|
provide much support for an object-oriented approach to unit testing.
|
|
|
|
%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 AUTHORS ChangeLog Changes doc examples README
|
|
%license COPYING.Artistic COPYING.GPL-2
|
|
|
|
%changelog
|