commit aa843d7b966c6b238fdeb7a37d723eee6ddbb87546d8d708025d077860c125f0 Author: Dirk Stoecker Date: Tue Aug 31 09:23:01 2021 +0000 Accepting request 914775 from devel:languages:perl:CPAN-S For perl-Task-Kensho-WebDev update OBS-URL: https://build.opensuse.org/request/show/914775 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Syntax-Keyword-Gather?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/Syntax-Keyword-Gather-1.003002.tar.gz b/Syntax-Keyword-Gather-1.003002.tar.gz new file mode 100644 index 0000000..bb592b4 --- /dev/null +++ b/Syntax-Keyword-Gather-1.003002.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bd62205e1645c0915d28340801f245e4551b4f580f5e2735a39fc426c066207 +size 14183 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..528f374 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,35 @@ +--- +description_paragraphs: 2 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +# baz.patch: PATCH-FIX-OPENSUSE +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module +#skip_doc: regexp_to_skip_for_doc.* +#add_doc: files to add to docs +#misc: |- +#anything else to be added to spec file +#follows directly after %files section, so it can contain new blocks or also +#changes to %files section diff --git a/perl-Syntax-Keyword-Gather.changes b/perl-Syntax-Keyword-Gather.changes new file mode 100644 index 0000000..8e6b787 --- /dev/null +++ b/perl-Syntax-Keyword-Gather.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Aug 28 11:22:18 UTC 2021 - Dirk Stoecker + +- initial package 1.003002 + * created by cpanspec 1.81.01 diff --git a/perl-Syntax-Keyword-Gather.spec b/perl-Syntax-Keyword-Gather.spec new file mode 100644 index 0000000..eef05ef --- /dev/null +++ b/perl-Syntax-Keyword-Gather.spec @@ -0,0 +1,68 @@ +# +# spec file for package perl-Syntax-Keyword-Gather +# +# Copyright (c) 2021 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 Syntax-Keyword-Gather +Name: perl-Syntax-Keyword-Gather +Version: 1.003002 +Release: 0 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Implements the Perl 6 'gather/take' control structure in Perl 5 +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/F/FR/FREW/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Sub::Exporter::Progressive) +BuildRequires: perl(Test::More) >= 0.94 +Requires: perl(Sub::Exporter::Progressive) +%{perl_requires} + +%description +Perl 6 provides a new control structure -- 'gather' -- that allows lists to +be constructed procedurally, without the need for a temporary variable. +Within the block/closure controlled by a 'gather' any call to 'take' pushes +that call's argument list to an implicitly created array. 'take' returns +the number of elements it took. This module implements that control +structure. + +At the end of the block's execution, the 'gather' returns the list of +values stored in the array (in a list context) or a reference to the array +(in a scalar context). + +%prep +%autosetup -n %{cpan_name}-%{version} +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 + +%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