3 %bcond_without tests # do not perform "make test"
6 %define pnam MQTT-Simple
7 Summary: Net::MQTT::Simple - Minimal MQTT version 3 interface
8 Summary(pl.UTF-8): Net::MQTT::Simple - minimalistyczny interfejs do MQTT w wersji 3
9 Name: perl-Net-MQTT-Simple
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: a2c6fa5b0f4eba18da80b8d68f798768
17 URL: http://search.cpan.org/dist/Net-MQTT-Simple/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl(Test::More)
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module consists of only one file and has no dependencies except
28 core Perl modules, making it suitable for embedded installations where
29 CPAN installers are unavailable and resources are limited.
31 Only basic MQTT functionality is provided; if you need more, you'll
32 have to use the full-featured Net::MQTT instead.
34 Connections are set up on demand, automatically reconnecting to the
35 server if a previous connection had been lost.
37 Because sensor scripts often run unattended, connection failures will
38 result in warnings (on STDERR if you didn't override that) without
39 throwing an exception.
41 Please refer to Net::MQTT::Simple::SSL for more information about
42 encrypted and authenticated connections.
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %dir %{perl_vendorlib}/Net/MQTT/Simple
68 %{perl_vendorlib}/Net/MQTT/Simple.pm
69 %{perl_vendorlib}/Net/MQTT/Simple/SSL.pm
70 %attr(755,root,root) %{_bindir}/mqtt-simple