From 44fc196e0152c2ed7edb5bf87b7c6ba544d98c8a068cdecf431347ccf06403c6 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Tue, 9 Oct 2018 09:01:51 +0000 Subject: [PATCH] Accepting request 640763 from devel:languages:perl:CPAN-D - Created OBS-URL: https://build.opensuse.org/request/show/640763 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Tumbler?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + Data-Tumbler-0.010.tar.gz | 3 ++ perl-Data-Tumbler.changes | 4 ++ perl-Data-Tumbler.spec | 88 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Data-Tumbler-0.010.tar.gz create mode 100644 perl-Data-Tumbler.changes create mode 100644 perl-Data-Tumbler.spec 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/Data-Tumbler-0.010.tar.gz b/Data-Tumbler-0.010.tar.gz new file mode 100644 index 0000000..0f11ea9 --- /dev/null +++ b/Data-Tumbler-0.010.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b4f703136a0eb1226855ced051a0a2210bd794788122a9eee2eb97a5cddef96 +size 17635 diff --git a/perl-Data-Tumbler.changes b/perl-Data-Tumbler.changes new file mode 100644 index 0000000..fbc2838 --- /dev/null +++ b/perl-Data-Tumbler.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Oct 9 08:58:38 UTC 2018 - Dirk Stoecker + +- Created diff --git a/perl-Data-Tumbler.spec b/perl-Data-Tumbler.spec new file mode 100644 index 0000000..78253ba --- /dev/null +++ b/perl-Data-Tumbler.spec @@ -0,0 +1,88 @@ +# +# spec file for package perl-Data-Tumbler +# +# Copyright (c) 2016 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-Data-Tumbler +Version: 0.010 +Release: 0 +%define cpan_name Data-Tumbler +Summary: Dynamic generation of nested combinations of variants +License: Artistic-1.0 or GPL-1.0+ +Group: Development/Libraries/Perl +Url: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Most) >= 0.33 +%{perl_requires} + +%description +NOTE: This is alpha code and liable to change while it and +Test::WriteVariants mature. + +The tumble() method calls a sequence of 'provider' code references each of +which returns a hash. The first provider is called and then, for each hash +item it returns, the tumble() method recurses to call the next provider. + +The recursion continues until there are no more providers to call, at which +point the consumer code reference is called. Effectively the providers +create a tree of combinations and the consumer is called at the leafs of +the tree. + +If a provider returns no items then that part of the tree is pruned. +Further providers, if any, are not called and the consumer is not called. + +During a call to tumble() three values are passed down through the tree and +into the consumer: path, context, and payload. + +The path and context are derived from the names and values of the hashes +returned by the providers. Typically the path define the current "path" +through the tree of combinations. + +The providers are passed the current path, context, and payload. The +payload is cloned at each level of recursion so that any changes made to it +by providers are only visible within the scope of the generated sub-tree. + +Note that although the example above shows the path, context and payload as +array references, the tumbler code makes no assumptions about them. They +can be any kinds of values. + +See Test::WriteVariants for a practical example use. + +%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 ARTISTIC-1.0 Changes GPL-1 GPL-2.0 LICENSE README TODO + +%changelog