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
This commit is contained in:
DistroBaker 2020-10-30 15:11:21 +01:00
parent d1287d2dc7
commit ecf9cdc110
4 changed files with 85 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/power-profiles-daemon-0.1.tar.xz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# power-profiles-daemon
The power-profiles-daemon package

View File

@ -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 <bnocera@redhat.com> - 0.1-2
+ power-profiles-daemon-0.1-2
- Reload presets when updating from an older version
* Fri Aug 07 2020 Bastien Nocera <bnocera@redhat.com> - 0.1-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (power-profiles-daemon-0.1.tar.xz) = 1ff6e4b6f507b567ac980ab275e1c53d193216c6f534e868641769ac4c951e89c4a9e3c74b599ab0f9599f2ca826486801fc4328212de96d77760183e7aeaf05