fix first install post script issue

This commit is contained in:
dou33 2022-04-19 10:50:00 +08:00
parent f6d49feee5
commit 224bdb9c90

View File

@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: ukui-system-monitor
Version: 1.0.1
Release: 12
Release: 13
Summary: A simple system monitor written in QT
License: GPL-3+ GPL-2+
URL: http://www.ukui.org
@ -74,9 +74,9 @@ pushd qmake-build
popd
%post
setcap "cap_net_admin,cap_net_raw+ep" /usr/bin/ukui-system-monitor
set -e
glib-compile-schemas /usr/share/glib-2.0/schemas/
setcap "cap_net_admin,cap_net_raw+ep" /usr/bin/ukui-system-monitor &> /dev/null || :
set -e &> /dev/null || :
glib-compile-schemas /usr/share/glib-2.0/schemas/ &> /dev/null || :
%clean
rm -rf $RPM_BUILD_ROOT
@ -89,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/glib-2.0/schemas/org.ukui.system-monitor.menu.gschema.xml
%changelog
* Tue Apr 19 2022 douyan <douyan@kylimos.cn> - 1.0.1-13
- fix first install post script issue
* Wed Dec 22 2021 pei-jiankang <peijiankang@kylimos.cn> - 1.0.1-12
- Update changelog