2024-07-19 22:35:24 +00:00
committed by Git OBS Bridge
parent 710aaf8fcc
commit 1ed917e546

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Convert-Color
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,24 +18,37 @@
%define cpan_name Convert-Color
Name: perl-Convert-Color
Version: 0.17
Version: 0.170.0
Release: 0
# 0.17 -> normalize -> 0.170.0
%define cpan_version 0.17
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Color space conversions and named lookups
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::UtilsBy)
BuildRequires: perl(Module::Build) >= 0.400400
BuildRequires: perl(Module::Build) >= 0.4004
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Sub::Util) >= 1.40
BuildRequires: perl(Test2::V0)
Requires: perl(List::UtilsBy)
Requires: perl(Module::Pluggable)
Requires: perl(Sub::Util) >= 1.40
Provides: perl(Convert::Color) = %{version}
Provides: perl(Convert::Color::CMY) = %{version}
Provides: perl(Convert::Color::CMYK) = %{version}
Provides: perl(Convert::Color::HSL) = %{version}
Provides: perl(Convert::Color::HSV) = %{version}
Provides: perl(Convert::Color::RGB) = %{version}
Provides: perl(Convert::Color::RGB16) = %{version}
Provides: perl(Convert::Color::RGB8) = %{version}
Provides: perl(Convert::Color::VGA) = %{version}
Provides: perl(Convert::Color::X11) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -72,17 +85,17 @@ way to access predefined colors by names:
* Convert::Color::X11 - named lookup of colors from X11's _rgb.txt_
%prep
%autosetup -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files