Compare commits

...

10 Commits

Author SHA256 Message Date
dfc3acb27f Accepting request 1268720 from devel:languages:perl:autoupdate
- updated to 0.609.0 (0.609)
   see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
  0.609   2025-03-19  Released-By: PERLANCAR; Urgency: medium
          - Add Rinci metadata to some functions.
  0.608   2025-03-19  Released-By: PERLANCAR; Urgency: medium
          - [func rand_rgb_colors] Add from_color, to_color arguments.

OBS-URL: https://build.opensuse.org/request/show/1268720
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=11
2025-04-14 20:42:12 +00:00
9978607140 Fix disabling of __perllib_provides
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=10
2024-03-08 22:01:43 +00:00
a9efd7b404 Accepting request 1136577 from devel:languages:perl:autoupdate
- updated to 0.607
   see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
  0.607   2023-12-12  Released-By: PERLANCAR; Urgency: medium
          - Add function: rgb_closest_to().

OBS-URL: https://build.opensuse.org/request/show/1136577
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=9
2024-01-04 15:10:53 +00:00
cac6001196 Accepting request 910838 from devel:languages:perl:autoupdate
- updated to 0.606
   see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
  0.606   2021-08-06  Released-By: PERLANCAR; Urgency: medium
  	- [function rgb2grayscale] Add 'algo' argument, offer
  	  'weighted_average' algorithm instead of the default 'average'
  	  method. (GH#4)
  	- [ux] [function rgb_diff] Die if fed unknown algo instead of using
  	  default 'euclidean'.
  0.605   2021-03-12  Released-By: PERLANCAR; Urgency: low
  	- No functional changes.
  	- [doc] Cross-reference more between functions.

OBS-URL: https://build.opensuse.org/request/show/910838
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=8
2021-08-10 05:53:22 +00:00
df8f4f0a43 Accepting request 879148 from devel:languages:perl:autoupdate
- updated to 0.604
   see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
  0.604   2021-01-19  Released-By: PERLANCAR; Urgency: medium
  	- rand_rgb_colors(): Add option 'hash_prefix'.
  0.603   2021-01-19  Released-By: PERLANCAR; Urgency: low
  	- No functional changes.
  	- [doc] Add more description to the result of rand_rgb_colors().
  0.602   2021-01-19  Released-By: PERLANCAR; Urgency: medium
  	- rand_rgb_colors(): Make sure that each generated color are
  	  distinct enough from several previous ones.
  	- [doc] Give more description to the color difference algorithms.

OBS-URL: https://build.opensuse.org/request/show/879148
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=7
2021-03-16 15:01:52 +00:00
ba258d88f8 Accepting request 841943 from devel:languages:perl:autoupdate
- updated to 0.601
   see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
  0.601   2020-06-08  Released-By: PERLANCAR; Urgency: medium
  	- [ux] Wrap H in input HSL/HSV.
  	- [ux] Make sure we show invalid rgb value in error messages.
  0.600   2020-06-07  Released-By: PERLANCAR; Urgency: medium
  	- Add functions: hsl2{hsv,rgb}, hsv2{hsl,rgb}.
  0.599   2019-08-20  Released-By: PERLANCAR; Urgency: medium
  	- Add functions: rgb2hsl, rgb2hsv (stolen from Graphics-Color,
  	  reproduced here to avoid depending on Moose et al).
  	- rgb_diff(): add algorithms approx2, hsv_euclidean, hsv_hue1.
  0.598   2019-08-14  Released-By: PERLANCAR; Urgency: low
  	- No functional changes.
  	- [doc] rand_rgb_colors(): Document what happens when max_attempts
  	  is exceeded.
  0.597   2019-07-17  Released-By: PERLANCAR; Urgency: low
  	- No functional changes.
          - [test] Add tests for rand_rgb_color() and rand_rgb_colors().

OBS-URL: https://build.opensuse.org/request/show/841943
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=6
2020-10-15 14:06:48 +00:00
a105e45351 Accepting request 723177 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/723177
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=5
2019-08-14 10:10:52 +00:00
3a100998e7 Accepting request 674818 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/674818
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=4
2019-03-01 08:53:17 +00:00
abaad23abb Accepting request 647169 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/647169
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=3
2018-11-08 14:59:39 +00:00
210f5b7f2b Accepting request 638623 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/638623
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Color-RGB-Util?expand=0&rev=2
2018-09-28 06:15:32 +00:00
5 changed files with 184 additions and 20 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b01c3b37be544cba965edab9c092ab0e8f26e5fe641088d915d7a7131838268
size 15010

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b301f24d61fe2a634f62004d2c198556ffdc743f39a96b766c09d6fe45c41aad
size 29564

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#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_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

View File

@@ -1,3 +1,133 @@
-------------------------------------------------------------------
Wed Mar 19 05:33:12 UTC 2025 - Tina Müller <timueller+perl@suse.de>
- updated to 0.609.0 (0.609)
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
0.609 2025-03-19 Released-By: PERLANCAR; Urgency: medium
- Add Rinci metadata to some functions.
0.608 2025-03-19 Released-By: PERLANCAR; Urgency: medium
- [func rand_rgb_colors] Add from_color, to_color arguments.
-------------------------------------------------------------------
Fri Mar 8 22:01:36 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Fix disabling of __perllib_provides
-------------------------------------------------------------------
Thu Dec 14 03:06:13 UTC 2023 - Tina Müller <timueller+perl@suse.de>
- updated to 0.607
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
0.607 2023-12-12 Released-By: PERLANCAR; Urgency: medium
- Add function: rgb_closest_to().
-------------------------------------------------------------------
Sat Aug 7 03:06:17 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.606
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
0.606 2021-08-06 Released-By: PERLANCAR; Urgency: medium
- [function rgb2grayscale] Add 'algo' argument, offer
'weighted_average' algorithm instead of the default 'average'
method. (GH#4)
- [ux] [function rgb_diff] Die if fed unknown algo instead of using
default 'euclidean'.
0.605 2021-03-12 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [doc] Cross-reference more between functions.
-------------------------------------------------------------------
Mon Mar 15 03:07:53 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.604
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
0.604 2021-01-19 Released-By: PERLANCAR; Urgency: medium
- rand_rgb_colors(): Add option 'hash_prefix'.
0.603 2021-01-19 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [doc] Add more description to the result of rand_rgb_colors().
0.602 2021-01-19 Released-By: PERLANCAR; Urgency: medium
- rand_rgb_colors(): Make sure that each generated color are
distinct enough from several previous ones.
- [doc] Give more description to the color difference algorithms.
-------------------------------------------------------------------
Tue Jun 9 18:20:50 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 0.601
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
0.601 2020-06-08 Released-By: PERLANCAR; Urgency: medium
- [ux] Wrap H in input HSL/HSV.
- [ux] Make sure we show invalid rgb value in error messages.
0.600 2020-06-07 Released-By: PERLANCAR; Urgency: medium
- Add functions: hsl2{hsv,rgb}, hsv2{hsl,rgb}.
0.599 2019-08-20 Released-By: PERLANCAR; Urgency: medium
- Add functions: rgb2hsl, rgb2hsv (stolen from Graphics-Color,
reproduced here to avoid depending on Moose et al).
- rgb_diff(): add algorithms approx2, hsv_euclidean, hsv_hue1.
0.598 2019-08-14 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [doc] rand_rgb_colors(): Document what happens when max_attempts
is exceeded.
0.597 2019-07-17 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [test] Add tests for rand_rgb_color() and rand_rgb_colors().
-------------------------------------------------------------------
Wed Aug 14 05:05:23 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 0.596
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
-------------------------------------------------------------------
Thu Feb 14 06:04:37 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 0.595
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
0.595 2019-02-13 (PERLANCAR)
- Add functions: assign_rgb_light_color, assign_rgb_dark_color.
0.594 2019-02-13 (PERLANCAR)
- Add function: assign_rgb_color.
-------------------------------------------------------------------
Thu Nov 8 06:07:43 UTC 2018 - Stephan Kulow <coolo@suse.com>
- updated to 0.593
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
0.593 2018-10-05 (PERLANCAR)
- No functional changes.
- [build] Rebuild to fix repository URL.
0.592 2018-10-05 (PERLANCAR)
- Add mix_rgb_colors.
0.591 2018-10-04 (PERLANCAR)
- Add rgb_diff().
-------------------------------------------------------------------
Thu Sep 27 05:06:31 UTC 2018 - Stephan Kulow <coolo@suse.com>
- updated to 0.590
see /usr/share/doc/packages/perl-Color-RGB-Util/Changes
-------------------------------------------------------------------
Sun May 3 12:00:11 UTC 2015 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Color-RGB-Util
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,39 +12,45 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Color-RGB-Util
Version: 0.58
Release: 0
%define cpan_name Color-RGB-Util
Name: perl-Color-RGB-Util
Version: 0.609.0
Release: 0
# 0.609 -> normalize -> 0.609.0
%define cpan_version 0.609
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Utilities related to RGB colors
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Color-RGB-Util/
Source0: http://www.cpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Perl::osnames) >= 0.09
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 0.98
BuildRequires: perl(Test::RandomResult)
Requires: perl(Digest::SHA)
Provides: perl(Color::RGB::Util) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Utilities related to RGB colors
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -52,7 +58,7 @@ Utilities related to RGB colors
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README TODO.md
%doc Changes README
%license LICENSE
%changelog