]> git.pld-linux.org Git - packages/psensor.git/blob - psensor.spec
up to 0.6.2.19
[packages/psensor.git] / psensor.spec
1 Summary:        A Graphical Temperature Monitor
2 Name:           psensor
3 Version:        0.6.2.19
4 Release:        1
5 License:        GPL v2
6 Group:          X11/Applications
7 URL:            http://wpitchoune.net/psensor
8 Source0:        http://wpitchoune.net/psensor/files/%{name}-%{version}.tar.gz
9 # Source0-md5:  ddc21cbb36c6c622f7b5c1c7eb277374
10 BuildRequires:  GConf2-devel
11 BuildRequires:  cairo-devel
12 BuildRequires:  gcc
13 BuildRequires:  gtk+2-devel
14 BuildRequires:  libXNVCtrl-devel
15 BuildRequires:  lm_sensors-devel
16 Requires:       desktop-file-utils
17 Requires:       gtk-update-icon-cache
18 Requires:       hddtemp
19 Requires:       hicolor-icon-theme
20 Requires:       lm_sensors
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Psensor is a graphical hardware temperature monitor for Linux.
25
26 It is based on:
27 - lm-sensors for retrieving hardware temperatures
28 - GTK for the UI
29 - Cairo for the graph drawing
30 - NVidia library for retrieving NVidia GPUs temperature (not included
31   - licensing problem)
32
33 %prep
34 %setup -q
35
36 %build
37 %configure
38 %{__make}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
46
47 %find_lang %{name}
48
49 # unsupported themes, or size. remove
50 %{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/ubuntu-mono-dark
51 %{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/ubuntu-mono-light
52 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/14x14
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post
58 %update_desktop_database
59 %update_icon_cache hicolor
60
61 %postun
62 %update_desktop_database
63 %update_icon_cache hicolor
64
65 %files -f %{name}.lang
66 %defattr(644,root,root,755)
67 %doc AUTHORS NEWS README
68 %attr(755,root,root) %{_bindir}/psensor
69 %attr(755,root,root) %{_bindir}/psensor-server
70 %{_mandir}/man1/psensor-server.1*
71 %{_mandir}/man1/psensor.1*
72 /etc/xdg/autostart/psensor.desktop
73 %{_desktopdir}/psensor.desktop
74 %{_iconsdir}/hicolor/*/apps/psensor*.*
75 %{_datadir}/%{name}
This page took 0.08332 seconds and 3 git commands to generate.