From b4f06e205039bb665be2a7fb46453b2fd0eb2ed1 Mon Sep 17 00:00:00 2001 From: cherry530 Date: Tue, 15 Feb 2022 10:15:16 +0800 Subject: [PATCH] fix install warning group wireshark does not exist-using root Signed-off-by: cherry530 --- wireshark.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wireshark.spec b/wireshark.spec index f916b09..cb0f79c 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -5,7 +5,7 @@ Summary: Network traffic analyzer Name: wireshark Version: 3.6.0 -Release: 2 +Release: 3 Epoch: 1 License: GPL+ Url: http://www.wireshark.org/ @@ -145,6 +145,9 @@ install -Dpm 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf touch %{buildroot}%{_bindir}/%{name} find %{buildroot} -type f -name "*.la" -delete +%pre +getent group wireshark >/dev/null || groupadd -r wireshark +exit 0 #%post #%{?ldconfig} #if [ -S /run/udev/control ]; then @@ -192,6 +195,9 @@ find %{buildroot} -type f -name "*.la" -delete %{_mandir}/man?/* %changelog +* Tue Feb 15 2022 xu_ping - 3.6.0-3 +- fix install warning group wireshark does not exist -using root + * Wed Jan 19 2022 Chen Chen - 3.6.0-2 - fix update error for add wireshark-cli Provides&Obsoletes -- Gitee