2012-05-29 08:55:13 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Test-Routine
|
|
|
|
#
|
2015-04-15 09:12:51 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-05-29 08:55:13 +00:00
|
|
|
#
|
|
|
|
# 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
|
2015-04-15 09:12:51 +00:00
|
|
|
Version: 0.020
|
2012-05-29 08:55:13 +00:00
|
|
|
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/
|
|
|
|
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-15 09:12:51 +00:00
|
|
|
BuildRequires: perl(Class::Load)
|
2012-05-29 08:55:13 +00:00
|
|
|
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(Test::Fatal)
|
|
|
|
BuildRequires: perl(Test::Moose)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2015-04-15 09:12:51 +00:00
|
|
|
BuildRequires: perl(Try::Tiny)
|
2012-05-29 08:55:13 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean)
|
|
|
|
BuildRequires: perl(namespace::clean)
|
2015-04-15 09:12:51 +00:00
|
|
|
Requires: perl(Class::Load)
|
2012-05-29 08:55:13 +00:00
|
|
|
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(Test::More) >= 0.96
|
2015-04-15 09:12:51 +00:00
|
|
|
Requires: perl(Try::Tiny)
|
2012-05-29 08:55:13 +00:00
|
|
|
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 the
|
|
|
|
Test::Routine::Manual::Demo manpage.
|
|
|
|
|
|
|
|
Test::Routine is similar to the Test::Class manpage 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 the Moose manpage 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 the Moose::Manual manpage 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 LICENSE README
|
|
|
|
|
|
|
|
%changelog
|