- specfile cleanup (description)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Convert-Color?expand=0&rev=3
This commit is contained in:
Lars Vogdt
2011-08-13 12:21:43 +00:00
committed by Git OBS Bridge
parent 9d26d6ebde
commit 026416bfbe
2 changed files with 55 additions and 20 deletions

View File

@@ -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

View File

@@ -24,43 +24,73 @@ 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
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 <leonerd@leonerd.org.uk>
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