]>
Commit | Line | Data |
---|---|---|
1f900f61 | 1 | Summary: The "Linux Thermal Daemon" program from 01.org |
213541ca | 2 | Summary(pl.UTF-8): Linux Thermal Daemon z 01.org |
1f900f61 | 3 | Name: thermal-daemon |
307266a4 | 4 | Version: 2.2 |
1f900f61 AM |
5 | Release: 1 |
6 | License: GPL v2+ | |
7 | Group: Base | |
7e1ac1df | 8 | Source0: https://github.com/01org/thermal_daemon/archive/v%{version}/%{name}-%{version}.tar.gz |
307266a4 | 9 | # Source0-md5: 4e86f9c2fedcdfc10bb2654edcc96414 |
84428206 | 10 | Patch0: print-time_t.patch |
568e1a64 | 11 | URL: https://github.com/01org/thermal_daemon |
213541ca JB |
12 | BuildRequires: autoconf >= 2.50 |
13 | BuildRequires: automake >= 1:1.11 | |
14 | BuildRequires: dbus-devel >= 1.1 | |
15 | BuildRequires: dbus-glib-devel >= 0.94 | |
16 | BuildRequires: glib2-devel >= 1:2.22 | |
17 | BuildRequires: libxml2-devel >= 2.4 | |
18 | BuildRequires: pkgconfig | |
568e1a64 | 19 | BuildRequires: rpmbuild(macros) >= 1.671 |
1f900f61 | 20 | Requires(post,preun,postun): systemd-units >= 38 |
213541ca JB |
21 | Requires: dbus >= 1.1 |
22 | Requires: dbus-glib >= 0.94 | |
23 | Requires: glib2 >= 1:2.22 | |
24 | Requires: libxml2 >= 2.4 | |
1f900f61 | 25 | Requires: systemd-units >= 38 |
568e1a64 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1f900f61 AM |
27 | |
28 | %description | |
29 | Thermal Daemon monitors and controls platform temperature. | |
30 | ||
213541ca JB |
31 | %description -l pl.UTF-8 |
32 | Thermal Daemon monitoruje i kontroluje temperaturę komputera. | |
33 | ||
1f900f61 AM |
34 | %prep |
35 | %setup -q -n thermal_daemon-%{version} | |
84428206 | 36 | %patch0 -p1 |
1f900f61 AM |
37 | |
38 | %build | |
39 | install -d build-aux | |
40 | %{__aclocal} | |
41 | %{__autoconf} | |
42 | %{__autoheader} | |
43 | %{__automake} | |
44 | %configure | |
1f900f61 AM |
45 | %{__make} |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
1f900f61 AM |
49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
22c6fe93 JP |
52 | cp -p data/thermal-conf.xml $RPM_BUILD_ROOT/%{_sysconfdir}/thermald |
53 | ||
1f900f61 AM |
54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post | |
58 | %systemd_post thermald.service | |
59 | ||
60 | %preun | |
61 | %systemd_preun thermald.service | |
62 | ||
63 | %postun | |
64 | %systemd_reload | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc README.txt | |
1f900f61 | 69 | %dir %{_sysconfdir}/thermald |
22c6fe93 | 70 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/thermald/thermal-conf.xml |
1f900f61 | 71 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/thermald/thermal-cpu-cdev-order.xml |
568e1a64 ER |
72 | %config(noreplace) /etc/dbus-1/system.d/org.freedesktop.thermald.conf |
73 | %attr(755,root,root) %{_sbindir}/thermald | |
74 | %{_datadir}/dbus-1/system-services/org.freedesktop.thermald.service | |
1f900f61 AM |
75 | %{_mandir}/man5/thermal-conf.xml.5* |
76 | %{_mandir}/man8/thermald.8* | |
77 | %{systemdunitdir}/thermald.service |