77 lines
2.9 KiB
RPMSpec
77 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Net-MQTT-Simple
|
|
#
|
|
# Copyright (c) 2025 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-MQTT-Simple
|
|
Name: perl-Net-MQTT-Simple
|
|
Version: 1.320.0
|
|
Release: 0
|
|
# 1.32 -> normalize -> 1.320.0
|
|
%define cpan_version 1.32
|
|
#Upstream: This software may be redistributed under the terms of the GPL, LGPL, modified BSD, or Artistic license, or any of the other OSI approved licenses listed at http://www.opensource.org/licenses/alphabetical. Distribution is allowed under all of these licenses, or any smaller subset of multiple or just one of these licenses. When using a packaged version, please refer to the package metadata to see under which license terms it was distributed. Alternatively, a distributor may choose to replace the LICENSE section of the documentation and/or include a LICENSE file to reflect the license(s) they chose to redistribute under.
|
|
License: BSD-1-Clause
|
|
Summary: Minimal MQTT version 3 interface
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/J/JU/JUERD/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(Net::MQTT::Simple) = %{version}
|
|
Provides: perl(Net::MQTT::Simple::SSL)
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module consists of only one file and has no dependencies except core
|
|
Perl modules, making it suitable for embedded installations where CPAN
|
|
installers are unavailable and resources are limited.
|
|
|
|
Only basic MQTT functionality is provided; if you need more, you'll have to
|
|
use the full-featured Net::MQTT instead.
|
|
|
|
Connections are set up on demand, automatically reconnecting to the server
|
|
if a previous connection had been lost.
|
|
|
|
Because sensor scripts often run unattended, connection failures will
|
|
result in warnings (on STDERR if you didn't override that) without throwing
|
|
an exception.
|
|
|
|
Please refer to Net::MQTT::Simple::SSL for more information about encrypted
|
|
and authenticated connections.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
|
|
|
%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
|
|
|
|
%changelog
|