From ecf9cdc11059b059a60ee3661fd80d6ec1a0fec1 Mon Sep 17 00:00:00 2001 From: DistroBaker Date: Fri, 30 Oct 2020 15:11:21 +0100 Subject: [PATCH] Merged update from upstream sources This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/power-profiles-daemon.git#8d368a319f1e980475e0a224b28e904e4c036a41 --- .gitignore | 1 + README.md | 3 ++ power-profiles-daemon.spec | 80 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 85 insertions(+) create mode 100644 README.md create mode 100644 power-profiles-daemon.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..9ef4110 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/power-profiles-daemon-0.1.tar.xz diff --git a/README.md b/README.md new file mode 100644 index 0000000..3e7d50e --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# power-profiles-daemon + +The power-profiles-daemon package diff --git a/power-profiles-daemon.spec b/power-profiles-daemon.spec new file mode 100644 index 0000000..3c3e70a --- /dev/null +++ b/power-profiles-daemon.spec @@ -0,0 +1,80 @@ +Name: power-profiles-daemon +Version: 0.1 +Release: 2%{?dist} +Summary: Makes power profiles handling available over D-Bus + +License: GPLv3+ +URL: https://gitlab.freedesktop.org/hadess/power-profiles-daemon +Source0: https://gitlab.freedesktop.org/hadess/power-profiles-daemon/uploads/5efc7a766d5a50ed811e085035c7b967/%{name}-%{version}.tar.xz + +BuildRequires: meson +BuildRequires: gcc +BuildRequires: gtk-doc +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(systemd) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gudev-1.0) +BuildRequires: pkgconfig(upower-glib) +BuildRequires: systemd +BuildRequires: umockdev +BuildRequires: python3-dbusmock +BuildRequires: systemd-rpm-macros + +%description +%{summary}. + +%package docs +Summary: Documentation for %{name} +BuildArch: noarch + +%description docs +This package contains the documentation for %{name}. + +%prep +%autosetup + +%build +%meson -Dgtk_doc=true +%meson_build + +%install +%meson_install + +%check +%meson_test + +%post +%systemd_post %{name}.service + +%preun +%systemd_preun %{name}.service + +%postun +%systemd_postun_with_restart %{name}.service + +%triggerun -- power-profiles-daemon < 0.1-2 + +# This is for upgrades from previous versions before power-profiles-daemon became part +# of the system daemons. +systemctl --no-reload preset power-profiles-daemon.service &>/dev/null || : + +%files +%license COPYING +%doc README.md +%{_libexecdir}/%{name} +%{_unitdir}/%{name}.service +%{_sysconfdir}/dbus-1/system.d/net.hadess.PowerProfiles.conf +%{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service + +%files docs +%dir %{_datadir}/gtk-doc/ +%dir %{_datadir}/gtk-doc/html/ +%{_datadir}/gtk-doc/html/%{name}/ + +%changelog +* Wed Oct 28 2020 Bastien Nocera - 0.1-2 ++ power-profiles-daemon-0.1-2 +- Reload presets when updating from an older version + +* Fri Aug 07 2020 Bastien Nocera - 0.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..59fd2da --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (power-profiles-daemon-0.1.tar.xz) = 1ff6e4b6f507b567ac980ab275e1c53d193216c6f534e868641769ac4c951e89c4a9e3c74b599ab0f9599f2ca826486801fc4328212de96d77760183e7aeaf05