2022-11-08 12:55:55 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Graphics-Toolkit-Color
|
|
|
|
#
|
2025-08-26 15:36:48 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
2022-11-08 12:55:55 +00:00
|
|
|
#
|
|
|
|
# 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 Graphics-Toolkit-Color
|
|
|
|
Name: perl-Graphics-Toolkit-Color
|
2025-08-26 15:36:48 +00:00
|
|
|
Version: 1.920.0
|
2022-11-08 12:55:55 +00:00
|
|
|
Release: 0
|
2025-08-26 15:36:48 +00:00
|
|
|
# 1.92 -> normalize -> 1.920.0
|
|
|
|
%define cpan_version 1.92
|
2022-11-08 12:55:55 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2025-08-26 15:36:48 +00:00
|
|
|
Summary: Calculate color (sets), IO many spaces and formats
|
2022-11-08 12:55:55 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2023-07-27 07:50:57 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/L/LI/LICHTKIND/%{cpan_name}-%{cpan_version}.tar.gz
|
2022-11-08 12:55:55 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:14:26 +02:00
|
|
|
Source100: README.md
|
2022-11-08 12:55:55 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::More) >= 1.3
|
2025-08-26 15:36:48 +00:00
|
|
|
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::NCol) = %{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}
|
2024-03-08 22:28:08 +00:00
|
|
|
%undefine __perllib_provides
|
2022-11-08 12:55:55 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2025-08-26 15:36:48 +00:00
|
|
|
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.
|
Accepting request 1103507 from devel:languages:perl:autoupdate
- updated to 1.53
see /usr/share/doc/packages/perl-Graphics-Toolkit-Color/Changes
1.53 2023-08-11 lichtkind
-------
* = maintenance
* ? more doc fixes to new API
* ! fix rounding error under -Duselongdouble
1.52 2023-08-11 lichtkind
-------
* = maintenance + third phase toward 2.0
* + added gradient method with new API
* ? more doc fixes to new API
* & more tests
1.51 2023-08-10 lichtkind
-------
* = a few documentation fixes
1.50 2023-08-09 lichtkind
-------
* = first + second phase of of 2.0 rewrite
* + add CMY, CMYK and HSV support
* + new universal getter method: values
* + new modifier method: set, blend
* ~ enhanced and strictened modifier method: add
* \ deprecate all other numeric getter: rgb, red, green, blue, rgb_hex,
rgb_hash, hsl, hue, saturation, lightnss, hsl_hash
* \ till 2.0 will be also deprecated: rgb_gradient_to, hsl_gradient_to,
gradient_to, distance_to, blend_with
* & new getter API
* & keep complex names like 'SVG:green' to be returned by getter: ->name
* ? rewritten large part of documentation
OBS-URL: https://build.opensuse.org/request/show/1103507
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graphics-Toolkit-Color?expand=0&rev=9
2023-08-14 15:52:03 +00:00
|
|
|
|
2025-08-26 15:36:48 +00:00
|
|
|
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.
|
2023-09-28 10:55:50 +00:00
|
|
|
|
2025-08-26 15:36:48 +00:00
|
|
|
While this module can understand and output color values to many color
|
|
|
|
spaces, color spaces 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.
|
2022-11-08 12:55:55 +00:00
|
|
|
|
|
|
|
%prep
|
2025-08-26 15:36:48 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2022-11-08 12:55:55 +00:00
|
|
|
|
|
|
|
%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 CONTRIBUTING README
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|