Files
perl-Convert-Color/perl-Convert-Color.spec

103 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-Convert-Color
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-Convert-Color
Version: 0.11
Release: 0
%define cpan_name Convert-Color
Summary: Color space conversions and named lookups
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Convert-Color/
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Convert-Color-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::UtilsBy)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Number::Delta)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
#
%if 0%{?suse_version} >= 1320
BuildRequires: perl(Module::Pluggable)
%endif
Requires: perl(List::UtilsBy)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
This module provides conversions between commonly used ways to express
colors. It provides conversions between color spaces such as RGB and HSV,
and it provides ways to look up colors by a name.
This class provides a base for subclasses which represent particular color
values in particular spaces. The base class provides methods to represent
the color in a few convenient forms, though subclasses may provide more
specific details for the space in question.
For more detail, read the documentation on these classes; namely:
* the Convert::Color::RGB manpage - red/green/blue as floats between
0 and 1
* the Convert::Color::RGB8 manpage - red/green/blue as 8-bit integers
* the Convert::Color::RGB16 manpage - red/green/blue as 16-bit integers
* the Convert::Color::HSV manpage - hue/saturation/value
* the Convert::Color::HSL manpage - hue/saturation/lightness
* the Convert::Color::CMY manpage - cyan/magenta/yellow
* the Convert::Color::CMYK manpage - cyan/magenta/yellow/key (blackness)
The following classes are subclasses of one of the above, which provide a
way to access predefined colors by names:
* the Convert::Color::VGA manpage - named lookup for the basic VGA colors
* the Convert::Color::X11 manpage - named lookup of colors from X11's
_rgb.txt_
%prep
%setup -q -n %{cpan_name}-%{version}
%build
export AUTOMATED_TESTING=1
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
export AUTOMATED_TESTING=1
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes examples LICENSE README
%changelog