Files
perl-Message-Passing/perl-Message-Passing.spec
2025-08-12 18:15:25 +02:00

146 lines
6.1 KiB
RPMSpec

#
# spec file for package perl-Message-Passing
#
# 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 Message-Passing
Name: perl-Message-Passing
Version: 0.117.0
Release: 0
# 0.117 -> normalize -> 0.117.0
%define cpan_version 0.117
License: Logstash (upon which many ideas for this project are based, but from which
Summary: Simple way of doing messaging
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MS/MSTROUT/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(AnyEvent)
BuildRequires: perl(AnyEvent::Handle::UDP)
BuildRequires: perl(Config::Any)
BuildRequires: perl(DateTime)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(JSON::MaybeXS) >= 1.002002
BuildRequires: perl(List::Util) >= 1.45
BuildRequires: perl(Module::Runtime) >= 0.013
BuildRequires: perl(Moo) >= 0.091011
BuildRequires: perl(MooX::Options) >= 3.71
BuildRequires: perl(MooX::Types::MooseLike) >= 0.08
BuildRequires: perl(Package::Variant) >= 1.001001
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(Sys::Hostname::Long)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::clean) >= 0.23
Requires: perl(AnyEvent)
Requires: perl(AnyEvent::Handle::UDP)
Requires: perl(Config::Any)
Requires: perl(DateTime)
Requires: perl(JSON::MaybeXS) >= 1.002002
Requires: perl(List::Util) >= 1.45
Requires: perl(Module::Runtime) >= 0.013
Requires: perl(Moo) >= 0.091011
Requires: perl(MooX::Options) >= 3.71
Requires: perl(MooX::Types::MooseLike) >= 0.08
Requires: perl(Package::Variant) >= 1.001001
Requires: perl(String::RewritePrefix)
Requires: perl(Sys::Hostname::Long)
Requires: perl(Task::Weaken)
Requires: perl(Try::Tiny)
Requires: perl(namespace::clean) >= 0.23
Provides: perl(Message::Passing) = %{version}
Provides: perl(Message::Passing::DSL)
Provides: perl(Message::Passing::DSL::Factory)
Provides: perl(Message::Passing::Exception)
Provides: perl(Message::Passing::Exception::ConnectionDisconnected)
Provides: perl(Message::Passing::Exception::ConnectionTimeout)
Provides: perl(Message::Passing::Exception::Decoding)
Provides: perl(Message::Passing::Exception::Encoding)
Provides: perl(Message::Passing::Filter::All)
Provides: perl(Message::Passing::Filter::Decoder::Bzip2)
Provides: perl(Message::Passing::Filter::Decoder::Crypt::CBC)
Provides: perl(Message::Passing::Filter::Decoder::Gzip)
Provides: perl(Message::Passing::Filter::Decoder::JSON)
Provides: perl(Message::Passing::Filter::Decoder::Null)
Provides: perl(Message::Passing::Filter::Delay)
Provides: perl(Message::Passing::Filter::Encoder::Bzip2)
Provides: perl(Message::Passing::Filter::Encoder::Crypt::CBC)
Provides: perl(Message::Passing::Filter::Encoder::Gzip)
Provides: perl(Message::Passing::Filter::Encoder::JSON)
Provides: perl(Message::Passing::Filter::Encoder::Null)
Provides: perl(Message::Passing::Filter::Key)
Provides: perl(Message::Passing::Filter::Mangle)
Provides: perl(Message::Passing::Filter::Null)
Provides: perl(Message::Passing::Filter::T)
Provides: perl(Message::Passing::Filter::ToLogstash)
Provides: perl(Message::Passing::Input::FileTail)
Provides: perl(Message::Passing::Input::Null)
Provides: perl(Message::Passing::Input::STDIN)
Provides: perl(Message::Passing::Input::Socket::UDP)
Provides: perl(Message::Passing::Output::Callback)
Provides: perl(Message::Passing::Output::File)
Provides: perl(Message::Passing::Output::IO::Handle)
Provides: perl(Message::Passing::Output::Null)
Provides: perl(Message::Passing::Output::STDERR)
Provides: perl(Message::Passing::Output::STDOUT)
Provides: perl(Message::Passing::Output::Socket::UDP)
Provides: perl(Message::Passing::Output::Test)
Provides: perl(Message::Passing::Role::CLIComponent)
Provides: perl(Message::Passing::Role::ConnectionManager)
Provides: perl(Message::Passing::Role::Crypt::CBC)
Provides: perl(Message::Passing::Role::Filter)
Provides: perl(Message::Passing::Role::HasAConnection)
Provides: perl(Message::Passing::Role::HasErrorChain)
Provides: perl(Message::Passing::Role::HasHostnameAndPort)
Provides: perl(Message::Passing::Role::HasTimeoutAndReconnectAfter)
Provides: perl(Message::Passing::Role::HasUsernameAndPassword)
Provides: perl(Message::Passing::Role::Input)
Provides: perl(Message::Passing::Role::Output)
Provides: perl(Message::Passing::Role::Script)
%undefine __perllib_provides
Recommends: perl(Linux::IO_Prio) >= 0.30.0
%{perl_requires}
%description
A library for building high performance, loosely coupled and
reliable/resilient applications, structured as small services which
communicate over the network by passing messages.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
PERL_USE_UNSAFE_INC=1 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 TODO
%changelog