Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:M0ses:perl
perl-Beam-Emitter
perl-Beam-Emitter.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Beam-Emitter.spec of Package perl-Beam-Emitter
# # spec file for package perl-Beam-Emitter # # 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 Beam-Emitter Name: perl-Beam-Emitter Version: 1.7.0 Release: 0 # 1.007 -> normalize -> 1.7.0 %define cpan_version 1.007 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Role for event emitting classes URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/P/PR/PREACTION/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Runtime) BuildRequires: perl(Moo) BuildRequires: perl(Test::API) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Lib) BuildRequires: perl(Types::Standard) >= 0.008 Requires: perl(Module::Runtime) Requires: perl(Moo) Requires: perl(Types::Standard) >= 0.008 Provides: perl(Beam::Emitter) = %{version} Provides: perl(Beam::Event) = %{version} Provides: perl(Beam::Listener) = %{version} %undefine __perllib_provides %{perl_requires} %description This role is used by classes that want to add callback hooks to allow users to add new behaviors to their objects. These hooks are called "events". A subscriber registers a callback for an event using the subscribe or on methods. Then, the class can call those callbacks by emitting an event with the emit() method. Using the Beam::Event class, subscribers can stop an event from being processed, or prevent the default action from happening. %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 CONTRIBUTING.md 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