# # spec file for package perl-Graphics-Primitive # # 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-Primitive Name: perl-Graphics-Primitive Version: 0.670.0 Release: 0 # 0.67 -> normalize -> 0.670.0 %define cpan_version 0.67 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Device and library agnostic graphic primitives 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(Data::Visitor::Callback) >= 0.30 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36 BuildRequires: perl(Forest) >= 0.60.0 BuildRequires: perl(Geometry::Primitive) >= 0.160 BuildRequires: perl(Graphics::Color) >= 0.200 BuildRequires: perl(JSON::Any) >= 1.22 BuildRequires: perl(Moose) >= 0.90 BuildRequires: perl(MooseX::Clone) >= 0.04 BuildRequires: perl(MooseX::Storage) >= 0.17 Requires: perl(Data::Visitor::Callback) >= 0.30 Requires: perl(Forest) >= 0.60.0 Requires: perl(Geometry::Primitive) >= 0.160 Requires: perl(Graphics::Color) >= 0.200 Requires: perl(JSON::Any) >= 1.22 Requires: perl(Moose) >= 0.90 Requires: perl(MooseX::Clone) >= 0.04 Requires: perl(MooseX::Storage) >= 0.17 Provides: perl(Graphics::Primitive) = %{version} Provides: perl(Graphics::Primitive::Aligned) Provides: perl(Graphics::Primitive::Border) Provides: perl(Graphics::Primitive::Brush) Provides: perl(Graphics::Primitive::Canvas) Provides: perl(Graphics::Primitive::Component) Provides: perl(Graphics::Primitive::ComponentList) Provides: perl(Graphics::Primitive::Container) Provides: perl(Graphics::Primitive::Driver) Provides: perl(Graphics::Primitive::Driver::TextLayout) Provides: perl(Graphics::Primitive::Font) Provides: perl(Graphics::Primitive::Image) Provides: perl(Graphics::Primitive::Insets) Provides: perl(Graphics::Primitive::Operation) Provides: perl(Graphics::Primitive::Operation::Fill) Provides: perl(Graphics::Primitive::Operation::Stroke) Provides: perl(Graphics::Primitive::Oriented) Provides: perl(Graphics::Primitive::Paint) Provides: perl(Graphics::Primitive::Paint::Gradient) Provides: perl(Graphics::Primitive::Paint::Gradient::Linear) Provides: perl(Graphics::Primitive::Paint::Gradient::Radial) Provides: perl(Graphics::Primitive::Paint::Solid) Provides: perl(Graphics::Primitive::Path) Provides: perl(Graphics::Primitive::TextBox) %undefine __perllib_provides %{perl_requires} %description Graphics::Primitive is library agnostic system for drawing things. The idea is to allow you to create and manipulate graphical components and then pass them off to a Driver for actual drawing. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build PERL_USE_UNSAFE_INC=1 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 %changelog