From 631720a2d0cbb4fb6651931a4f2baa88830d81caf8a2f31c6b57cd73cf578ab7 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Tue, 16 Apr 2024 17:59:01 +0000 Subject: [PATCH 1/2] Accepting request 1167071 from home:badshah400:branches:Base:System * Update to version 0.21. * Drop python3-shebang.patch: no longer required since python3_fix_shebang is used anyway. * New BuildRequires: cmake, pkgconfig(bash-completion), python3-argparse-manpage, python3-pylint, python3-shtab. * New Requires: bash-completion, python3-gobject. * Build completions for zsh shell and split off new package powerprofilesctl-zsh-completion to be automatically installed when both zsh and power-profiles-daemon are installed. OBS-URL: https://build.opensuse.org/request/show/1167071 OBS-URL: https://build.opensuse.org/package/show/Base:System/power-profiles-daemon?expand=0&rev=26 --- power-profiles-daemon-0.20.tar.bz2 | 3 --- power-profiles-daemon-0.21.tar.bz2 | 3 +++ power-profiles-daemon.changes | 24 ++++++++++++++++++++++++ power-profiles-daemon.spec | 30 ++++++++++++++++++++++++++---- python3-shebang.patch | 10 ---------- 5 files changed, 53 insertions(+), 17 deletions(-) delete mode 100644 power-profiles-daemon-0.20.tar.bz2 create mode 100644 power-profiles-daemon-0.21.tar.bz2 delete mode 100644 python3-shebang.patch diff --git a/power-profiles-daemon-0.20.tar.bz2 b/power-profiles-daemon-0.20.tar.bz2 deleted file mode 100644 index 228580e..0000000 --- a/power-profiles-daemon-0.20.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24a0bf1a3012c4f49fbe146fed6bce9fbb7b20c92e4123690ff727a376cc3b6c -size 58388 diff --git a/power-profiles-daemon-0.21.tar.bz2 b/power-profiles-daemon-0.21.tar.bz2 new file mode 100644 index 0000000..2e948cb --- /dev/null +++ b/power-profiles-daemon-0.21.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c61a2350e58d51d4d6e58a61cf2aaa9b307ce42f16c40c4ece0bf1ed6d020506 +size 63984 diff --git a/power-profiles-daemon.changes b/power-profiles-daemon.changes index 7f9c984..7efd961 100644 --- a/power-profiles-daemon.changes +++ b/power-profiles-daemon.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Apr 9 10:48:35 UTC 2024 - Atri Bhattacharya + +- Update to version 0.21: + * power-profiles-daemon is now battery-state aware and some + drivers use a more power efficient state when using the + balanced profile on battery. + * Various fixes for the powerprofilesctl command line tool when + using the launch or version commands. + * Generate manual page for powerprofilesctl and shell + completions. + * Improved daemon command line interface for debugging, see + `--help-debug` for more information. + * More restrictive systemd service lockdown settings. + * Various code optimizations. +- Drop python3-shebang.patch: no longer required since + %python3_fix_shebang is used anyway. +- New BuildRequires: cmake, pkgconfig(bash-completion), + python3-argparse-manpage, python3-pylint, python3-shtab. +- New Requires: bash-completion, python3-gobject. +- Build completions for zsh shell and split off new package + powerprofilesctl-zsh-completion to be automatically installed + when both zsh and power-profiles-daemon are installed. + ------------------------------------------------------------------- Sat Mar 30 20:01:51 UTC 2024 - Florian "sp1rit" diff --git a/power-profiles-daemon.spec b/power-profiles-daemon.spec index 8ea154d..72547f0 100644 --- a/power-profiles-daemon.spec +++ b/power-profiles-daemon.spec @@ -17,7 +17,7 @@ Name: power-profiles-daemon -Version: 0.20 +Version: 0.21 Release: 0 Summary: Power profiles handling over D-Bus License: GPL-3.0-or-later @@ -25,13 +25,16 @@ 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: cmake BuildRequires: gtk-doc BuildRequires: meson >= 0.59.0 BuildRequires: pkgconfig +BuildRequires: python3-argparse-manpage BuildRequires: python3-dbusmock +BuildRequires: python3-pylint +BuildRequires: python3-shtab +BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) @@ -41,7 +44,9 @@ BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(umockdev-1.0) BuildRequires: pkgconfig(upower-glib) +Requires: bash-completion Requires: polkit +Requires: python3-gobject %description power-profiles-daemon offers to modify system behaviour based upon user-selected @@ -55,6 +60,16 @@ BuildArch: noarch %description doc This package provides documentation for %{name}. +%package -n powerprofilesctl-zsh-completion +Summary: Zsh shell completion for powerprofilesctl +Requires: %{name} = %{version} +Requires: zsh +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description -n powerprofilesctl-zsh-completion +This package provides zsh shell completions for powerprofilesctl. + %prep %autosetup -p1 @@ -63,12 +78,13 @@ This package provides documentation for %{name}. -Dsystemdsystemunitdir=%{_unitdir} \ -Dgtk_doc=true \ -Dtests=true \ + -Dzshcomp=%{_datadir}/zsh/site-functions/ \ %{nil} %meson_build %install %meson_install -%python3_fix_shebang +%{python3_fix_shebang} %check %meson_test @@ -91,11 +107,13 @@ This package provides documentation for %{name}. %{_bindir}/powerprofilesctl %{_libexecdir}/%{name} %{_unitdir}/%{name}.service +%{_datadir}/bash-completion/completions/powerprofilesctl %{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf %{_datadir}/dbus-1/system.d/org.freedesktop.UPower.PowerProfiles.conf %{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service %{_datadir}/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service %{_datadir}/polkit-1/actions/power-profiles-daemon.policy +%{_mandir}/man1/powerprofilesctl.1%{?ext_man} %ghost %dir %{_localstatedir}/lib/%{name} %files doc @@ -103,4 +121,8 @@ This package provides documentation for %{name}. %dir %{_datadir}/gtk-doc/html/ %{_datadir}/gtk-doc/html/%{name}/ +%files -n powerprofilesctl-zsh-completion +%dir %{_datadir}/zsh/site-functions +%{_datadir}/zsh/site-functions/* + %changelog diff --git a/python3-shebang.patch b/python3-shebang.patch deleted file mode 100644 index f89bffc..0000000 --- a/python3-shebang.patch +++ /dev/null @@ -1,10 +0,0 @@ -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 From 334b97b783cf782ae0c6760b5158e45eec71d741b01870264f237b1f7336a5c4 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Wed, 17 Apr 2024 10:24:17 +0000 Subject: [PATCH 2/2] Accepting request 1168506 from home:badshah400:branches:Base:System * Drop BuildRequires on python-pylint by disabling pylint option during configure. * Split out bash-completion into own package: powerprofilesctl-bash-completion. OBS-URL: https://build.opensuse.org/request/show/1168506 OBS-URL: https://build.opensuse.org/package/show/Base:System/power-profiles-daemon?expand=0&rev=27 --- power-profiles-daemon.changes | 8 ++++++++ power-profiles-daemon.spec | 17 ++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/power-profiles-daemon.changes b/power-profiles-daemon.changes index 7efd961..36dd373 100644 --- a/power-profiles-daemon.changes +++ b/power-profiles-daemon.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Apr 17 10:01:27 UTC 2024 - Atri Bhattacharya + +- Drop BuildRequires on python-pylint by disabling pylint option + during configure. +- Split out bash-completion into own package: + powerprofilesctl-bash-completion. + ------------------------------------------------------------------- Tue Apr 9 10:48:35 UTC 2024 - Atri Bhattacharya diff --git a/power-profiles-daemon.spec b/power-profiles-daemon.spec index 72547f0..ddb8213 100644 --- a/power-profiles-daemon.spec +++ b/power-profiles-daemon.spec @@ -32,7 +32,6 @@ BuildRequires: meson >= 0.59.0 BuildRequires: pkgconfig BuildRequires: python3-argparse-manpage BuildRequires: python3-dbusmock -BuildRequires: python3-pylint BuildRequires: python3-shtab BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(gio-2.0) @@ -44,7 +43,6 @@ BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(umockdev-1.0) BuildRequires: pkgconfig(upower-glib) -Requires: bash-completion Requires: polkit Requires: python3-gobject @@ -60,6 +58,16 @@ BuildArch: noarch %description doc This package provides documentation for %{name}. +%package -n powerprofilesctl-bash-completion +Summary: Bash completion for powerprofilesctl +Requires: %{name} = %{version} +Requires: bash-completion +Supplements: (%{name} and bash-completion) +BuildArch: noarch + +%description -n powerprofilesctl-bash-completion +This package provides bash shell completions for powerprofilesctl. + %package -n powerprofilesctl-zsh-completion Summary: Zsh shell completion for powerprofilesctl Requires: %{name} = %{version} @@ -77,6 +85,7 @@ This package provides zsh shell completions for powerprofilesctl. %meson \ -Dsystemdsystemunitdir=%{_unitdir} \ -Dgtk_doc=true \ + -Dpylint=disabled \ -Dtests=true \ -Dzshcomp=%{_datadir}/zsh/site-functions/ \ %{nil} @@ -107,7 +116,6 @@ This package provides zsh shell completions for powerprofilesctl. %{_bindir}/powerprofilesctl %{_libexecdir}/%{name} %{_unitdir}/%{name}.service -%{_datadir}/bash-completion/completions/powerprofilesctl %{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf %{_datadir}/dbus-1/system.d/org.freedesktop.UPower.PowerProfiles.conf %{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service @@ -121,6 +129,9 @@ This package provides zsh shell completions for powerprofilesctl. %dir %{_datadir}/gtk-doc/html/ %{_datadir}/gtk-doc/html/%{name}/ +%files -n powerprofilesctl-bash-completion +%{_datadir}/bash-completion/completions/* + %files -n powerprofilesctl-zsh-completion %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/*