# # spec file for package perl-Net-MQTT-Simple # # Copyright (c) 2021 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.26 Release: 0 #Upstream: Pick your favourite OSI approved license :) http://www.opensource.org/licenses/alphabetical 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}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros %{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}-%{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 %changelog