Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-MooX-ClassAttribute
perl-MooX-ClassAttribute.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-MooX-ClassAttribute.spec of Package perl-MooX-ClassAttribute
# # spec file for package perl-MooX-ClassAttribute # # 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 MooX-ClassAttribute Name: perl-MooX-ClassAttribute Version: 0.11.0 Release: 0 # 0.011 -> normalize -> 0.11.0 %define cpan_version 0.011 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Declare class attributes Moose-style... but without Moose URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Exporter::Shiny) BuildRequires: perl(Moo) >= 1.000000 BuildRequires: perl(Role::Tiny) >= 1.000000 Requires: perl(Exporter::Shiny) Requires: perl(Moo) >= 1.000000 Requires: perl(Role::Tiny) >= 1.000000 Provides: perl(Method::Generate::ClassAccessor) = %{version} Provides: perl(MooX::CaptainHook) = %{version} Provides: perl(MooX::CaptainHook::HandleMoose::Hack) = %{version} Provides: perl(MooX::CaptainHook::OnApplication) = %{version} Provides: perl(MooX::CaptainHook::OnApplication::Moose) = %{version} Provides: perl(MooX::CaptainHook::OnInflation) = %{version} Provides: perl(MooX::ClassAttribute) = %{version} Provides: perl(MooX::ClassAttribute::HandleMoose) = %{version} %undefine __perllib_provides %{perl_requires} %description This module adds support for class attributes to Moo. Class attributes are attributes whose values are not associated with any particular instance of the class. For example, the 'Person' class might have a class attribute "binomial_name"; its value "Homo sapiens" is not associated with any particular individual, but the class as a whole. say Person->binomial_name; # "Homo sapiens" my $bob = Person->new; say $bob->binomial_name; # "Homo sapiens" my $alice = Person->new; $alice->binomial_name("H. sapiens"); say $bob->binomial_name; # "H. sapiens" Class attributes may be defined in roles, however they cannot be called as methods using the role package name. Instead the role must be composed with a class; the class attributes will be installed into that class. This module mostly tries to behave like MooseX::ClassAttribute. %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 COPYRIGHT CREDITS doap.ttl examples README %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor