# # spec file for package perl-Test-POE-Server-TCP # # 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 Test-POE-Server-TCP Name: perl-Test-POE-Server-TCP Version: 1.200.0 Release: 0 # 1.20 -> normalize -> 1.200.0 %define cpan_version 1.20 License: Artistic-1.0 OR GPL-1.0-or-later Summary: POE Component providing TCP server services for test cases URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(POE) >= 1.004 BuildRequires: perl(POE::Filter) BuildRequires: perl(POE::Filter::Line) BuildRequires: perl(POE::Wheel::ReadWrite) BuildRequires: perl(POE::Wheel::SocketFactory) BuildRequires: perl(Socket) >= 2.0 Requires: perl(POE) >= 1.004 Requires: perl(POE::Filter) Requires: perl(POE::Filter::Line) Requires: perl(POE::Wheel::ReadWrite) Requires: perl(POE::Wheel::SocketFactory) Requires: perl(Socket) >= 2.0 Provides: perl(Test::POE::Server::TCP) = %{version} %undefine __perllib_provides %{perl_requires} %description Test::POE::Server::TCP is a POE component that provides a TCP server framework for inclusion in client component test cases, instead of having to roll your own. Once registered with the component, a session will receive events related to client connects, disconnects, input and flushed output. Each of these events will refer to a unique client ID which may be used in communication with the component when sending data to the client or disconnecting a client connection. If AF_INET6 sockets are supported the component with create an AF_INET and an AF_INET6 socket. %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 examples README %license LICENSE %changelog