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..36dd373 100644 --- a/power-profiles-daemon.changes +++ b/power-profiles-daemon.changes @@ -1,3 +1,35 @@ +------------------------------------------------------------------- +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 + +- 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..ddb8213 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,15 @@ 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-shtab +BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(glib-2.0) @@ -42,6 +44,7 @@ BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(umockdev-1.0) BuildRequires: pkgconfig(upower-glib) Requires: polkit +Requires: python3-gobject %description power-profiles-daemon offers to modify system behaviour based upon user-selected @@ -55,6 +58,26 @@ 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} +Requires: zsh +Supplements: (%{name} and zsh) +BuildArch: noarch + +%description -n powerprofilesctl-zsh-completion +This package provides zsh shell completions for powerprofilesctl. + %prep %autosetup -p1 @@ -62,13 +85,15 @@ This package provides documentation for %{name}. %meson \ -Dsystemdsystemunitdir=%{_unitdir} \ -Dgtk_doc=true \ + -Dpylint=disabled \ -Dtests=true \ + -Dzshcomp=%{_datadir}/zsh/site-functions/ \ %{nil} %meson_build %install %meson_install -%python3_fix_shebang +%{python3_fix_shebang} %check %meson_test @@ -96,6 +121,7 @@ This package provides documentation for %{name}. %{_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 +129,11 @@ This package provides documentation for %{name}. %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/* + %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