!1 Init package with version 0.021

From: @desert-sailor 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-02-06 01:13:46 +00:00 committed by Gitee
commit 545a36dfe9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,49 @@
Description: various POD fixes
Origin: vendor
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2013-06-09
--- a/lib/Color/Library/Color.pm
+++ b/lib/Color/Library/Color.pm
@@ -227,6 +227,8 @@
=cut
+=back
+
# Partly taken from Imager/Color.pm
sub parse_rgb_color {
return (@_) if @_ == 3 && ! grep /[^\d.+eE-]/, @_;
--- a/lib/Color/Library/Dictionary.pm
+++ b/lib/Color/Library/Dictionary.pm
@@ -227,6 +227,8 @@
Returns the description of $dictionary, if any
+=back
+
=cut
sub description {
--- a/lib/Color/Library/Dictionary/NBS_ISCC/H.pm
+++ b/lib/Color/Library/Dictionary/NBS_ISCC/H.pm
@@ -11,6 +11,8 @@
=pod
+=encoding latin1
+
=head1 NAME
Color::Library::Dictionary::NBS_ISCC::H - (NBS/ISCC H) Horticultural Colour Charts
--- a/lib/Color/Library/Dictionary/NBS_ISCC/M.pm
+++ b/lib/Color/Library/Dictionary/NBS_ISCC/M.pm
@@ -11,6 +11,8 @@
=pod
+=encoding latin1
+
=head1 NAME
Color::Library::Dictionary::NBS_ISCC::M - (NBS/ISCC M) Dictionary of Color

BIN
Color-Library-0.021.tar.gz Normal file

Binary file not shown.

57
perl-Color-Library.spec Normal file
View File

@ -0,0 +1,57 @@
Name: perl-Color-Library
Version: 0.021
Release: 1
Summary: Easy-to-use and comprehensive named-color library
License: GPL+ or Artistic
URL: https://metacpan.org/release/Color-Library
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROKR/Color-Library-%{version}.tar.gz
# Fix POD syntax, CPAN RT#86023
Patch0: Color-Library-0.021-pod-fixes.patch
BuildArch: noarch
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(base)
BuildRequires: perl(Class::Accessor::Fast)
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(overload)
# Tests:
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Most)
Requires: perl(overload)
%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}
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Feb 1 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.021-1
- Initial package