!57 [sync] PR-56: move mosquitto_dynamic_security into main package

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-11-12 02:50:27 +00:00 committed by Gitee
commit d51c8268b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: mosquitto Name: mosquitto
Version: 2.0.20 Version: 2.0.20
Release: 1 Release: 2
Summary: Open Source MQTT v3.1/v3.1.1 Broker Summary: Open Source MQTT v3.1/v3.1.1 Broker
License: EPL-1.0 License: EPL-1.0
URL: https://mosquitto.org/ URL: https://mosquitto.org/
@ -12,9 +12,8 @@ BuildRequires: systemd-devel cjson-devel
BuildRequires: cmake libxslt BuildRequires: cmake libxslt
Provides: bundled(uthash) Provides: bundled(uthash)
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): systemd Conflicts: mosquitto-devel < 2.0.20-2
Requires(preun): systemd %{?systemd_requires}
Requires(postun): systemd
%description %description
Mosquitto is an open source message broker that implements the MQ Telemetry 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 Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method
@ -49,8 +48,6 @@ DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}"
mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 service/systemd/%{name}.service.notify %{buildroot}%{_unitdir}/%{name}.service install -p -m 0644 service/systemd/%{name}.service.notify %{buildroot}%{_unitdir}/%{name}.service
%check
%pre %pre
getent group %{name} >/dev/null || groupadd -r %{name} getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \ getent passwd %{name} >/dev/null || \
@ -60,14 +57,12 @@ exit 0
%post %post
%systemd_post %{name}.service %systemd_post %{name}.service
/sbin/ldconfig
%preun %preun
%systemd_preun %{name}.service %systemd_preun %{name}.service
%postun %postun
%systemd_postun_with_restart %{name}.service %systemd_postun_with_restart %{name}.service
/sbin/ldconfig
%files %files
%license LICENSE.txt %license LICENSE.txt
@ -75,6 +70,7 @@ exit 0
%{_bindir}/* %{_bindir}/*
%{_sbindir}/* %{_sbindir}/*
%{_libdir}/*.so.* %{_libdir}/*.so.*
%{_libdir}/mosquitto_dynamic_security.so
%dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config%{_sysconfdir}/%{name}/*.example %config%{_sysconfdir}/%{name}/*.example
@ -84,11 +80,14 @@ exit 0
%files devel %files devel
%{_includedir}/*.h %{_includedir}/*.h
%{_libdir}/*.so %{_libdir}/libmosquitto*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*.3.* %{_mandir}/man3/*.3.*
%changelog %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 * Mon Nov 04 2024 yaoxin <yao_xin001@hoperun.com> - 2.0.20-1
- Update to 2.0.20 - Update to 2.0.20
* Fix QoS 1 / QoS 2 publish incorrectly returning "no subscribers". Closes #3128. * Fix QoS 1 / QoS 2 publish incorrectly returning "no subscribers". Closes #3128.