forked from pool/power-profiles-daemon
Accepting request 1168511 from Base:System
- Drop BuildRequires on python-pylint by disabling pylint option during configure. - Split out bash-completion into own package: powerprofilesctl-bash-completion. - Update to version 0.21 - Drop python3-shebang.patch: no longer required since %python3_fix_shebang is used anyway. - 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/1168511 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/power-profiles-daemon?expand=0&rev=10
This commit is contained in:
commit
532b9fba5d
@ -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,35 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 17 10:01:27 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- 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 <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>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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