# # spec file for package perl-MouseX-NativeTraits # # 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 MouseX-NativeTraits Name: perl-MouseX-NativeTraits Version: 1.90.0 Release: 0 # 1.09 -> normalize -> 1.90.0 %define cpan_version 1.09 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Extend your attribute interfaces for Mouse URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/G/GF/GFUJI/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Any::Moose) >= 0.13 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59 BuildRequires: perl(Mouse) >= 0.82 BuildRequires: perl(Test::Fatal) >= 0.003 BuildRequires: perl(Test::More) >= 0.88 Requires: perl(Mouse) >= 0.82 Provides: perl(Mouse::Meta::Attribute::Custom::Trait::Array) Provides: perl(Mouse::Meta::Attribute::Custom::Trait::Bool) Provides: perl(Mouse::Meta::Attribute::Custom::Trait::Code) Provides: perl(Mouse::Meta::Attribute::Custom::Trait::Counter) Provides: perl(Mouse::Meta::Attribute::Custom::Trait::Hash) Provides: perl(Mouse::Meta::Attribute::Custom::Trait::Number) Provides: perl(Mouse::Meta::Attribute::Custom::Trait::String) Provides: perl(Mouse::Meta::Attribute::Native) = %{version} Provides: perl(MouseX::NativeTraits) = %{version} Provides: perl(MouseX::NativeTraits::ArrayRef) Provides: perl(MouseX::NativeTraits::Bool) Provides: perl(MouseX::NativeTraits::CodeRef) Provides: perl(MouseX::NativeTraits::Counter) Provides: perl(MouseX::NativeTraits::HashRef) Provides: perl(MouseX::NativeTraits::MethodProvider) Provides: perl(MouseX::NativeTraits::MethodProvider::ArrayRef) Provides: perl(MouseX::NativeTraits::MethodProvider::Bool) Provides: perl(MouseX::NativeTraits::MethodProvider::CodeRef) Provides: perl(MouseX::NativeTraits::MethodProvider::Counter) Provides: perl(MouseX::NativeTraits::MethodProvider::HashRef) Provides: perl(MouseX::NativeTraits::MethodProvider::Num) Provides: perl(MouseX::NativeTraits::MethodProvider::Str) Provides: perl(MouseX::NativeTraits::Num) Provides: perl(MouseX::NativeTraits::Str) %undefine __perllib_provides %{perl_requires} %description While Mouse attributes provide a way to name your accessors, readers, writers, clearers and predicates, MouseX::NativeTraits provides commonly used attribute helper methods for more specific types of data. As seen in the SYNOPSIS, you specify the data structure via the 'traits' parameter. These traits will be loaded automatically, so you need not load MouseX::NativeTraits explicitly. This extension is compatible with Moose native traits, although it is not a part of Mouse core. %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 example README %changelog