fix issue:NetworkManager-dispatcher.service not enabled when installedduetosystemd_unitsnotdefined

Signed-off-by: gaoxingwang <gaoxingwang1@huawei.com>
This commit is contained in:
gaoxingwang 2023-08-24 20:11:02 +08:00 committed by tmacbb
parent cc17829744
commit b8d2ee507f

View File

@ -18,6 +18,8 @@
%global snap %{?snapshot_dot}%{?git_sha_dot}
%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[1-9][0-9]*\\)\\.[0-9][0-9]*$/\\1/p')
%global systemd_units NetworkManager.service NetworkManager-wait-online.service NetworkManager-dispatcher.service nm-priv-helper.service
%global systemd_units_cloud_setup nm-cloud-setup.service nm-cloud-setup.timer
%bcond_without adsl
%bcond_without bluetooth
@ -49,7 +51,7 @@
Name: NetworkManager
Version: 1.42.8
Epoch: 1
Release: 2
Release: 3
Summary: Network Link Manager and User Applications
License: GPLv2+
URL: https://networkmanager.dev/
@ -409,7 +411,7 @@ fi
/usr/bin/udevadm control --reload-rules || :
/usr/bin/udevadm trigger --subsystem-match=net || :
%systemd_postun NetworkManager.service NetworkManager-wait-online.service NetworkManager-dispatcher.service nm-priv-helper.service
%systemd_postun %{systemd_units}
%ldconfig_scriptlets glib
%ldconfig_scriptlets libnm
@ -545,6 +547,12 @@ fi
%{_datadir}/gtk-doc/html/NetworkManager/*
%changelog
* Thu Aug 24 2023 gaoxingwang <gaoxingwang1@huawei.com> - 1:1.42.8-3
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:NetworkManager-dispatcher.service not enabled when installed due to systemd_units not defined
* Tue Aug 8 2023 gaoxingwang <gaoxingwang1@huawei.com> - 1:1.42.8-2
- Type:requirement
- CVE:NA