Files
perl-Test-Routine/perl-Test-Routine.spec
Stephan Kulow f9d46f95bd Accepting request 492954 from devel:languages:perl:autoupdate
- updated to 0.025
   see /usr/share/doc/packages/perl-Test-Routine/Changes
  0.025     2017-04-13 17:43:19-04:00 America/New_York
          - remove fresh_instance; it wasn't documented, and it probably was not
            going to work out
          - the Runner no longer caches the test_instance, so its BUILD and
            DEMOLISH should now be called usefully
          - Test::Routine::Common now adds stub BUILD and DEMOLISH so you can use
            method modifiers on them

- updated to 0.024
   see /usr/share/doc/packages/perl-Test-Routine/Changes
  0.024     2017-01-16 13:03:18-05:00 America/New_York
          - tests are now run with Test::Abortable's subtest() instead of
            Test2::API directly; this means they can be safely aborted with
            exceptions that conform to the Test::Abortable rules; see its docs
            for more information

OBS-URL: https://build.opensuse.org/request/show/492954
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Routine?expand=0&rev=4
2017-05-05 05:10:49 +00:00

113 lines
3.9 KiB
RPMSpec

#
# spec file for package perl-Test-Routine
#
# Copyright (c) 2017 SUSE LINUX 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 http://bugs.opensuse.org/
#
Name: perl-Test-Routine
Version: 0.025
Release: 0
%define cpan_name Test-Routine
Summary: Composable Units of Assertion
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Test-Routine/
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Load)
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.002
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.002
Requires: perl(Test::More) >= 0.96
Requires: perl(Try::Tiny)
Requires: perl(namespace::autoclean)
Requires: perl(namespace::clean)
%{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
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE
%changelog