88 lines
3.1 KiB
RPMSpec
88 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package perl-Net-Stomp
|
|
#
|
|
# 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 Net-Stomp
|
|
Name: perl-Net-Stomp
|
|
Version: 0.620.0
|
|
Release: 0
|
|
%define cpan_version 0.62
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Streaming Text Orientated Messaging Protocol Client
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAKKAR/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Accessor::Fast)
|
|
BuildRequires: perl(Log::Any) >= 1.707
|
|
BuildRequires: perl(Log::Any::Adapter::TAP) >= 0.3.3
|
|
BuildRequires: perl(Module::Build) >= 0.42
|
|
BuildRequires: perl(Test::Deep)
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::NiceDump) >= 1.0.0
|
|
Requires: perl(Class::Accessor::Fast)
|
|
Requires: perl(Log::Any) >= 1.707
|
|
Provides: perl(Net::Stomp) = %{version}
|
|
Provides: perl(Net::Stomp::Frame) = 0.61
|
|
Provides: perl(Net::Stomp::StupidLogger) = 0.61
|
|
%undefine __perllib_provides
|
|
Recommends: perl(IO::Socket::IP) >= 0.20
|
|
Recommends: perl(IO::Socket::SSL) >= 1.75
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module allows you to write a Stomp client. Stomp is the Streaming Text
|
|
Orientated Messaging Protocol (or the Protocol Briefly Known as TTMP and
|
|
Represented by the symbol :ttmp). It's a simple and easy to implement
|
|
protocol for working with Message Orientated Middleware from any language.
|
|
Net::Stomp is useful for talking to Apache ActiveMQ, an open source (Apache
|
|
2.0 licensed) Java Message Service 1.1 (JMS) message broker packed with
|
|
many enterprise features.
|
|
|
|
A Stomp frame consists of a command, a series of headers and a body - see
|
|
Net::Stomp::Frame for more details.
|
|
|
|
For details on the protocol see https://stomp.github.io/.
|
|
|
|
In long-lived processes, you can use a new 'Net::Stomp' object to send each
|
|
message, but it's more polite to the broker to keep a single object around
|
|
and re-use it for multiple messages; this reduce the number of TCP
|
|
connections that have to be established. 'Net::Stomp' tries very hard to
|
|
re-connect whenever something goes wrong.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc CHANGES examples README
|
|
|
|
%changelog
|