diff --git a/perl-Convert-Color.changes b/perl-Convert-Color.changes index d36be17..86e4b78 100644 --- a/perl-Convert-Color.changes +++ b/perl-Convert-Color.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Aug 13 12:13:32 UTC 2011 - lars@linux-schulserver.de + +- specfile cleanup (description) + ------------------------------------------------------------------- Tue Aug 2 19:52:23 UTC 2011 - them4z@googlemail.com diff --git a/perl-Convert-Color.spec b/perl-Convert-Color.spec index 5c97486..78c4651 100644 --- a/perl-Convert-Color.spec +++ b/perl-Convert-Color.spec @@ -19,48 +19,78 @@ Name: perl-Convert-Color Version: 0.08 Release: 1 License: GPL+ or Artistic -%define cpan_name Convert-Color +%define cpan_name Convert-Color Summary: Color space conversions and named lookups Url: http://search.cpan.org/dist/Convert-Color/ Group: Development/Libraries/Perl Source: http://www.cpan.org/authors/id/P/PE/PEVANS/Convert-Color-%{version}.tar.gz -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: perl -BuildRequires: perl-base >= 5.14.1 -BuildRequires: perl-macros +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(List::UtilsBy) -Requires: perl -Requires: perl-base >= 5.14.1 -Requires: perl(List::UtilsBy) +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Module::Build) +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 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. -Author: -------- - Paul Evans +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 -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +export AUTOMATED_TESTING=1 +%{__perl} Build.PL installdirs=vendor +./Build build flags=%{?_smp_mflags} %check -%{__make} test +export AUTOMATED_TESTING=1 +./Build test %install -%perl_make_install -%perl_process_packlist +./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files -%defattr(-,root,root,755) +%defattr(644,root,root,755) +%doc Changes examples LICENSE README %changelog