74 lines
2.4 KiB
RPMSpec
74 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package perl-POE-Component-Syndicator
|
|
#
|
|
# 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 POE-Component-Syndicator
|
|
Name: perl-POE-Component-Syndicator
|
|
Version: 0.60.0
|
|
Release: 0
|
|
# 0.06 -> normalize -> 0.60.0
|
|
%define cpan_version 0.06
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: POE component base class which implements the Observer pattern
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/H/HI/HINRIK/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Object::Pluggable) >= 1.29
|
|
BuildRequires: perl(POE) >= 1.311
|
|
Requires: perl(Object::Pluggable) >= 1.29
|
|
Requires: perl(POE) >= 1.311
|
|
Provides: perl(POE::Component::Syndicator) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
POE::Component::Syndicator is a base class for POE components which need to
|
|
handle a persistent resource (e.g. a connection to an IRC server) for one
|
|
or more sessions in an extendable way.
|
|
|
|
This module (as well as Object::Pluggable, which this module inherits from)
|
|
was born out of POE::Component::IRC, the guts of which quickly spread to
|
|
other POE components. Now they can all inherit from this module instead.
|
|
|
|
The component provides an event queue, which can be managed with the
|
|
methods documented below. It handles delivery of events to the object
|
|
itself, all interested plugins, and all interested sessions.
|
|
|
|
%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
|