forked from pool/power-profiles-daemon
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
This commit is contained in:
parent
65e062a5d9
commit
631720a2d0
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:24a0bf1a3012c4f49fbe146fed6bce9fbb7b20c92e4123690ff727a376cc3b6c
|
|
||||||
size 58388
|
|
3
power-profiles-daemon-0.21.tar.bz2
Normal file
3
power-profiles-daemon-0.21.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:c61a2350e58d51d4d6e58a61cf2aaa9b307ce42f16c40c4ece0bf1ed6d020506
|
||||||
|
size 63984
|
@ -1,3 +1,27 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 9 10:48:35 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- 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" <sp1rit@disroot.org>
|
Sat Mar 30 20:01:51 UTC 2024 - Florian "sp1rit" <sp1rit@disroot.org>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: power-profiles-daemon
|
Name: power-profiles-daemon
|
||||||
Version: 0.20
|
Version: 0.21
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Power profiles handling over D-Bus
|
Summary: Power profiles handling over D-Bus
|
||||||
License: GPL-3.0-or-later
|
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
|
Source: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
||||||
# PATCH-FEATURE-OPENSUSE hold-profile-hardening.patch boo#1189900 -- Hardening of HoldProfile D-Bus method
|
# PATCH-FEATURE-OPENSUSE hold-profile-hardening.patch boo#1189900 -- Hardening of HoldProfile D-Bus method
|
||||||
Patch0: hold-profile-hardening.patch
|
Patch0: hold-profile-hardening.patch
|
||||||
|
|
||||||
Patch1: python3-shebang.patch
|
|
||||||
BuildRequires: c_compiler
|
BuildRequires: c_compiler
|
||||||
|
BuildRequires: cmake
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: meson >= 0.59.0
|
BuildRequires: meson >= 0.59.0
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python3-argparse-manpage
|
||||||
BuildRequires: python3-dbusmock
|
BuildRequires: python3-dbusmock
|
||||||
|
BuildRequires: python3-pylint
|
||||||
|
BuildRequires: python3-shtab
|
||||||
|
BuildRequires: pkgconfig(bash-completion)
|
||||||
BuildRequires: pkgconfig(gio-2.0)
|
BuildRequires: pkgconfig(gio-2.0)
|
||||||
BuildRequires: pkgconfig(gio-unix-2.0)
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
||||||
BuildRequires: pkgconfig(glib-2.0)
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
@ -41,7 +44,9 @@ BuildRequires: pkgconfig(systemd)
|
|||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: pkgconfig(udev)
|
||||||
BuildRequires: pkgconfig(umockdev-1.0)
|
BuildRequires: pkgconfig(umockdev-1.0)
|
||||||
BuildRequires: pkgconfig(upower-glib)
|
BuildRequires: pkgconfig(upower-glib)
|
||||||
|
Requires: bash-completion
|
||||||
Requires: polkit
|
Requires: polkit
|
||||||
|
Requires: python3-gobject
|
||||||
|
|
||||||
%description
|
%description
|
||||||
power-profiles-daemon offers to modify system behaviour based upon user-selected
|
power-profiles-daemon offers to modify system behaviour based upon user-selected
|
||||||
@ -55,6 +60,16 @@ BuildArch: noarch
|
|||||||
%description doc
|
%description doc
|
||||||
This package provides documentation for %{name}.
|
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
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
@ -63,12 +78,13 @@ This package provides documentation for %{name}.
|
|||||||
-Dsystemdsystemunitdir=%{_unitdir} \
|
-Dsystemdsystemunitdir=%{_unitdir} \
|
||||||
-Dgtk_doc=true \
|
-Dgtk_doc=true \
|
||||||
-Dtests=true \
|
-Dtests=true \
|
||||||
|
-Dzshcomp=%{_datadir}/zsh/site-functions/ \
|
||||||
%{nil}
|
%{nil}
|
||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
%python3_fix_shebang
|
%{python3_fix_shebang}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%meson_test
|
%meson_test
|
||||||
@ -91,11 +107,13 @@ This package provides documentation for %{name}.
|
|||||||
%{_bindir}/powerprofilesctl
|
%{_bindir}/powerprofilesctl
|
||||||
%{_libexecdir}/%{name}
|
%{_libexecdir}/%{name}
|
||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
|
%{_datadir}/bash-completion/completions/powerprofilesctl
|
||||||
%{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf
|
%{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf
|
||||||
%{_datadir}/dbus-1/system.d/org.freedesktop.UPower.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/net.hadess.PowerProfiles.service
|
||||||
%{_datadir}/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service
|
%{_datadir}/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service
|
||||||
%{_datadir}/polkit-1/actions/power-profiles-daemon.policy
|
%{_datadir}/polkit-1/actions/power-profiles-daemon.policy
|
||||||
|
%{_mandir}/man1/powerprofilesctl.1%{?ext_man}
|
||||||
%ghost %dir %{_localstatedir}/lib/%{name}
|
%ghost %dir %{_localstatedir}/lib/%{name}
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
@ -103,4 +121,8 @@ This package provides documentation for %{name}.
|
|||||||
%dir %{_datadir}/gtk-doc/html/
|
%dir %{_datadir}/gtk-doc/html/
|
||||||
%{_datadir}/gtk-doc/html/%{name}/
|
%{_datadir}/gtk-doc/html/%{name}/
|
||||||
|
|
||||||
|
%files -n powerprofilesctl-zsh-completion
|
||||||
|
%dir %{_datadir}/zsh/site-functions
|
||||||
|
%{_datadir}/zsh/site-functions/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user