# # spec file for package perl-Graphics-Color # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define cpan_name Graphics-Color Name: perl-Graphics-Color Version: 0.310.0 Release: 0 # 0.31 -> normalize -> 0.310.0 %define cpan_version 0.31 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Device and library agnostic color spaces URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/G/GP/GPHAT/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Color::Library) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Role) BuildRequires: perl(Moose::Util::TypeConstraints) BuildRequires: perl(MooseX::Aliases) >= 0.10 BuildRequires: perl(MooseX::Clone) BuildRequires: perl(MooseX::Storage::Deferred) BuildRequires: perl(MooseX::Types) BuildRequires: perl(MooseX::Types::Moose) BuildRequires: perl(Test::Number::Delta) Requires: perl(Color::Library) Requires: perl(Moose) Requires: perl(Moose::Role) Requires: perl(Moose::Util::TypeConstraints) Requires: perl(MooseX::Aliases) >= 0.10 Requires: perl(MooseX::Clone) Requires: perl(MooseX::Storage::Deferred) Requires: perl(MooseX::Types) Requires: perl(MooseX::Types::Moose) Provides: perl(Graphics::Color) = %{version} Provides: perl(Graphics::Color::CMYK) = %{version} Provides: perl(Graphics::Color::Equal) = %{version} Provides: perl(Graphics::Color::HSL) = %{version} Provides: perl(Graphics::Color::HSV) = %{version} Provides: perl(Graphics::Color::RGB) = %{version} Provides: perl(Graphics::Color::Types) = %{version} Provides: perl(Graphics::Color::YIQ) = %{version} Provides: perl(Graphics::Color::YUV) = %{version} %undefine __perllib_provides %{perl_requires} %description Graphics color is a device and library agnostic system for creating and manipulating colors in various color spaces. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README README.mkdn %license LICENSE %changelog