diff --git a/Color-Library-0.021-pod-fixes.patch b/Color-Library-0.021-pod-fixes.patch new file mode 100644 index 0000000..e51f414 --- /dev/null +++ b/Color-Library-0.021-pod-fixes.patch @@ -0,0 +1,49 @@ +Description: various POD fixes +Origin: vendor +Author: gregor herrmann +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 diff --git a/Color-Library-0.021.tar.gz b/Color-Library-0.021.tar.gz new file mode 100644 index 0000000..ecbfe36 Binary files /dev/null and b/Color-Library-0.021.tar.gz differ diff --git a/perl-Color-Library.spec b/perl-Color-Library.spec new file mode 100644 index 0000000..3c0a3be --- /dev/null +++ b/perl-Color-Library.spec @@ -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 - 0.021-1 +- Initial package