58 lines
1.5 KiB
RPMSpec
58 lines
1.5 KiB
RPMSpec
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
|