From 248bc0bf64c14642442feafa744ed32f595521161731a579692afec0b94f640b Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Fri, 27 Aug 2021 12:04:25 +0000 Subject: [PATCH] Accepting request 914574 from home:badshah400:Staging A daemon to make power profiles handling available over D-Bus. OBS-URL: https://build.opensuse.org/request/show/914574 OBS-URL: https://build.opensuse.org/package/show/Base:System/power-profiles-daemon?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + power-profiles-daemon-0.9.0.tar.bz2 | 3 + power-profiles-daemon.changes | 4 ++ power-profiles-daemon.spec | 88 +++++++++++++++++++++++++++++ 5 files changed, 119 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 power-profiles-daemon-0.9.0.tar.bz2 create mode 100644 power-profiles-daemon.changes create mode 100644 power-profiles-daemon.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/power-profiles-daemon-0.9.0.tar.bz2 b/power-profiles-daemon-0.9.0.tar.bz2 new file mode 100644 index 0000000..a0a50a2 --- /dev/null +++ b/power-profiles-daemon-0.9.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67278728af6661b805dcf8dcaf96b9c89ecde928147dc4dca45f82e273ba3b80 +size 41940 diff --git a/power-profiles-daemon.changes b/power-profiles-daemon.changes new file mode 100644 index 0000000..727d39d --- /dev/null +++ b/power-profiles-daemon.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Aug 26 18:16:58 UTC 2021 - Atri Bhattacharya + +- Initial package. diff --git a/power-profiles-daemon.spec b/power-profiles-daemon.spec new file mode 100644 index 0000000..52bfe76 --- /dev/null +++ b/power-profiles-daemon.spec @@ -0,0 +1,88 @@ +# +# spec file for package power-profiles-daemon +# +# Copyright (c) 2021 SUSE LLC +# +# 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 +Version: 0.9.0 +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 +BuildRequires: gtk-doc +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: python3-dbusmock +BuildRequires: systemd +BuildRequires: systemd-rpm-macros +BuildRequires: umockdev +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gudev-1.0) +BuildRequires: pkgconfig(systemd) +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(upower-glib) + +%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 +%meson -Dgtk_doc=true +%meson_build + +%install +%meson_install + +%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 +%config %{_sysconfdir}/dbus-1/system.d/net.hadess.PowerProfiles.conf +%{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service +%ghost %dir %{_localstatedir}/lib/%{name} + +%files doc +%dir %{_datadir}/gtk-doc/ +%dir %{_datadir}/gtk-doc/html/ +%{_datadir}/gtk-doc/html/%{name}/ + +%changelog