diff --git a/power-profiles-daemon-0.13.tar.bz2 b/power-profiles-daemon-0.13.tar.bz2 deleted file mode 100644 index a9ba649..0000000 --- a/power-profiles-daemon-0.13.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9fef0a3e1b76e6c0f551841d4a9fef36e6aae047d5279cfc60b833d80fd2a8b7 -size 49079 diff --git a/power-profiles-daemon-0.20.tar.bz2 b/power-profiles-daemon-0.20.tar.bz2 new file mode 100644 index 0000000..228580e --- /dev/null +++ b/power-profiles-daemon-0.20.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24a0bf1a3012c4f49fbe146fed6bce9fbb7b20c92e4123690ff727a376cc3b6c +size 58388 diff --git a/power-profiles-daemon.changes b/power-profiles-daemon.changes index 741d209..6a5344b 100644 --- a/power-profiles-daemon.changes +++ b/power-profiles-daemon.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Wed Mar 13 10:12:35 UTC 2024 - pgajdos@suse.com + +- remove dependency on /usr/bin/python3 using + %python3_fix_shebang macro, [bsc#1212476] + +------------------------------------------------------------------- +Wed Feb 21 12:09:15 UTC 2024 - Enrico Belleri + +- Remove duplicate DBus service files net.hadess.PowerProfiles + +------------------------------------------------------------------- +Thu Feb 15 05:53:07 UTC 2024 - Enrico Belleri + +- Update to version 0.20: + * Service has new name 'org.freedesktop.UPower.PowerProfiles' + * Allow multiple power-profiles-daemon drivers to load simultaneously + * amdgpu panel power savings which uses dedicated hardware in systems with + integrated Radeon graphics to decrease panel power consumption when the + system is on battery +- Add python3-shebang.patch: + * resolve env-script-interpreter error + ------------------------------------------------------------------- Wed Apr 26 15:19:01 UTC 2023 - Enrico Belleri diff --git a/power-profiles-daemon.spec b/power-profiles-daemon.spec index b53fe85..8ded3e7 100644 --- a/power-profiles-daemon.spec +++ b/power-profiles-daemon.spec @@ -1,7 +1,7 @@ # # spec file for package power-profiles-daemon # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,27 +17,30 @@ Name: power-profiles-daemon -Version: 0.13 +Version: 0.20 Release: 0 Summary: Power profiles handling over D-Bus License: GPL-3.0-or-later -URL: https://gitlab.freedesktop.org/hadess/power-profiles-daemon +URL: https://gitlab.freedesktop.org/upower/power-profiles-daemon Source: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2 # PATCH-FEATURE-OPENSUSE hold-profile-hardening.patch boo#1189900 -- Hardening of HoldProfile D-Bus method Patch0: hold-profile-hardening.patch +Patch1: python3-shebang.patch BuildRequires: c_compiler BuildRequires: gtk-doc -BuildRequires: meson >= 0.54.0 +BuildRequires: meson >= 0.59.0 BuildRequires: pkgconfig BuildRequires: python3-dbusmock BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gio-unix-2.0) +BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gudev-1.0) >= 234 -BuildRequires: pkgconfig(polkit-gobject-1) >= 0.114 +BuildRequires: pkgconfig(polkit-gobject-1) >= 0.91 BuildRequires: pkgconfig(systemd) -BuildRequires: pkgconfig(upower-glib) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(umockdev-1.0) +BuildRequires: pkgconfig(upower-glib) Requires: polkit %description @@ -65,6 +68,9 @@ This package provides documentation for %{name}. %install %meson_install +rm -f %{buildroot}%{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf +rm -f %{buildroot}%{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service +%python3_fix_shebang %check %meson_test @@ -87,9 +93,9 @@ This package provides documentation for %{name}. %{_bindir}/powerprofilesctl %{_libexecdir}/%{name} %{_unitdir}/%{name}.service -%{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf -%{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service -%{_datadir}/polkit-1/actions/net.hadess.PowerProfiles.policy +%{_datadir}/dbus-1/system.d/org.freedesktop.UPower.PowerProfiles.conf +%{_datadir}/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service +%{_datadir}/polkit-1/actions/power-profiles-daemon.policy %ghost %dir %{_localstatedir}/lib/%{name} %files doc diff --git a/python3-shebang.patch b/python3-shebang.patch new file mode 100644 index 0000000..f89bffc --- /dev/null +++ b/python3-shebang.patch @@ -0,0 +1,10 @@ +Index: power-profiles-daemon-0.20/src/powerprofilesctl +=================================================================== +--- power-profiles-daemon-0.20.orig/src/powerprofilesctl ++++ power-profiles-daemon-0.20/src/powerprofilesctl +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python3 ++#!/usr/bin/python3 + + import argparse + import signal