update to 50.0 [release 50.0-1mamba;Sun Mar 15 2026]

This commit is contained in:
2026-03-16 09:58:17 +01:00
parent 8c4e36aaec
commit 2915201aad
2 changed files with 9 additions and 59 deletions

View File

@@ -1,30 +0,0 @@
--- src/gpm-manager.c
+++ src/gpm-manager.c
@@ -43,6 +43,10 @@
#include <libupower-glib/upower.h>
#include <libnotify/notify.h>
+#ifndef NOTIFY_CHECK_VERSION
+#define NOTIFY_CHECK_VERSION(x,y,z) 0
+#endif
+
#include "egg-debug.h"
#include "egg-console-kit.h"
@@ -480,12 +484,16 @@
/* close any existing notification of this class */
gpm_manager_notify_close (manager, *notification_class);
+#if NOTIFY_CHECK_VERSION (0, 7, 0)
+ notification = notify_notification_new (title, message, icon);
+#else
/* if the status icon is hidden, don't point at it */
if (manager->priv->status_icon != NULL &&
gtk_status_icon_is_embedded (manager->priv->status_icon))
notification = notify_notification_new_with_status_icon (title, message, icon, manager->priv->status_icon);
else
notification = notify_notification_new (title, message, icon, NULL);
+#endif
notify_notification_set_timeout (notification, timeout);
notify_notification_set_urgency (notification, urgency);
g_signal_connect (notification, "closed", G_CALLBACK (gpm_manager_notification_closed_cb), notification_class);

View File

@@ -1,21 +1,21 @@
%define majver %(echo %version | cut -d. -f1)
Name: gnome-power-manager
Version: 43.0
Version: 50.0
Release: 1mamba
Summary: A session daemon for the GNOME desktop environment that makes it easy to manage your laptop or desktop system
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://projects.gnome.org/gnome-power-manager/
Source: https://download.gnome.org/sources/gnome-power-manager/%{majver}/gnome-power-manager-%{version}.tar.xz
Patch0: %{name}-2.32.0-libnotify-0.7.patch
Packager: Silvan Calarco <silvan@openmamba.org>
URL: https://gitlab.gnome.org/GNOME/gnome-power-manager
Source: https://gitlab.gnome.org/GNOME/gnome-power-manager.git/%{version}/gnome-power-manager-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcairo-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libgtk-devel
BuildRequires: libpango-devel
BuildRequires: libupower-devel
## AUTOBUILDREQ-END
@@ -24,11 +24,8 @@ BuildRequires: upower-devel >= 0.9.23
%description
A session daemon for the GNOME desktop environment that makes it easy to manage your laptop or desktop system.
%debug_package
%prep
%setup -q
#%patch0 -p0
%build
%meson
@@ -45,26 +42,6 @@ export DESTDIR=%{buildroot}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
gconftool-2 --makefile-install-rule \
/etc/gconf/schemas/gnome-power-manager.schemas &> /dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null
fi
:
%postun
if [ $1 -eq 0 ]; then
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
gconftool-2 --makefile-uninstall-rule \
/etc/gconf/schemas/gnome-power-manager.schemas &> /dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null
fi
:
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/gnome-power-statistics
@@ -79,6 +56,9 @@ fi
#ChangeLog NEWS README
%changelog
* Sun Mar 15 2026 Silvan Calarco <silvan@openmamba.org> 50.0-1mamba
- update to 50.0
* Thu Nov 03 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 43.0-1mamba
- update to 43.0