# # spec file for package perl-MooseX-Emulate-Class-Accessor-Fast # # 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 MooseX-Emulate-Class-Accessor-Fast Name: perl-MooseX-Emulate-Class-Accessor-Fast Version: 0.9.32 Release: 0 # 0.009032 -> normalize -> 0.9.32 %define cpan_version 0.009032 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Emulate Class::Accessor::Fast behavior using Moose attributes URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Moose) >= 0.84 BuildRequires: perl(Test::Exception) BuildRequires: perl(namespace::clean) Requires: perl(Moose) >= 0.84 Requires: perl(namespace::clean) Provides: perl(MooseX::Adopt::Class::Accessor::Fast) = %{version} Provides: perl(MooseX::Emulate::Class::Accessor::Fast) = %{version} Provides: perl(MooseX::Emulate::Class::Accessor::Fast::Meta::Accessor) Provides: perl(MooseX::Emulate::Class::Accessor::Fast::Meta::Role::Attribute) %undefine __perllib_provides %{perl_requires} %description This module attempts to emulate the behavior of Class::Accessor::Fast as accurately as possible using the Moose attribute system. The public API of 'Class::Accessor::Fast' is wholly supported, but the private methods are not. If you are only using the public methods (as you should) migration should be a matter of switching your 'use base' line to a 'with' line. While I have attempted to emulate the behavior of Class::Accessor::Fast as closely as possible bugs may still be lurking in edge-cases. %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 %license LICENSE %changelog