Package thermald: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %define _localstatedir /var %def_with monitor Name: thermald Version: 2.5.7 Release: alt1 Summary: Thermal daemon for IA License: GPL-3.0-or-later Group: System/Kernel and hardware Url: https://github.com/intel/thermal_daemon # Git: https://github.com/intel/thermal_daemon.git Source: %name-%version.tar Source1: thermald.init Source2: %name-monitor.svg ExclusiveArch: x86_64 BuildRequires: gcc-c++ libgomp-devel BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: libdbus-glib-devel BuildRequires: systemd-devel BuildRequires: gtk-doc BuildRequires: liblzma-devel BuildRequires: libupower-devel BuildRequires: libevdev-devel BuildRequires: autoconf-archive Requires: dbus %description Thermal issues are important to handle proactively to reduce performance impact. The project provides a Linux user mode daemon to system developers, reducing time to market with controlled thermal management using P-states, T-states, and the Intel power clamp driver. The Thermal Daemon uses the existing Linux kernel infrastructure and can be easily enhanced. %description -l ru_RU.UTF-8 thermald представляет собой службу, которая управляет питанием с помощью Р-состояний, Т-состояния и Intel power clamp driver. thermald использует существующую инфраструктуру ядра Linux, и его возможности могут быть легко расширены. %if_with monitor %package monitor Summary: Application for monitoring %name License: GPL-3.0-or-later Group: Monitoring BuildRequires: qt5-base-devel BuildRequires: qcustomplot-qt5-devel Requires: %name = %EVR %description monitor This package contains an Application to monitor %name for system developers who want to enable application developers and their customers with the responsive and flexible thermal management, supporting optimal performance in desktop, clam-shell, mobile and embedded devices. %endif %prep %setup sed -i 's/LIBS += -lQCustomPlot/LIBS += -lqcustomplot-qt5/' \ tools/thermal_monitor/ThermalMonitor.pro %build ./autogen.sh %configure \ --disable-option-checking \ --disable-silent-rules %make_build %if_with monitor # Build the monitor-app. pushd tools/thermal_monitor mkdir -p %_target_platform pushd %_target_platform %qmake_qt5 .. %make_build popd popd %endif %install %makeinstall_std install -pD -m644 data/%name.service \ %buildroot%_unitdir/%name.service install -pD -m755 %SOURCE1 %buildroot%_initdir/%name # Install management-script install -Dpm 0755 tools/thermald_set_pref.sh \ %buildroot%_bindir/%name-set-pref # Install tmpfiles.d mkdir -p alt_addons cat << EOF > alt_addons/%name.conf d /run/%name 0755 root root - EOF install -Dpm 0644 alt_addons/%name.conf \ %buildroot%_tmpfilesdir/%name.conf # Install config install -Dpm 0644 data/thermal-conf.xml \ %buildroot%_sysconfdir/%name/thermal-conf.xml %if_with monitor # Create desktop-file for the monitor-app cat << EOF > alt_addons/%name-monitor.desktop [Desktop Entry] Name=%name Monitor Comment=Application for monitoring %name Icon=%name-monitor Categories=System;Settings; Exec=%_bindir/ThermalMonitor Type=Application StartupNotify=true Terminal=false EOF # Install the monitor-app install -Dpm 0755 tools/thermal_monitor/%_target_platform/ThermalMonitor \ %buildroot%_bindir/ThermalMonitor install -Dpm 0644 alt_addons/%name-monitor.desktop \ %buildroot%_desktopdir/%name-monitor.desktop install -Dpm 0644 %SOURCE2 \ %buildroot%_iconsdir/hicolor/scalable/apps/%name-monitor.svg # Create ReadMe.txt for the monitor-app cat << EOF > alt_addons/ReadMe Running the thermald-monitor-app -------------------------------- 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 group before using the thermald-monitor-app. EOF %endif %pre %_bindir/getent group power >/dev/null || %_sbindir/groupadd -r power exit 0 %post %post_service thermald %preun %preun_service thermald %files %dir %_sysconfdir/%name %config(noreplace) %_sysconfdir/%name/thermal-conf.xml %config(noreplace) %_sysconfdir/%name/thermal-cpu-cdev-order.xml %doc README.txt thermal_daemon_usage.txt COPYING %_tmpfilesdir/%name.conf %_sbindir/%name %_bindir/%name-set-pref %_datadir/dbus-1/system-services/org.freedesktop.%name.service %_datadir/dbus-1/system.d/org.freedesktop.%name.conf %_unitdir/%name.service %_initdir/%name %_man5dir/* %_man8dir/* %if_with monitor %files monitor %doc alt_addons/ReadMe %_bindir/ThermalMonitor %_desktopdir/%name-monitor.desktop %_iconsdir/hicolor/scalable/apps/%name-monitor.svg %endif %changelog * Sun Mar 31 2024 Anton Midyukov <antohami@altlinux.org> 2.5.7-alt1 - new version 2.5.7 * Mon Jan 29 2024 Anton Midyukov <antohami@altlinux.org> 2.5.6-alt1 - new version 2.5.6 * Sat Oct 07 2023 Anton Midyukov <antohami@altlinux.org> 2.5.4-alt1 - new version 2.5.4 - cleaup spec * Mon Jul 10 2023 Anton Midyukov <antohami@altlinux.org> 2.5.3-alt1 - new version 2.5.3 - Update License tag (GPLv2+ -> GPL-3.0-or-later) * Mon Apr 25 2022 Anton Midyukov <antohami@altlinux.org> 2.4.9-alt1 - new version 2.4.9 * Mon Jan 10 2022 Nikolai Kostrigin <nickel@altlinux.org> 2.4.7-alt1 - new version 2.4.7 + Alder Lake and Jasper Lake support introduced by upstream * Wed Oct 06 2021 Nikolai Kostrigin <nickel@altlinux.org> 2.4.6-alt2 - add alt-ui-cosmetic-fixes-to-avoid-label-cut-in-dialogs patch (closes: #41065) * Mon Sep 20 2021 Nikolai Kostrigin <nickel@altlinux.org> 2.4.6-alt1 - new version 2.4.6 * Mon Dec 21 2020 Nikolai Kostrigin <nickel@altlinux.org> 2.4.1-alt1 - new version 2.4.1 - turn TermalMonitor build on - spec: remove obsolete Packager tag + update upstream URL * Mon Nov 09 2020 Nikolai Kostrigin <nickel@altlinux.org> 2.2-alt1 - new version 2.2 + change packaging scheme to git subtree * Fri Mar 08 2019 Anton Midyukov <antohami@altlinux.org> 1.8-alt2 - Update buildrequires (Fix FTBFS) * Sun Oct 21 2018 Anton Midyukov <antohami@altlinux.org> 1.8-alt1 - new version 1.8 - exclusive arch x86_64 * Sun Jul 08 2018 Anton Midyukov <antohami@altlinux.org> 1.7.2-alt1 - new version 1.7.2 - exclusive arch ix86 and x86_64 * Sat Oct 28 2017 Anton Midyukov <antohami@altlinux.org> 1.7.1-alt1 - new version (1.7.1) with rpmgs script * Fri Mar 10 2017 Anton Midyukov <antohami@altlinux.org> 1.6-alt1 - new version (1.6) with rpmgs script * Sat Dec 10 2016 Anton Midyukov <antohami@altlinux.org> 1.5.4-alt1 - new version (1.5.4) with rpmgs script * Wed Oct 05 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.5.3-alt2 - Fixed the adaption of the Debian-style .init for ALT: + .init: condrestart/condstop implemented in a simple way; + .init: status cmd added; + .init: do not print DONE when printing the usage. - (.spec) Do not own dbus and systemd dirs. * Fri May 27 2016 Anton Midyukov <antohami@altlinux.org> 1.5.3-alt1 - New version. * Mon Mar 21 2016 Anton Midyukov <antohami@altlinux.org> 1.4.3-alt2 - Remove init-condrestart. * Tue Feb 16 2016 Anton Midyukov <antohami@altlinux.org> 1.4.3-alt1 - Initial build for Altlinux Sisyphus. |