From f03d592ce7796dc2b4e31f089c049ac2dfcbd8b58beeafa141b982089ee21094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 18:28:49 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main perl-List-UtilsBy revision 9b40884a218af024561de92bde4b3fb2 --- .gitattributes | 23 ++++++++++++++ List-UtilsBy-0.12.tar.gz | 3 ++ cpanspec.yml | 23 ++++++++++++++ perl-List-UtilsBy.changes | 61 ++++++++++++++++++++++++++++++++++++ perl-List-UtilsBy.spec | 66 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 176 insertions(+) create mode 100644 .gitattributes create mode 100644 List-UtilsBy-0.12.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-List-UtilsBy.changes create mode 100644 perl-List-UtilsBy.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/List-UtilsBy-0.12.tar.gz b/List-UtilsBy-0.12.tar.gz new file mode 100644 index 0000000..fca0110 --- /dev/null +++ b/List-UtilsBy-0.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fff1281fd469fe982b1a58044becfd970f313bff3a26e1c7b2b3f4c0a5ed71e0 +size 23469 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#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_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 diff --git a/perl-List-UtilsBy.changes b/perl-List-UtilsBy.changes new file mode 100644 index 0000000..7752b75 --- /dev/null +++ b/perl-List-UtilsBy.changes @@ -0,0 +1,61 @@ +------------------------------------------------------------------- +Sat Apr 30 03:06:26 UTC 2022 - Tina Müller + +- updated to 0.12 + see /usr/share/doc/packages/perl-List-UtilsBy/Changes + + 0.12 2022-04-29 + [CHANGES] + * Documentation updates: + + Add examples showing combining multiple functions to give + further behaviours + + Fixed typo "probability" (RT127988, RT136817) + +------------------------------------------------------------------- +Wed Feb 7 15:44:26 UTC 2018 - coolo@suse.com + +- updated to 0.11 + see /usr/share/doc/packages/perl-List-UtilsBy/Changes + + 0.11 2018-01-31 23:12:44 + [CHANGES] + * Added 'minmax_by' (RT124275) + + [BUGFIXES] + * use lib '.' for 5.26+ (RT120418) + +------------------------------------------------------------------- +Sat Jul 18 08:50:31 UTC 2015 - coolo@suse.com + +- updated to 0.10 + see /usr/share/doc/packages/perl-List-UtilsBy/Changes + + 0.10 2015/07/16 19:22:00 + [CHANGES] + * Added 'extract_first_by' + * Updated documentation: + + Added 'since' version to all functions + + Use =head2 barename for nicer indexing + +------------------------------------------------------------------- +Mon Apr 13 19:30:19 UTC 2015 - coolo@suse.com + +- updated to 0.09 + see /usr/share/doc/packages/perl-List-UtilsBy/Changes + + 0.09 CHANGES: + * Added 'unzip_by' + * Added 'nmax_by' and 'nmin_by' name aliases for 'max_by'/'min_by' + + 0.08 CHANGES: + * Ensure that 'bundle_by' passes a short list to the body function + rather than trailing undefs + * Better hopefully-more efficient implementation of *sort_by. + * Removed back-compat renames of sortby etc.. + +------------------------------------------------------------------- +Sun May 22 10:51:42 UTC 2011 - them4z@googlemail.com + +- initial package 0.07 + * created by cpanspec 1.78.04 + diff --git a/perl-List-UtilsBy.spec b/perl-List-UtilsBy.spec new file mode 100644 index 0000000..53d3c55 --- /dev/null +++ b/perl-List-UtilsBy.spec @@ -0,0 +1,66 @@ +# +# spec file for package perl-List-UtilsBy +# +# Copyright (c) 2022 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 List-UtilsBy +Name: perl-List-UtilsBy +Version: 0.12 +Release: 0 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Higher-order list utility functions +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Module::Build) >= 0.400400 +BuildRequires: perl(Test::More) >= 0.88 +%{perl_requires} + +%description +This module provides a number of list utility functions, all of which take +an initial code block to control their behaviour. They are variations on +similar core perl or 'List::Util' functions of similar names, but which use +the block to control their behaviour. For example, the core Perl function +'sort' takes a list of values and returns them, sorted into order by their +string value. The sort_by function sorts them according to the string value +returned by the extra function, when given each value. + + my @names_sorted = sort @names; + + my @people_sorted = sort_by { $_->name } @people; + +%prep +%autosetup -n %{cpan_name}-%{version} + +%build +perl Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} + +%check +./Build test + +%install +./Build install destdir=%{buildroot} create_packlist=0 +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes README +%license LICENSE + +%changelog