- 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 Tue Aug 2 19:52:23 UTC 2011 - them4z@googlemail.com

View File

@@ -19,48 +19,78 @@ Name: perl-Convert-Color
Version: 0.08 Version: 0.08
Release: 1 Release: 1
License: GPL+ or Artistic License: GPL+ or Artistic
%define cpan_name Convert-Color %define cpan_name Convert-Color
Summary: Color space conversions and named lookups Summary: Color space conversions and named lookups
Url: http://search.cpan.org/dist/Convert-Color/ Url: http://search.cpan.org/dist/Convert-Color/
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/P/PE/PEVANS/Convert-Color-%{version}.tar.gz Source: http://www.cpan.org/authors/id/P/PE/PEVANS/Convert-Color-%{version}.tar.gz
BuildArch: noarch BuildRequires: perl(Test::Pod)
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl(Test::Pod::Coverage)
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-base >= 5.14.1
BuildRequires: perl-macros
BuildRequires: perl(List::UtilsBy) BuildRequires: perl(List::UtilsBy)
Requires: perl BuildRequires: perl
Requires: perl-base >= 5.14.1 BuildRequires: perl-macros
Requires: perl(List::UtilsBy) BuildRequires: perl(Module::Build)
Requires: perl(List::UtilsBy)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description %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: This class provides a base for subclasses which represent particular color
------- values in particular spaces. The base class provides methods to represent
Paul Evans <leonerd@leonerd.org.uk> 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 %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor export AUTOMATED_TESTING=1
%{__make} %{?_smp_mflags} %{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check %check
%{__make} test export AUTOMATED_TESTING=1
./Build test
%install %install
%perl_make_install ./Build install destdir=%{buildroot} create_packlist=0
%perl_process_packlist
%perl_gen_filelist %perl_gen_filelist
%clean %clean
%{__rm} -rf %{buildroot} %{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %defattr(644,root,root,755)
%doc Changes examples LICENSE README
%changelog %changelog