Only enable power-profiles-daemon on F35+ and RHEL 9+

Fedora Workstation WG decided to leave the dep out of F34 in
https://pagure.io/fedora-workstation/issue/191#comment-724769
This commit is contained in:
Kalev Lember 2021-04-02 11:51:59 +02:00
parent 8cf08e24c3
commit 21b72320a5

View File

@ -13,7 +13,7 @@
Name: gnome-control-center
Version: 40.0
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Utilities to configure the GNOME desktop
License: GPLv2+ and CC-BY-SA
@ -114,6 +114,10 @@ Recommends: rygel
Recommends: switcheroo-control
# For the keyboard panel
Requires: /usr/bin/gkbd-keyboard-display
%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9
# For the power panel
Recommends: power-profiles-daemon
%endif
# Renamed in F28
Provides: control-center = 1:%{version}-%{release}
@ -204,6 +208,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_bindir}/gnome-control-center
%dir %{_datadir}/gnome/wm-properties
%changelog
* Fri Apr 02 2021 Kalev Lember <klember@redhat.com> - 40.0-9
- Only enable power-profiles-daemon on F35+ and RHEL 9+
* Wed Mar 31 2021 Pete Walter <pwalter@fedoraproject.org> - 40.0-8
- Add back power-profiles-daemon once more