83 lines
2.9 KiB
RPMSpec
83 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Color-Scheme
|
|
#
|
|
# Copyright (c) 2024 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 Color-Scheme
|
|
Name: perl-Color-Scheme
|
|
Version: 1.80.0
|
|
Release: 0
|
|
# 1.08 -> normalize -> 1.80.0
|
|
%define cpan_version 1.08
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Generate pleasant color schemes
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
BuildRequires: perl(parent)
|
|
Provides: perl(Color::Scheme) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module is a Perl implementation of Color Schemes 2
|
|
(http://wellstyled.com/tools/colorscheme2/), a color scheme generator.
|
|
Start by visiting the Color Schemes 2 web site and playing with the colors.
|
|
When you want to generate those schemes on the fly, begin using this
|
|
module. The descriptions herein don't make too much sense without actually
|
|
seeing the colorful results.
|
|
|
|
Henceforth, paragraphs in quotes denote documentation copied from Color
|
|
Schemes 2.
|
|
|
|
"Important note: This tool _doesn't use the standard HSV or HSB model_ (the
|
|
same HSV/HSB values ie. in Photoshop describe different colors!). The color
|
|
wheel used here differs from the RGB spectre used on computer screens, it's
|
|
more in accordance with the classical color theory. This is also why some
|
|
colors (especially shades of blue) make less bright shades than the basic
|
|
colors of the RGB-model. In plus, the RGB-model uses red-green-blue as
|
|
primary colors, but the red-yellow-blue combination is used here. This
|
|
deformation also causes incompatibility in color conversions from
|
|
RGB-values. Therefore, the RGB input (eg. the HTML hex values like #F854A9)
|
|
is not exact, the conversion is rough and sometimes may produce slightly
|
|
different color."
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%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
|