forked from pool/paho-mqtt-c
* Mainly a service release. Issues fixed: https://github.com/eclipse-paho/paho.mqtt.c/milestone/21?closed=1 * Unix domain socket support * HTTP proxy improvements * the environment variable PAHO_C_CLIENT_USE_HTTP_PROXY must be set to TRUE for http_proxy environment variable to be used * the http_proxy environment variable to be read is lower case only * the no_proxy environment variable can be set to exclude hosts from using an environment set proxy - Fix builds with GCC15 (gh#eclipse-paho/paho.mqtt.c#1576) * fix-build-gcc15.patch - Ensure argument for isprint and isxdigit is in the correct range (gh#eclipse-paho/paho.mqtt.c#1565) * fix-char-range.patch - Fix handling of MQTT 5 reason codes (gh#eclipse-paho/paho.mqtt.c#1596) * fix-reason-code-handling.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/paho-mqtt-c?expand=0&rev=18
80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package paho-mqtt-c
|
|
#
|
|
# 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 sover 1
|
|
Name: paho-mqtt-c
|
|
Version: 1.3.14
|
|
Release: 0
|
|
Summary: MQTT C Client
|
|
License: BSD-3-Clause AND EPL-1.0
|
|
URL: https://eclipse.org/paho/clients/c/
|
|
Source: https://github.com/eclipse/paho.mqtt.c/archive/v%{version}.tar.gz#/paho.mqtt.c-%{version}.tar.gz
|
|
Patch1: fix-build-gcc15.patch
|
|
Patch2: fix-reason-code-handling.patch
|
|
Patch3: fix-char-range.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc
|
|
BuildRequires: openssl-devel
|
|
Requires: openssl
|
|
|
|
%description
|
|
The Paho MQTT C Client is a fully featured MQTT client written in ANSI standard C.
|
|
|
|
%package -n libpaho-mqtt%{sover}
|
|
Summary: Library implementing the MQTT client
|
|
|
|
%description -n libpaho-mqtt%{sover}
|
|
The Paho MQTT C Client is a fully featured MQTT client written in ANSI standard C.
|
|
C was chosen rather than C++ to maximize portability. A C++ API over this library is also available in Paho.
|
|
|
|
%package -n libpaho-mqtt-devel
|
|
Summary: Development files for MQTT C Client library
|
|
Requires: libpaho-mqtt%{sover} = %{version}
|
|
|
|
%description -n libpaho-mqtt-devel
|
|
Development files for the the Paho MQTT C Client.
|
|
|
|
%prep
|
|
%autosetup -p1 -n paho.mqtt.c-%{version}
|
|
|
|
%build
|
|
%cmake -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=FALSE -DPAHO_ENABLE_TESTING=FALSE -DPAHO_ENABLE_CPACK=FALSE ..
|
|
%make_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%post -n libpaho-mqtt%{sover} -p /sbin/ldconfig
|
|
%postun -n libpaho-mqtt%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libpaho-mqtt%{sover}
|
|
%license LICENSE edl-v10 epl-v20
|
|
%{_libdir}/*.so.%{version}
|
|
%{_libdir}/*.so.1
|
|
|
|
%files -n libpaho-mqtt-devel
|
|
%doc README.md
|
|
%{_bindir}/MQTTVersion
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_docdir}/*
|
|
%{_libdir}/cmake/*
|
|
|
|
%changelog
|