# vim: set sw=4 ts=4 et nu: # norootforbuild Name: perl-Color-Library Version: 0.02 Release: 0 Summary: Easy-to-use and Comprehensive Named-Color Library Source: http://search.cpan.org/CPAN/authors/id/R/RK/RKRIMEN/Color-Library-%{version}.tar.gz URL: http://search.cpan.org/dist/Color-Library/ Group: Development/Libraries/Perl License: Perl License BuildRoot: %{_tmppath}/build-%{name}-%{version} Requires: perl = %{perl_version} BuildRequires: make perl BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Class::Accessor::Fast) BuildRequires: perl(Class::Data::Inheritable) %description Color::Library is an easy-to-use and comprehensive named-color dictionary. Currently provides coverage for www (svg, html, css) colors, x11 colors, and more. %prep %setup -q -n "Color-Library-%{version}" %__sed -i '/^auto_install/d' Makefile.PL %build %__perl Makefile.PL PREFIX="%{_prefix}" %__make %{?jobs:-j%{jobs}} %install %perl_make_install %perl_process_packlist %check %__make test %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files %defattr(-,root,root) %doc Changes README %dir %{perl_vendorlib}/Color %{perl_vendorlib}/Color/Library.pm %{perl_vendorlib}/Color/Library %dir %{perl_vendorarch}/auto/Color %{perl_vendorarch}/auto/Color/Library %doc %{perl_man3dir}/Color::Library.%{perl_man3ext}%{ext_man} %doc %{perl_man3dir}/Color::Library::*.%{perl_man3ext}%{ext_man} /var/adm/perl-modules/%{name}