Disable monitor in RHEL builds
Qt5 is being replaced by Qt6 in RHEL 10, and thermald-monitor is not shipped in RHEL.
This commit is contained in:
parent
94cb9ec669
commit
a79b5689a4
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
%global pkgname thermal_daemon
|
%global pkgname thermal_daemon
|
||||||
|
|
||||||
|
%bcond qt %[%{undefined rhel} || 0%{?rhel} < 10]
|
||||||
|
|
||||||
|
|
||||||
Name: thermald
|
Name: thermald
|
||||||
Version: 2.5
|
Version: 2.5
|
||||||
@ -45,6 +47,7 @@ impact. %{name} uses the existing Linux kernel infrastructure and can
|
|||||||
be easily enhanced.
|
be easily enhanced.
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with qt}
|
||||||
%package monitor
|
%package monitor
|
||||||
Summary: Application for monitoring %{name}
|
Summary: Application for monitoring %{name}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -61,6 +64,7 @@ developers who want to enable application developers and their
|
|||||||
customers with the responsive and flexible thermal management,
|
customers with the responsive and flexible thermal management,
|
||||||
supporting optimal performance in desktop, clam-shell, mobile and
|
supporting optimal performance in desktop, clam-shell, mobile and
|
||||||
embedded devices.
|
embedded devices.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -72,6 +76,7 @@ embedded devices.
|
|||||||
d %{_rundir}/%{name} 0755 root root -
|
d %{_rundir}/%{name} 0755 root root -
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
%if %{with qt}
|
||||||
# Create desktop-file for the monitor-app.
|
# Create desktop-file for the monitor-app.
|
||||||
%{__cat} << EOF > fedora_addons/%{name}-monitor.desktop
|
%{__cat} << EOF > fedora_addons/%{name}-monitor.desktop
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
@ -147,6 +152,7 @@ To communicate with thermald via dbus, the user has to be member
|
|||||||
of the "power" group. So make sure to add your user id to this
|
of the "power" group. So make sure to add your user id to this
|
||||||
group before using the thermald-monitor-app.
|
group before using the thermald-monitor-app.
|
||||||
EOF
|
EOF
|
||||||
|
%endif
|
||||||
|
|
||||||
NO_CONFIGURE=1 ./autogen.sh
|
NO_CONFIGURE=1 ./autogen.sh
|
||||||
|
|
||||||
@ -159,6 +165,7 @@ NO_CONFIGURE=1 ./autogen.sh
|
|||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
%if %{with qt}
|
||||||
# Build the monitor-app.
|
# Build the monitor-app.
|
||||||
pushd tools/thermal_monitor
|
pushd tools/thermal_monitor
|
||||||
sed -i -e 's/-lqcustomplot/-lqcustomplot-qt5/' ThermalMonitor.pro
|
sed -i -e 's/-lqcustomplot/-lqcustomplot-qt5/' ThermalMonitor.pro
|
||||||
@ -168,6 +175,7 @@ pushd %{_target_platform}
|
|||||||
%make_build
|
%make_build
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -191,6 +199,7 @@ popd
|
|||||||
/bin/echo "%{name}_pid" > %{buildroot}%{_rundir}/%{name}/%{name}.pid
|
/bin/echo "%{name}_pid" > %{buildroot}%{_rundir}/%{name}/%{name}.pid
|
||||||
%{__chmod} -c 0644 %{buildroot}%{_rundir}/%{name}/%{name}.pid
|
%{__chmod} -c 0644 %{buildroot}%{_rundir}/%{name}/%{name}.pid
|
||||||
|
|
||||||
|
%if %{with qt}
|
||||||
# Install the monitor-app.
|
# Install the monitor-app.
|
||||||
%{__install} -Dpm 0755 tools/thermal_monitor/%{_target_platform}/ThermalMonitor \
|
%{__install} -Dpm 0755 tools/thermal_monitor/%{_target_platform}/ThermalMonitor \
|
||||||
%{buildroot}%{_bindir}/ThermalMonitor
|
%{buildroot}%{_bindir}/ThermalMonitor
|
||||||
@ -198,11 +207,14 @@ popd
|
|||||||
%{buildroot}%{_datadir}/applications/%{name}-monitor.desktop
|
%{buildroot}%{_datadir}/applications/%{name}-monitor.desktop
|
||||||
%{__install} -Dpm 0644 fedora_addons/%{name}-monitor.svg \
|
%{__install} -Dpm 0644 fedora_addons/%{name}-monitor.svg \
|
||||||
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}-monitor.svg
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}-monitor.svg
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with qt}
|
||||||
%{_bindir}/desktop-file-validate \
|
%{_bindir}/desktop-file-validate \
|
||||||
%{buildroot}%{_datadir}/applications/*.desktop
|
%{buildroot}%{_datadir}/applications/*.desktop
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -237,12 +249,14 @@ exit 0
|
|||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with qt}
|
||||||
%files monitor
|
%files monitor
|
||||||
%doc fedora_addons/%{name}-monitor.ReadMe.txt
|
%doc fedora_addons/%{name}-monitor.ReadMe.txt
|
||||||
%license tools/thermal_monitor/COPYING
|
%license tools/thermal_monitor/COPYING
|
||||||
%{_bindir}/ThermalMonitor
|
%{_bindir}/ThermalMonitor
|
||||||
%{_datadir}/applications/%{name}-monitor.desktop
|
%{_datadir}/applications/%{name}-monitor.desktop
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/%{name}-monitor.svg
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}-monitor.svg
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user