2011-08-03 10:09:20 +00:00
|
|
|
#
|
2014-12-01 13:06:09 +00:00
|
|
|
# spec file for package perl-Convert-Color
|
2011-08-03 10:09:20 +00:00
|
|
|
#
|
2014-12-01 13:06:09 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-08-03 10:09:20 +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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-12-01 13:06:09 +00:00
|
|
|
|
2011-08-03 10:09:20 +00:00
|
|
|
Name: perl-Convert-Color
|
2014-12-01 13:06:09 +00:00
|
|
|
Version: 0.11
|
|
|
|
Release: 0
|
2011-08-13 12:21:43 +00:00
|
|
|
%define cpan_name Convert-Color
|
2011-08-03 10:09:20 +00:00
|
|
|
Summary: Color space conversions and named lookups
|
2014-12-01 13:06:09 +00:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2011-08-03 10:09:20 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2014-12-01 13:06:09 +00:00
|
|
|
Url: http://search.cpan.org/dist/Convert-Color/
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Convert-Color-%{version}.tar.gz
|
2011-08-03 10:09:20 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2014-12-01 13:06:09 +00:00
|
|
|
BuildRequires: perl(List::UtilsBy)
|
2011-08-13 12:21:43 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2014-12-01 13:06:09 +00:00
|
|
|
BuildRequires: perl(Test::Number::Delta)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version} >= 1320
|
|
|
|
BuildRequires: perl(Module::Pluggable)
|
2014-12-01 16:54:38 +00:00
|
|
|
Requires: perl(Module::Pluggable)
|
2014-12-01 13:06:09 +00:00
|
|
|
%endif
|
2011-08-13 12:21:43 +00:00
|
|
|
Requires: perl(List::UtilsBy)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
|
|
|
%{perl_requires}
|
2011-08-03 10:09:20 +00:00
|
|
|
|
|
|
|
%description
|
2011-08-13 12:21:43 +00:00
|
|
|
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
|
2011-08-03 10:09:20 +00:00
|
|
|
|
2011-08-13 12:21:43 +00:00
|
|
|
* the Convert::Color::X11 manpage - named lookup of colors from X11's
|
|
|
|
_rgb.txt_
|
2011-08-03 10:09:20 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2011-08-13 12:21:43 +00:00
|
|
|
export AUTOMATED_TESTING=1
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2011-08-03 10:09:20 +00:00
|
|
|
|
|
|
|
%check
|
2011-08-13 12:21:43 +00:00
|
|
|
export AUTOMATED_TESTING=1
|
|
|
|
./Build test
|
2011-08-03 10:09:20 +00:00
|
|
|
|
|
|
|
%install
|
2011-08-13 12:21:43 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2011-08-03 10:09:20 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-08-13 12:21:43 +00:00
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc Changes examples LICENSE README
|
2011-08-03 10:09:20 +00:00
|
|
|
|
|
|
|
%changelog
|