2021-08-27 14:04:25 +02:00
|
|
|
#
|
|
|
|
# spec file for package power-profiles-daemon
|
|
|
|
#
|
2023-04-27 08:13:40 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2021-08-27 14:04:25 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: power-profiles-daemon
|
2023-04-27 08:13:40 +02:00
|
|
|
Version: 0.13
|
2021-08-27 14:04:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Power profiles handling over D-Bus
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
URL: https://gitlab.freedesktop.org/hadess/power-profiles-daemon
|
|
|
|
Source: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
2021-10-16 11:28:01 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE hold-profile-hardening.patch boo#1189900 -- Hardening of HoldProfile D-Bus method
|
2021-10-07 14:26:42 +02:00
|
|
|
Patch0: hold-profile-hardening.patch
|
|
|
|
|
2021-09-26 16:40:36 +02:00
|
|
|
BuildRequires: c_compiler
|
2021-08-27 14:04:25 +02:00
|
|
|
BuildRequires: gtk-doc
|
2023-04-27 08:13:40 +02:00
|
|
|
BuildRequires: meson >= 0.54.0
|
2021-08-27 14:04:25 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python3-dbusmock
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2023-04-27 08:13:40 +02:00
|
|
|
BuildRequires: pkgconfig(gudev-1.0) >= 234
|
2021-11-21 12:00:22 +01:00
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.114
|
2021-08-27 14:04:25 +02:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2023-04-27 08:13:40 +02:00
|
|
|
BuildRequires: pkgconfig(upower-glib)
|
2021-08-27 14:04:25 +02:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2021-09-26 16:40:36 +02:00
|
|
|
BuildRequires: pkgconfig(umockdev-1.0)
|
2021-10-04 17:46:11 +02:00
|
|
|
Requires: polkit
|
2021-08-27 14:04:25 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
power-profiles-daemon offers to modify system behaviour based upon user-selected
|
|
|
|
power profiles. There are 3 different power profiles: a "balanced" default mode,
|
|
|
|
a "power-saver" mode, and a "performance" mode.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for power-profiles-daemon
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package provides documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
2021-09-26 16:40:36 +02:00
|
|
|
%meson \
|
|
|
|
-Dsystemdsystemunitdir=%{_unitdir} \
|
|
|
|
-Dgtk_doc=true \
|
2023-04-27 08:13:40 +02:00
|
|
|
-Dtests=true \
|
2021-09-26 16:40:36 +02:00
|
|
|
%{nil}
|
2021-08-27 14:04:25 +02:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
2021-10-07 14:26:42 +02:00
|
|
|
%check
|
|
|
|
%meson_test
|
2021-09-26 16:40:36 +02:00
|
|
|
|
2021-08-27 14:04:25 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre %{name}.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post %{name}.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun %{name}.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun %{name}.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/powerprofilesctl
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
%{_unitdir}/%{name}.service
|
2022-07-05 10:29:04 +02:00
|
|
|
%{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf
|
2021-08-27 14:04:25 +02:00
|
|
|
%{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service
|
2021-10-04 17:46:11 +02:00
|
|
|
%{_datadir}/polkit-1/actions/net.hadess.PowerProfiles.policy
|
2021-08-27 14:04:25 +02:00
|
|
|
%ghost %dir %{_localstatedir}/lib/%{name}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%dir %{_datadir}/gtk-doc/
|
|
|
|
%dir %{_datadir}/gtk-doc/html/
|
|
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
|
|
|
|
%changelog
|