Name: mosquitto Version: 2.0.20 Release: 2 Summary: Open Source MQTT v3.1/v3.1.1 Broker License: EPL-1.0 URL: https://mosquitto.org/ Source0: https://mosquitto.org/files/source/%{name}-%{version}.tar.gz Patch0001: add-usage-output.patch Patch0002: fix-usage-exit-code.patch BuildRequires: c-ares-devel gcc-c++ libuuid-devel libwebsockets-devel openssl-devel BuildRequires: systemd-devel cjson-devel BuildRequires: cmake libxslt Provides: bundled(uthash) Requires(pre): shadow-utils Conflicts: mosquitto-devel < 2.0.20-2 %{?systemd_requires} %description Mosquitto is an open source message broker that implements the MQ Telemetry Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method of carrying out messaging using a publish/subscribe model. This makes it suitable for "machine to machine" messaging such as with low power sensors or mobile devices such as phones, embedded computers or micro-controllers like the Arduino. %package devel Requires: %{name} = %{version}-%{release} Summary: Development files for %{name} %description devel Development headers and libraries for %{name} %prep %autosetup -p1 sed -i "s|(INSTALL) -s|(INSTALL)|g" lib/Makefile src/Makefile client/Makefile sed -i "s/websockets_shared/websockets/" src/CMakeLists.txt %build %cmake -B %{__cmake_builddir} \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \ -DWITH_WEBSOCKETS=ON \ -DWITH_SYSTEMD=ON \ -DWITH_SRV=ON \ -DWITH_TLS=ON %__cmake --build "%{__cmake_builddir}" %install DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}" mkdir -p %{buildroot}%{_unitdir} install -p -m 0644 service/systemd/%{name}.service.notify %{buildroot}%{_unitdir}/%{name}.service %pre getent group %{name} >/dev/null || groupadd -r %{name} getent passwd %{name} >/dev/null || \ useradd -r -g %{name} -d %{_sysconfdir}/%{name} -s /sbin/nologin \ -c "Mosquitto Broker" %{name} exit 0 %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE.txt %doc ChangeLog.txt CONTRIBUTING.md README.md %{_bindir}/* %{_sbindir}/* %{_libdir}/*.so.* %{_libdir}/mosquitto_dynamic_security.so %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %config%{_sysconfdir}/%{name}/*.example %{_unitdir}/%{name}.service %{_mandir}/man*/%{name}* %{_mandir}/man7/mqtt.7.* %files devel %{_includedir}/*.h %{_libdir}/libmosquitto*.so %{_libdir}/pkgconfig/*.pc %{_mandir}/man3/*.3.* %changelog * Tue Nov 12 2024 Funda Wang - 2.0.20-2 - move mosquitto_dynamic_security into main package * Mon Nov 04 2024 yaoxin - 2.0.20-1 - Update to 2.0.20 * Fix QoS 1 / QoS 2 publish incorrectly returning "no subscribers". Closes #3128. * Open files with appropriate access on Windows. Closes #3119. * Don't allow invalid response topic values. * Fix some strict protocol compliance issues. Closes #3052. * Fix cmake build on OS X. Closes #3125. * Fix build on NetBSD * Fix mismatched subscribe/unsubscribe with normal/shared topics. * Fix crash on bridge using remapped topic being sent a crafted packet. * Don't allow SUBACK with missing reason codes in client library. * Fix crash on subscribe under certain unlikely conditions. Closes #2885. Closes #2881. * Fix mosquitto_rr not honouring -R. Closes #2893. * Fix max_queued_messages 0 stopping clients from receiving messages. Closes #2879. * Fix max_inflight_messages not being set correctly. Closes #2876. * Fix mosquitto_passwd -U backup file creation. Closes #2873. * Wed Sep 13 2023 yaoxin - 2.0.16-1 - Update to 2.0.16 for fix CVE-2021-34431,CVE-2023-28366 and CVE-2023-3592 * Wed May 10 2023 Ge Wang - 2.0.15-1 - Update to version 2.0.15 * Mon May 9 2022 caodongxia - 1.6.15-7 - License compliance rectification * Thu Feb 24 2022 yaoxin - 1.6.15-6 - Fix CVE-2021-34432 and modify the CVE-2021-41039.patch. * Thu Dec 30 2021 houyingchao - 1.6.15-5 - Fix CVE-2021-41039 * Thu Sep 30 2021 lingsheng - 1.6.15-4 - fix usage exit code * Thu Sep 30 2021 lingsheng - 1.6.15-3 - add usage output * Fri Sep 24 2021 zhengyaohui - 1.6.15-2 - add buildrequires make * Tue Sep 7 2021 zhengyaohui - 1.6.15-1 - package init