mosquitto/mosquitto.spec

134 lines
4.6 KiB
RPMSpec
Raw Permalink Normal View History

2021-09-12 17:16:35 +08:00
Name: mosquitto
Version: 2.0.20
Release: 2
2021-09-12 17:16:35 +08:00
Summary: Open Source MQTT v3.1/v3.1.1 Broker
2022-05-09 21:01:39 +08:00
License: EPL-1.0
URL: https://mosquitto.org/
Source0: https://mosquitto.org/files/source/%{name}-%{version}.tar.gz
2021-09-30 14:42:32 +08:00
Patch0001: add-usage-output.patch
2021-09-30 15:50:35 +08:00
Patch0002: fix-usage-exit-code.patch
2021-09-12 17:16:35 +08:00
BuildRequires: c-ares-devel gcc-c++ libuuid-devel libwebsockets-devel openssl-devel
2023-05-10 15:47:34 +08:00
BuildRequires: systemd-devel cjson-devel
BuildRequires: cmake libxslt
2021-09-12 17:16:35 +08:00
Provides: bundled(uthash)
Requires(pre): shadow-utils
Conflicts: mosquitto-devel < 2.0.20-2
%{?systemd_requires}
2021-09-12 17:16:35 +08:00
%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
2021-09-12 17:16:35 +08:00
%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}"
2021-09-12 17:16:35 +08:00
%install
DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}"
2021-09-12 17:16:35 +08:00
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
2023-05-10 15:47:34 +08:00
%doc ChangeLog.txt CONTRIBUTING.md README.md
2021-09-12 17:16:35 +08:00
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/*.so.*
%{_libdir}/mosquitto_dynamic_security.so
2021-09-12 17:16:35 +08:00
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config%{_sysconfdir}/%{name}/*.example
%{_unitdir}/%{name}.service
%{_mandir}/man*/%{name}*
%{_mandir}/man7/mqtt.7.*
2021-09-12 17:16:35 +08:00
%files devel
%{_includedir}/*.h
%{_libdir}/libmosquitto*.so
2021-09-12 17:16:35 +08:00
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*.3.*
%changelog
* Tue Nov 12 2024 Funda Wang <fundawang@yeah.net> - 2.0.20-2
- move mosquitto_dynamic_security into main package
* Mon Nov 04 2024 yaoxin <yao_xin001@hoperun.com> - 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 <yao_xin001@hoperun.com> - 2.0.16-1
- Update to 2.0.16 for fix CVE-2021-34431,CVE-2023-28366 and CVE-2023-3592
2023-05-10 15:47:34 +08:00
* Wed May 10 2023 Ge Wang <wang__ge@126.com> - 2.0.15-1
- Update to version 2.0.15
2022-05-09 21:01:39 +08:00
* Mon May 9 2022 caodongxia <caodongxia@h-partners.com> - 1.6.15-7
- License compliance rectification
* Thu Feb 24 2022 yaoxin <yaoxin30@huawei.com> - 1.6.15-6
- Fix CVE-2021-34432 and modify the CVE-2021-41039.patch.
2021-12-30 17:03:02 +08:00
* Thu Dec 30 2021 houyingchao <houyingchao@huawei.com> - 1.6.15-5
- Fix CVE-2021-41039
2021-09-30 15:50:35 +08:00
* Thu Sep 30 2021 lingsheng <lingsheng@huawei.com> - 1.6.15-4
- fix usage exit code
2021-09-30 14:42:32 +08:00
* Thu Sep 30 2021 lingsheng <lingsheng@huawei.com> - 1.6.15-3
- add usage output
* Fri Sep 24 2021 zhengyaohui <zhengyaohui1@huawei.com> - 1.6.15-2
2021-09-24 15:43:14 +08:00
- add buildrequires make
2021-09-12 17:16:35 +08:00
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 1.6.15-1
- package init