diff --git a/Graphics-Toolkit-Color-1.71.tar.gz b/Graphics-Toolkit-Color-1.71.tar.gz deleted file mode 100644 index c07b6fb..0000000 --- a/Graphics-Toolkit-Color-1.71.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34e88b6f6858f47d996101f1582f1eb00db7f86e129e5f1d61bf7f9bddb62ef2 -size 74925 diff --git a/Graphics-Toolkit-Color-1.972.tar.gz b/Graphics-Toolkit-Color-1.972.tar.gz new file mode 100644 index 0000000..e5a99a5 --- /dev/null +++ b/Graphics-Toolkit-Color-1.972.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32a50011e955ac6f3b79e0ce5356e4dd9d0430ab15e5630c736c6fe58efe2703 +size 126666 diff --git a/perl-Graphics-Toolkit-Color.changes b/perl-Graphics-Toolkit-Color.changes index a5514d6..69ed14e 100644 --- a/perl-Graphics-Toolkit-Color.changes +++ b/perl-Graphics-Toolkit-Color.changes @@ -1,3 +1,87 @@ +------------------------------------------------------------------- +Mon Oct 6 17:21:54 UTC 2025 - Tina Müller + +- updated to 1.972.0 (1.972) + see /usr/share/doc/packages/perl-Graphics-Toolkit-Color/Changes + + + 1.972 2025-09-31 lichtkind + ------- + * = small feature release = 2 fixes + * ? POD fixed / rewrote for methods "values", "name", "closest_name", "distance" + * ! public API cluster method test fix + 1.971 2025-08-31 lichtkind + ------- + * = small fix release = 3 fixes + * ? documented latest input format + * ? typos in POD + * ! more cluster method test fixes + 1.97 2025-08-30 lichtkind + ------- + * = small feature release + 1 fix + * + new input format: space_name => [ ....] + * + method "name" can now return names from a radius + * ~ renamed cluster argument: distance => minimal_distance + * ~ cluster argument "minimal_distance" got alias: "min_d" + * ~ cluster argument "radius" got alias: "r" + * ? removed bad chars from POD + * ? organize POD for color names better + 1.961 2025-08-29 lichtkind + ------- + * = fix stupidity release + * ? removed bad chars from POD + 1.951 2025-08-29 lichtkind + ------- + * = tiny POD fix release + * ? removed bad chars from POD + 1.95 2025-08-29 lichtkind + ------- + * = mid sized feature release + 3 fixes + * * added support of 3 color spaces: OKLAB, OKLCH, HunterLAB + * + methods "name" and "closest_name" can now return multiple names and full names + * ? rewrote some POD + * ? POD example code fixes + * ? fix POD links in GTC::Space::Hub lib + * ! fixed too tight set calc tests: Issue Pause:169094 found by SlavenRezic++ + * ! remove unused "use Benchmark;" fixed by ppisar++ + 1.92 2025-08-20 lichtkind + ------- + * = mid sized feature release + 1 fix + * + methods "name" and "closest_name" work on any scheme from Graphics::ColorNames + * ~ extended "CSS_string" format, commas are now optional + * ~ no space between axis value and suffix allowed + * ~ color space "CIELCHuv" got alias name "LCHuv" + * & converter value IO moved to standard tuple format + * ? POD syntax fixes + 1.91 2025-08-12 lichtkind + ------- + * = minor bug fix release + * ~ added aliases for renamed methods "add_value" and "set_value" + * ? POD syntax fixes + * ? rewrote parts of ::Color::Space POD + 1.9 2025-08-12 lichtkind + ------- + * = major feature release + * * added "cluster" and "invert" calculation method + * * added "closest_name" method + * * added support of 5 color spaces: NCol YUV CIELUV CIELCHab CIELCHuv, + rewrote CIEXYZ CIELAB + * + extended range definitions with explicit type names + * + color spaces can now define value precision, + value suffix ('%') and + value parsing regex + * ? added documentation for color space object and missing formats + * & moved code into Space::Format space attribute object class + * & removed Carp and Test::Warn as dependencies + * & moved color and color set calculators into own packages + * ~ reworked all calculator methods + * ~ renamed single color calculator method "blend" method to "mix" + * ~ renamed method "add" and "set" to "add_value" and "set_value" + * ~ renamed method "mix" argument "with" to "to" + * ~ renamed method "gradient" argument "dynamic" to "tilt" + * ~ default space of methods 'distance', 'mix' and 'gradient' + went from HSL to RGB, consistent with defaults (complement has to be HSL) + ------------------------------------------------------------------- Fri Mar 8 22:28:05 UTC 2024 - Tina Müller diff --git a/perl-Graphics-Toolkit-Color.spec b/perl-Graphics-Toolkit-Color.spec index 0eff2b5..d75c714 100644 --- a/perl-Graphics-Toolkit-Color.spec +++ b/perl-Graphics-Toolkit-Color.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Graphics-Toolkit-Color # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,11 +18,12 @@ %define cpan_name Graphics-Toolkit-Color Name: perl-Graphics-Toolkit-Color -Version: 1.710.0 +Version: 1.972.0 Release: 0 -%define cpan_version 1.71 +# 1.972 -> normalize -> 1.972.0 +%define cpan_version 1.972 License: Artistic-1.0 OR GPL-1.0-or-later -Summary: Color palette constructor +Summary: Calculate color (sets), IO many spaces and formats URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/L/LI/LICHTKIND/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml @@ -30,63 +31,66 @@ Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Carp) >= 1.35 BuildRequires: perl(Test::More) >= 1.3 -BuildRequires: perl(Test::Warn) >= 0.30 -Requires: perl(Carp) >= 1.35 -Provides: perl(Graphics::Toolkit::Color) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Name) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Name::Constant) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Basis) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Hub) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMY) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMYK) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSB) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSL) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSV) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::HWB) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::LAB) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::RGB) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::XYZ) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Instance::YIQ) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Shape) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Space::Util) = 1.710.0 -Provides: perl(Graphics::Toolkit::Color::Values) = 1.710.0 +Provides: perl(Graphics::Toolkit::Color) = %{version} +Provides: perl(Graphics::Toolkit::Color::Name) = %{version} +Provides: perl(Graphics::Toolkit::Color::Name::Constant) = %{version} +Provides: perl(Graphics::Toolkit::Color::Name::Scheme) = %{version} +Provides: perl(Graphics::Toolkit::Color::SetCalculator) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Basis) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Format) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Hub) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELAB) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELCHab) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELCHuv) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIELUV) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::CIEXYZ) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMY) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::CMYK) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSB) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSL) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::HSV) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::HWB) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::HunterLAB) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::NCol) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::OKLAB) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::OKLCH) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::RGB) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::YIQ) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Instance::YUV) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Shape) = %{version} +Provides: perl(Graphics::Toolkit::Color::Space::Util) = %{version} +Provides: perl(Graphics::Toolkit::Color::Values) = %{version} %undefine __perllib_provides %{perl_requires} %description -ATTENTION: deprecated methods of the old API ( _string_, _rgb_, _red_, -_green_, _blue_, _rgb_hex_, _rgb_hash_, _hsl_, _hue_, _saturation_, -_lightness_, _hsl_hash_, _blend_with_, _gradient_to_, _rgb_gradient_to_, -_hsl_gradient_to_, _complementary_) will be removed on version 2.0. +Graphics::Toolkit::Color, for short *GTC*, is the top level API of this +release and the only package a regular user should be concerned with. Its +main purpose is the creation of related colors or sets of them, such as +gradients, complements and others. But you can use it also to convert +and/or reformat color definitions. -Graphics::Toolkit::Color, for short GTC, is the top level API of this -module and the only one a regular user should be concerned with. Its main -purpose is the creation of sets of related colors, such as gradients, -complements and others. +GTC are read only, one color representing objects with no additional +dependencies. Create them in many different ways (see CONSTRUCTOR). Access +its values via methods from section GETTER. Measure differences with the +distance method. SINGLE-COLOR methods create one new object that is related +to the current one and COLOR-SETS methods will create a group of colors, +that are not only related to the current color but also have relations +between each other. Error messages will appear as return values instead of +the expected result. -GTC are read only color holding objects with no additional dependencies. -Create them in many different ways (see section CONSTRUCTOR). Access its -values via methods from section GETTER. Measure differences with the -_distance_ method. SINGLE-COLOR methods create one a object that is related -to the current one and COLOR-SETS methods will create a host of color that -are not only related to the current color but also have relations between -each other. - -While this module can understand and output color values in many spaces, -such as YIQ, HSL and many more, RGB is the (internal) primal one, because -GTC is about colors that can be shown on the screen, and these are usually -encoded in RGB. - -Humans access colors on hardware level (eye) in RGB, on cognition level in -HSL (brain) and on cultural level (language) with names. Having easy access -to all three and some color math should enable you to get the color palette -you desire quickly. +While this module can understand and output color values to many color +spaces, RGB is the (internal) primal one, because GTC is about colors that +can be shown on the screen, and these are usually encoded in _RGB_. Humans +access colors on hardware level (eye) in _RGB_, on cognition level in _HSL_ +(brain) and on cultural level (language) with names. Having easy access to +all of those plus some color math and many formats should enable you to get +the color palette you desire quickly. %prep -%autosetup -n %{cpan_name}-%{cpan_version} +%autosetup -n %{cpan_name}-%{cpan_version} -p1 %build perl Makefile.PL INSTALLDIRS=vendor