Files
perl-Test-Routine/perl-Test-Routine.spec
2025-08-12 18:17:53 +02:00

123 lines
4.4 KiB
RPMSpec

#
# spec file for package perl-Test-Routine
#
# 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-Routine
Name: perl-Test-Routine
Version: 0.31.0
Release: 0
# 0.031 -> normalize -> 0.31.0
%define cpan_version 0.031
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Composable units of assertion
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Load)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Meta::Class)
BuildRequires: perl(Moose::Meta::Method)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Exporter::Util)
BuildRequires: perl(Test2::API) >= 1.302045
BuildRequires: perl(Test::Abortable) >= 0.2.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(namespace::clean)
Requires: perl(Class::Load)
Requires: perl(Moose)
Requires: perl(Moose::Exporter)
Requires: perl(Moose::Meta::Class)
Requires: perl(Moose::Meta::Method)
Requires: perl(Moose::Role)
Requires: perl(Moose::Util)
Requires: perl(Moose::Util::TypeConstraints)
Requires: perl(Params::Util)
Requires: perl(Sub::Exporter)
Requires: perl(Sub::Exporter::Util)
Requires: perl(Test2::API) >= 1.302045
Requires: perl(Test::Abortable) >= 0.2.0
Requires: perl(Test::More) >= 0.96
Requires: perl(Try::Tiny)
Requires: perl(namespace::autoclean)
Requires: perl(namespace::clean)
Provides: perl(Test::Routine) = %{version}
Provides: perl(Test::Routine::Common) = %{version}
Provides: perl(Test::Routine::Compositor) = %{version}
Provides: perl(Test::Routine::Manual::Demo) = %{version}
Provides: perl(Test::Routine::Runner) = %{version}
Provides: perl(Test::Routine::Test) = %{version}
Provides: perl(Test::Routine::Test::Role) = %{version}
Provides: perl(Test::Routine::Util) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Test::Routine is a very simple framework for writing your tests as
composable units of assertion. In other words: roles.
For a walkthrough of tests written with Test::Routine, see
Test::Routine::Manual::Demo.
Test::Routine is similar to Test::Class in some ways. These similarities
are largely superficial, but the idea of "tests bound together in reusable
units" is a useful one to understand when coming to Test::Routine. If you
are already familiar with Test::Class, it is the differences rather than
the similarities that will be more important to understand. If you are not
familiar with Test::Class, there is no need to understand it prior to using
Test::Routine.
On the other hand, an understanding of the basics of Moose is absolutely
essential. Test::Routine composes tests from Moose classes, roles, and
attributes. Without an understanding of those, you will not be able to use
Test::Routine. The Moose::Manual is an excellent resource for learning
Moose, and has links to other online tutorials and documentation.
%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