]> git.pld-linux.org Git - packages/gnome-sensors.git/blob - gnome-sensors.spec
- updated gettext BR
[packages/gnome-sensors.git] / gnome-sensors.spec
1 #
2 %define         _orig_name      sensors-applet
3 #
4 Summary:        GNOME applet that monitors hardware sensors
5 Summary(pl.UTF-8):      Aplet GNOME monitorujący czujniki sprzętowe
6 Name:           gnome-sensors
7 Version:        2.2.5
8 Release:        2
9 License:        GPL v2+
10 Group:          X11/Applications
11 Source0:        http://downloads.sourceforge.net/sensors-applet/sensors-applet-%{version}.tar.gz
12 # Source0-md5:  b5cee7e7bfef4c1a62d6d9a9b92c7bc3
13 URL:            http://sensors-applet.sourceforge.net/
14 BuildRequires:  docbook-dtd412-xml
15 BuildRequires:  gettext-tools
16 BuildRequires:  gnome-common
17 BuildRequires:  gnome-doc-utils >= 0.12.0
18 BuildRequires:  gnome-panel-devel >= 2.22.0
19 BuildRequires:  gtk+2-devel >= 2:2.10.2
20 BuildRequires:  intltool >= 0.40.0
21 BuildRequires:  libXNVCtrl-devel >= 195.36.24
22 BuildRequires:  libgnomeui-devel >= 2.22.0
23 BuildRequires:  libnotify-devel >= 0.4.2
24 BuildRequires:  libtool
25 BuildRequires:  libxslt-progs >= 1.1.17
26 BuildRequires:  lm_sensors-devel >= 3.0.0
27 BuildRequires:  pkgconfig
28 BuildRequires:  rpmbuild(find_lang) >= 1.23
29 BuildRequires:  rpmbuild(macros) >= 1.311
30 BuildRequires:  scrollkeeper
31 Requires(post,postun):  gtk-update-icon-cache
32 Requires(post,postun):  hicolor-icon-theme
33 Requires(post,postun):  scrollkeeper
34 Requires:       %{name}-libs = %{version}-%{release}
35 Requires:       hicolor-icon-theme
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %define         _libexecdir     %{_libdir}/%{name}
39
40 %description
41 GNOME Sensors Applet is a simple applet that displays the current
42 readout of any hardware monitoring sensors that are present in
43 computer.
44
45 %description -l pl.UTF-8
46 GNOME Sensors jest prostym apletem wyświetlającym aktualne odczyty
47 dowolnych czujników monitorujących obecnych w komputerze.
48
49 %package libs
50 Summary:        GNOME Sensors Applet library
51 Summary(pl.UTF-8):      Biblioteka apletu GNOME Sensors
52 Group:          X11/Libraries
53
54 %description libs
55 GNOME Sensors Applet library.
56
57 %description libs -l pl.UTF-8
58 Biblioteka apletu GNOME Sensors.
59
60 %package devel
61 Summary:        Header files for GNOME Sensors Applet library
62 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki apletu GNOME Sensors
63 Group:          X11/Development/Libraries
64 Requires:       %{name}-libs = %{version}-%{release}
65
66 %description devel
67 Header files for GNOME Sensors Applet library.
68
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki apletu GNOME Sensors.
71
72 %package static
73 Summary:        Static GNOME Sensors Applet library
74 Summary(pl.UTF-8):      Statyczna biblioteka apletu GNOME Sensors
75 Group:          X11/Development/Libraries
76 Requires:       %{name}-devel = %{version}-%{release}
77
78 %description static
79 Static GNOME Sensors Applet library.
80
81 %description static -l pl.UTF-8
82 Statyczna biblioteka apletu GNOME Sensors.
83
84 %prep
85 %setup -q -n %{_orig_name}-%{version}
86
87 %build
88 %configure \
89         --disable-scrollkeeper \
90         --with-aticonfig \
91         --with-nvidia
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 rm -f $RPM_BUILD_ROOT%{_libdir}/sensors-applet/plugins/*.{a,la}
101
102 %find_lang %{_orig_name} --with-gnome --with-omf
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post
108 %scrollkeeper_update_post
109 %update_icon_cache hicolor
110
111 %postun
112 %scrollkeeper_update_postun
113 %update_icon_cache hicolor
114
115 %post libs -p /sbin/ldconfig
116 %postun libs -p /sbin/ldconfig
117
118 %files -f sensors-applet.lang
119 %defattr(644,root,root,755)
120 %doc AUTHORS ChangeLog NEWS README
121 %dir %{_libexecdir}
122 %attr(755,root,root) %{_libexecdir}/sensors-applet
123 %dir %{_libdir}/sensors-applet
124 %dir %{_libdir}/sensors-applet/plugins
125 %attr(755,root,root) %{_libdir}/sensors-applet/plugins/*.so
126 %{_libdir}/bonobo/servers/SensorsApplet.server
127 %{_iconsdir}/hicolor/*/*/sensors-*
128 %{_pixmapsdir}/sensors-applet
129 %{_datadir}/gnome-2.0/ui/SensorsApplet.xml
130
131 %files libs
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libsensors-applet-plugin.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libsensors-applet-plugin.so.0
135
136 %files devel
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_libdir}/libsensors-applet-plugin.so
139 %{_libdir}/libsensors-applet-plugin.la
140 %{_includedir}/sensors-applet
141
142 %files static
143 %defattr(644,root,root,755)
144 %{_libdir}/libsensors-applet-plugin.a
This page took 0.205524 seconds and 3 git commands to generate.