commit 129d8d7d0218f1653ee6bee4a37c5d6bbd1287e3dbc208828a00a2a37dad4b8d Author: Stephan Kulow Date: Sun May 28 19:18:28 2017 +0000 initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-Roo?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Test-Roo-1.004.tar.gz b/Test-Roo-1.004.tar.gz new file mode 100644 index 0000000..939a8a4 --- /dev/null +++ b/Test-Roo-1.004.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21129a3cecb507b00948e16cf15fcde5dc4db235aba84afd7f47d22013a9ded6 +size 29662 diff --git a/perl-Test-Roo.changes b/perl-Test-Roo.changes new file mode 100644 index 0000000..e25bded --- /dev/null +++ b/perl-Test-Roo.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun May 28 19:18:23 UTC 2017 - coolo@suse.com + +- initial package 1.004 + * created by cpanspec 1.78.08 diff --git a/perl-Test-Roo.spec b/perl-Test-Roo.spec new file mode 100644 index 0000000..213482c --- /dev/null +++ b/perl-Test-Roo.spec @@ -0,0 +1,95 @@ +# +# spec file for package perl-Test-Roo +# +# 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-Roo +Version: 1.004 +Release: 0 +%define cpan_name Test-Roo +Summary: Composable, reusable tests with roles and Moo +License: Apache-2.0 +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Test-Roo/ +Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Capture::Tiny) >= 0.12 +BuildRequires: perl(Moo) >= 1.000008 +BuildRequires: perl(MooX::Types::MooseLike::Base) +BuildRequires: perl(Sub::Install) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(strictures) +Requires: perl(Moo) >= 1.000008 +Requires: perl(MooX::Types::MooseLike::Base) +Requires: perl(Sub::Install) +Requires: perl(Test::More) >= 0.96 +Requires: perl(strictures) +Recommends: perl(bareword::filehandles) +Recommends: perl(indirect) +Recommends: perl(multidimensional) +%{perl_requires} + +%description +This module allows you to compose Test::More tests from roles. It is +inspired by the excellent Test::Routine module, but uses Moo instead of +Moose. This gives most of the benefits without the need for Moose as a test +dependency. + +Test files are Moo classes. You can define any needed test fixtures as Moo +attributes. You define tests as method modifiers -- similar in concept to +'subtest' in Test::More, but your test method will be passed the test +object for access to fixture attributes. You may compose any Moo::Role into +your test to define attributes, require particular methods, or define +tests. + +This means that you can isolate test _behaviors_ into roles which require +certain test _fixtures_ in order to run. Your main test file will provide +the fixtures and compose the roles to run. This makes it easy to reuse test +behaviors. + +For example, if you are creating tests for Awesome::Module, you could +create the test behaviors as Awesome::Module::Test::Role and distribute it +with your module. If another distribution subclasses Awesome::Module, it +can compose the Awesome::Module::Test::Role behavior for its own tests. + +No more copying and pasting tests from a super class! Superclasses define +and share their tests. Subclasses provide their own fixtures and run the +tests. + +%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 CONTRIBUTING.mkdn examples README +%license LICENSE + +%changelog