diff --git a/0002-log-printing-error-correction.patch b/0002-log-printing-error-correction.patch new file mode 100644 index 0000000..ce1adf3 --- /dev/null +++ b/0002-log-printing-error-correction.patch @@ -0,0 +1,26 @@ +From 0659b7e9acda89f6b309fbece65238946170c623 Mon Sep 17 00:00:00 2001 +From: tanyulong2021 +Date: Fri, 29 Jul 2022 11:49:51 +0800 +Subject: [PATCH] log printing error correction + +--- + src/egg-debug.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/egg-debug.c b/src/egg-debug.c +index 2f140f2..96e65d9 100644 +--- a/src/egg-debug.c ++++ b/src/egg-debug.c +@@ -243,7 +243,8 @@ egg_debug_enabled (void) + { + const gchar *env; + env = g_getenv (EGG_VERBOSE); +- return (g_strcmp0 (env, "1") == 0); ++ //return (g_strcmp0 (env, "1") == 0); ++ return 1; + } + + /** +-- +2.33.0 + diff --git a/ukui-power-manager.spec b/ukui-power-manager.spec index 076e9da..4eaa832 100644 --- a/ukui-power-manager.spec +++ b/ukui-power-manager.spec @@ -1,12 +1,13 @@ %define debug_package %{nil} Name: ukui-power-manager Version: 2.0.3 -Release: 9 +Release: 10 Summary: power management tool for the UKUI desktop License: GPL-2.0-or-later and LGPL-2.0-or-later URL: http://www.ukui.org Source0: %{name}-%{version}.tar.gz Patch0: 0001-Update-change-control-copyright-and-fix-the-spelling.patch +Patch1: 0002-log-printing-error-correction.patch BuildRequires: qt5-qtbase-devel,intltool,libcanberra-devel,dbus-glib-devel,libgcrypt-devel,glib2-devel,gtk3-devel,libnotify-devel,libtool, libtool-ltdl,upower-devel,libwnck3-devel,libX11-devel,libXext-devel,perl-XML-Parser,libXrandr-devel,pkg-config,xmlto,yelp-tools,qt5-qtcharts-devel,qt5-qtx11extras-devel,gsettings-qt-devel, gnome-keyring, libgnome-keyring-devel BuildRequires:mate-common >= 1.18 @@ -44,6 +45,7 @@ This package contains the architecture independent files. %prep %setup -q %patch0 -p1 +%patch1 -p1 ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 -enable-introspection --enable-compile-warnings=yes --enable-egl-device --enable-wayland --enable-native-backend @@ -436,6 +438,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Jul 29 2022 tanyulong - 2.0.3-10 +- log printing error correction + * Wed Jun 29 2022 huayadong - 2.0.3-9 - Update change control copyright and fix the spelling