/[smeserver]/rpms/smolt/sme8/smolt.spec
ViewVC logotype

Contents of /rpms/smolt/sme8/smolt.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download)
Thu Mar 4 00:50:27 2010 UTC (14 years, 9 months ago) by slords
Branch: MAIN
CVS Tags: smolt-1_4_3-2_el5_sme
Changes since 1.6: +222 -72 lines
Upgrade

1 Name: smolt
2
3 Summary: SME Server hardware profiler
4 Version: 1.4.3
5 Release: 2%{?dist}
6 License: GPLv2+
7 Group: Applications/Internet
8 URL: http://fedorahosted.org/smolt
9 Source: https://fedorahosted.org/releases/s/m/%{name}/%{name}-%{version}.tar.gz
10 Patch0: smolt-1.4.3-ddl.patch
11 Patch1: smolt-1.4.3-el5.patch
12 Patch2: smolt-1.4.3-sme.patch
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14
15 Requires: dbus-python, python-urlgrabber, gawk, python-paste, hal, python-ctypes
16 BuildArch: noarch
17 BuildRequires: gettext
18 BuildRequires: desktop-file-utils
19
20 Requires(pre): %{_sbindir}/groupadd
21 Requires(pre): %{_sbindir}/useradd
22 Requires(post): /sbin/chkconfig
23 Requires(preun): /sbin/chkconfig
24 Requires(preun): /sbin/service
25 Requires(postun): /sbin/service
26 Requires: python-simplejson
27
28 %description
29 The SME Server hardware profiler is a server-client system that does a hardware
30 scan against a machine and sends the results to a public SME Server Project
31 turbogears server. The sends are anonymous and should not contain any private
32 information other than the physical hardware information and basic OS info.
33
34 This package contains the client
35
36 %package server
37 Summary: SME Server hardware profiler server
38 Group: Applications/Internet
39 Requires: smolt = %{version}-%{release}
40 Requires: python-genshi
41 Requires: python-crypto
42 Requires: TurboGears mx
43 Requires: python-turboflot
44
45 %description server
46 The SME Server hardware profiler is a server-client system that does a hardware
47 scan against a machine and sends the results to a public SME Server Project
48 turbogears server. The sends are anonymous and should not contain any private
49 information other than the physical hardware information and basic OS info.
50
51 This package contains the server portion
52
53 %package firstboot
54 Summary: SME Server hardware profile firstboot
55 Group: Applications/Internet
56 Requires: smolt = %{version}-%{release}
57
58 %description firstboot
59 This provides firstboot integration for smolt. It has been broken into a
60 separate package so firstboot isn't a requisite to use smolt.
61
62 %package gui
63 Summary: SME Server hardware profiler gui
64 Group: Applications/Internet
65 Requires: smolt = %{version}-%{release}
66 Requires: PyQt4
67
68 %description gui
69 Provides smolt's gui functionality. Not included in the default package to
70 ensure that deps are kept small.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75 %patch1 -p1
76 %patch2 -p1
77
78 %build
79 cd client/
80 make
81
82 %install
83 %{__rm} -rf %{buildroot}
84 cd client
85 DESTDIR=%{buildroot} make install
86 cd ..
87 %{__install} -d -m 0755 smoon/ %{buildroot}/%{_datadir}/%{name}/smoon/
88 %{__mkdir} -p %{buildroot}/%{_mandir}/man1/
89 %{__cp} -adv smoon/* %{buildroot}/%{_datadir}/%{name}/smoon/
90 %{__cp} client/scan.py %{buildroot}/%{_datadir}/%{name}/client/
91 %{__cp} client/gate.py %{buildroot}/%{_datadir}/%{name}/client/
92 %{__cp} client/os_detect.py %{buildroot}/%{_datadir}/%{name}/client/
93 %{__cp} client/fs_util.py %{buildroot}/%{_datadir}/%{name}/client/
94 %{__cp} client/man/* %{buildroot}/%{_mandir}/man1/
95
96 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/sysconfig/
97 %{__mkdir} -p %{buildroot}/%{_datadir}/firstboot/modules/
98 %{__mkdir} -p %{buildroot}/%{_initrddir}
99
100 %{__mv} client/smoltFirstBoot.py %{buildroot}/%{_datadir}/firstboot/modules/smolt.py
101 %{__mv} client/smolt-init %{buildroot}/%{_initrddir}/smolt
102
103 touch %{buildroot}/%{_sysconfdir}/sysconfig/hw-uuid
104
105 # Icons
106 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/
107 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/
108 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/24x24/apps/
109 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/
110
111 %{__mkdir} -p %{buildroot}/%{_datadir}/firstboot/pixmaps/
112 %{__mkdir} -p %{buildroot}/%{_datadir}/firstboot/themes/default/
113
114 %{__mv} client/icons/smolt-icon-16.png %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/smolt.png
115 %{__mv} client/icons/smolt-icon-22.png %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/smolt.png
116 %{__mv} client/icons/smolt-icon-24.png %{buildroot}/%{_datadir}/icons/hicolor/24x24/apps/smolt.png
117 %{__mv} client/icons/smolt-icon-32.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/smolt.png
118 %{__cp} -adv client/icons/* %{buildroot}/%{_datadir}/%{name}/client/icons/
119 %{__cp} -adv client/icons/smolt-icon-48.png %{buildroot}/%{_datadir}/firstboot/themes/default/smolt.png
120
121 %{__rm} -f %{buildroot}/%{_bindir}/smoltSendProfile %{buildroot}/%{_bindir}/smoltDeleteProfile %{buildroot}/%{_bindir}/smoltGui
122 %{__rm} -f %{buildroot}/%{_datadir}/%{name}/client/config.py
123
124 ln -s %{_datadir}/%{name}/client/sendProfile.py %{buildroot}/%{_bindir}/smoltSendProfile
125 ln -s %{_datadir}/%{name}/client/deleteProfile.py %{buildroot}/%{_bindir}/smoltDeleteProfile
126 ln -s %{_datadir}/%{name}/client/smoltGui.py %{buildroot}/%{_bindir}/smoltGui
127 ln -s %{_sysconfdir}/%{name}/config.py %{buildroot}/%{_datadir}/%{name}/client/config.py
128
129
130 desktop-file-install --vendor='fedora' --dir=%{buildroot}/%{_datadir}/applications client/smolt.desktop
131 %{__rm} -f %{buildroot}/%{_datadir}/applications/smolt.desktop
132 %find_lang %{name}
133
134 # Cleanup from the Makefile (will be cleaned up when it is finalized)
135 %{__rm} -f %{buildroot}/etc/init.d/smolt
136 %{__rm} -f %{buildroot}/etc/smolt/hw-uuid
137
138 %clean
139 rm -rf %{buildroot}
140
141 %pre
142 %{_sbindir}/groupadd -r %{name} &>/dev/null || :
143 %{_sbindir}/useradd -r -s /sbin/nologin -d %{_datadir}/%{name} -M \
144 -c 'Smolt' -g %{name} %{name} &>/dev/null || :
145
146 %post
147 /sbin/chkconfig --add smolt
148
149 #Randomize checkin times.
150 TMPFILE=$(/bin/mktemp /tmp/smolt.XXXXX)
151 /bin/awk '{ srand(); if($2 == 1 && $3 == 1) print $1,int((rand() * 100) % 22 + 1),int((rand() * 100) % 27 + 1),substr($0,index($0,$4)); else print $0}' /etc/cron.d/smolt > $TMPFILE
152 /bin/cp $TMPFILE /etc/cron.d/smolt
153 /bin/rm -f $TMPFILE
154
155 %preun
156 if [ $1 = 0 ]; then
157 /sbin/service smolt stop >/dev/null 2>&1
158 /sbin/chkconfig --del smolt
159 fi
160
161 %post server
162 #Fail, will fix later
163 for f in delete.html deviceclass.html device.html devices.html error.html \
164 link.html login.html master.html myHosts.html notLoaded.html \
165 pub_uuid.html raw.html report_device_ratings.html \
166 report_host_ratings.html report_recent.html report_search_devices.html\
167 report_search.html report_search_profiles.html report_view_device.html\
168 report_view_devices.html report_view.html report_view_profile.html \
169 report_view_profiles.html showall.html show.html stats.html token.html\
170 welcome.html
171 do
172 touch %{_datadir}/%{name}/smoon/hardware/static/stats/$f
173 done
174
175 %post gui
176 touch --no-create %{_datadir}/icons/hicolor || :
177 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
178
179 %postun gui
180 touch --no-create %{_datadir}/icons/hicolor || :
181 %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
182
183 %files -f %{name}.lang
184 %defattr(-,root,root,-)
185 %doc README GPL doc/*
186 %dir %{_datadir}/%{name}
187 %dir %{_sysconfdir}/%{name}/
188 %{_datadir}/%{name}/client
189 #%ghost %{_datadir}/%{name}/client/scan.pyc
190 #%ghost %{_datadir}/%{name}/client/scan.pyo
191 %{_datadir}/%{name}/doc
192 %{_bindir}/smoltSendProfile
193 %{_bindir}/smoltDeleteProfile
194 %config(noreplace) /%{_sysconfdir}/%{name}/config*
195 %{_sysconfdir}/cron.d/%{name}
196 %{_mandir}/man1/*gz
197 %{_initrddir}/%{name}
198 %ghost %config(noreplace) %{_sysconfdir}/sysconfig/hw-uuid
199
200 %files server
201 %defattr(-,root,root,-)
202 %{_datadir}/%{name}/smoon
203
204 %files firstboot
205 %defattr(-,root,root,-)
206 %{_datadir}/firstboot/modules/smolt.py*
207 %{_datadir}/firstboot/themes/default/smolt.png
208
209 %files gui
210 %defattr(-,root,root,-)
211 %{_datadir}/applications/fedora-smolt.desktop
212 %{_datadir}/icons/hicolor/*x*/apps/smolt.png
213 %{_bindir}/smoltGui
214
215 %changelog
216 * Mon Feb 3 2010 Shad L. Lords <slords@mail.com> 1.4.2-2.sme
217 - Apply patches so smolt will run under el5
218 - Apply sme specific patches
219
220 * Mon Jan 25 2010 Mike McGrath <mmcgrath@redhat.com> 1.4.2-1
221 - Upstream released new version
222 - Added hal requires
223
224 * Tue Oct 13 2009 Mike McGrath <mmcgrath@redhat.com> 1.4-4
225 - Fixing firstboot for F-12
226
227 * Mon Sep 21 2009 Mike McGrath <mmcgrath@redhat.com> 1.4-2
228 - Patched issue with translations (already upstream)
229
230 * Mon Sep 14 2009 Mike McGrath <mmcgrath@redhat.com> 1.4-1
231 - Upstream released new version
232
233 * Thu Sep 10 2009 Mike McGrath <mmcgrath@redhat.com> - 1.3.2-2
234 - Added requires for PyQt4 on smolt gui
235
236 * Thu Sep 03 2009 Mike McGrath <mmcgrath@redhat.com> - 1.3.2-1
237 - Upstream released new version
238 - Changed some link and copy info
239
240 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
241 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
242
243 * Thu Jul 02 2009 Mike McGrath <mmcgrath@redhat.com> - 1.3-1
244 - Added touch for generated stats
245 - Upstream released new version
246
247 * Tue Apr 14 2009 Mike McGrath <mmcgrath@redhat.com> - 1.2-4.2
248 - Removed fake attack
249
250 * Fri Mar 13 2009 Mike McGrath <mmcgrath@redhat.com> - 1.2-4.1
251 - Fixed some formatting in the spec file
252 - Added note to %post
253
254 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
255 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
256
257 * Wed Jan 21 2009 Mike McGrath <mmcgrath@redhat.com> - 1.2-3
258 - Added os_detect.py as it is now required.
259
260 * Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.2-2
261 - Rebuild for Python 2.6
262
263 * Sun Nov 30 2008 Mike McGrath <mmcgrath@redhat.com> 1.2-1
264 - Upstream released new version
265
266 * Fri Nov 21 2008 Mike McGrath <mmcgrath@redhat.com> 1.1.1.1-10
267 - Fix for bug 472101
268
269 * Wed Nov 12 2008 Mike McGrath <mmcgrath@redhat.com> 1.1.1.1-9
270 - Fix for bug 470829
271
272 * Tue Nov 11 2008 Mike McGrath <mmcgrath@redhat.com> 1.1.1.1-8
273 - Added patch for fixed scanner
274
275 * Wed Oct 1 2008 Mike McGrath <mmcgrath@redhat.com> 1.1.1.1-7
276 - Fix for 439496
277
278 * Sun Sep 7 2008 Mike McGrath <mmcgrath@redhat.com> 1.1.1.1-6
279 - Added turboflot to server, removed from firstboot
280
281 * Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.1.1-5
282 - fix license tag
283
284 * Thu Apr 03 2008 Mike McGrath <mmcgrath@redhat.com> - 1.1.1.1-4
285 - One revert for rawhide
286
287 * Sat Mar 08 2008 Mike McGrath <mmcgrath@redhat.com> - 1.1.1.1-3
288 - Fixing firstboot again for 437708, 437765
289
290 * Sat Mar 08 2008 Mike McGrath <mmcgrath@redhat.com> - 1.1.1.1-2
291 - Fix firstboot for 437708, 437765
292
293 * Sat Mar 08 2008 Mike McGrath <mmcgrath@redhat.com> - 1.1.1.1-1
294 - Upstream released new version
295
296 * Wed Mar 05 2008 Mike McGrath <mmcgrath@redhat.com> - 1.1.1-1
297 - Upstream released new version
298 - Manfiles added
299 - Source location updated
300
301 * Wed Feb 27 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1-3
302 - Copy instead of move cron file so that selinux contexts are set
303 properly. (BZ#435050)
304
305 * Wed Feb 27 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 1.1-2
306 - Create smolt user. (BZ#435136)
307
308 * Fri Feb 01 2008 Mike McGrath <mmcgrath@redhat.com> 1.0-5
309 - Added a req for mx on smoon
310
311 * Thu Jan 08 2008 Mike McGrath <mmcgrath@redhat.com> 1.0-4
312 - Fixed firstboot
313
314 * Thu Jan 08 2008 Mike McGrath <mmcgrath@redhat.com> 1.0-3
315 - Added python-urlgrabber as a requires - 427969
316
317 * Thu Nov 22 2007 Mike McGrath <mmcgrath@redhat.com> 1.0-2
318 - Installed scanner - #395901
319
320 * Tue Nov 20 2007 Mike McGrath <mmcgrath@redhat.com> 1.0-1
321 - Upstream released new version
322
323 * Tue Oct 25 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.9.2-1
324 - Upstream released new version
325
326 * Tue Oct 23 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.9.1-4
327 - Upstream released new version
328
329 * Thu Oct 18 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.9-2
330 - Fixed /etc/smolt/ ownership issue
331
332 * Tue Oct 16 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.9-1
333 - Upstream released new version
334
335 * Fri Sep 28 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.8.4-8
336 - Fixed Selinux
337
338 * Thu Sep 27 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.8.4-6
339 - Added translations
340
341 * Fri Sep 21 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.8.4-5
342 - Fixed firstboot issues
343
344 * Mon Aug 13 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.8.4-4
345 - Rebuild to clean up 'config.py' compilations
346
347 * Mon Aug 13 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.8.4-1
348 - Upstream released new version (major changes)
349 - New config file
350 - New Makefile
351 - Added deps
352
353 * Fri Jun 22 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.8.3
354 - Upstream released new version
355
356 * Thu May 24 2007 Mike McGrath <mmcgrath@redhat.com> - 0.9.8.1
357 - Upstream released new version
358
359 * Sun Apr 22 2007 Mike McGrath <mmcgrath@redhat.com> - 0.9.7.1-3
360 - Added smolt icons
361
362 * Tue Apr 17 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.6-4
363 - Add standard scriptlets in pre & post to handle init script - fixes #236776
364 - Use the find_lang macro to find/mark translations.
365
366 * Fri Apr 13 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.6-3
367 - Put a copy of the privacy policy where the client is expecting it.
368
369 * Wed Apr 11 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.6-2
370 - Upstream released new version.
371 - Much better support for languages on the client
372
373 * Fri Mar 16 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.4-1
374 - Upstream released new version
375 - Major changes
376 - Added initial i18n support (Probably doesn't work)
377
378 * Fri Mar 01 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.2-1
379 - Fixed firstboot
380 - Upstream released new version
381
382 * Fri Mar 01 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.1-1
383 - Upstream released new version, major smoon changes.
384
385 * Mon Feb 19 2007 Mike McGrath <mmcgrath@redhat.com> 0.9-1
386 - Upstream released new version
387
388 * Mon Feb 12 2007 Mike McGrath <imlinux@gmail.com> 0.8-1
389 - New version released, major changes in both server and client
390
391 * Wed Feb 07 2007 Mike McGrath <imlinux@gmail.com> 0.7-1
392 - Upstream released new version
393
394 * Tue Jan 31 2007 Mike McGrath <imlinux@gmail.com> 0.6.2-1
395 - Upstream released new version (bug in firstboot)
396
397 * Tue Jan 30 2007 Mike McGrath <imlinux@gmail.com> 0.6.1-3
398 - Removed LSB requirement for sparc
399
400 * Tue Jan 30 2007 Mike McGrath <imlinux@gmail.com> 0.6.1-2
401 - Added firstboot
402 - Upstream released new version
403
404 * Mon Jan 29 2007 Mike McGrath <imlinux@gmail.com> 0.6-1
405 - Upstream released new version
406 - Added new symlinks for smoltPrint and smoltSendProfile
407
408 * Thu Jan 25 2007 Mike McGrath <imlinux@gmail.com> 0.5-4
409 - Forgot Requires of dbus-python
410
411 * Wed Jan 24 2007 Mike McGrath <imlinux@gmail.com> 0.5-3
412 - Fixed silly bash syntax error
413
414 * Thu Jan 22 2007 Mike McGrath <imlinux@gmail.com> 0.5-2
415 - s/turbogears/TurboGears/
416
417 * Thu Jan 22 2007 Mike McGrath <imlinux@gmail.com> 0.5-1
418 - Upstream released new version
419 - Fixed small bug in post
420
421 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.4-2
422 - Added comment about the not directly available tar-gzip file
423
424 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.4-1
425 - New upstream version
426 - Altered post install section
427 - Added wget requires
428
429 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.3-1
430 - Upstream released new version
431
432 * Tue Jan 16 2006 Mike McGrath <imlinux@gmail.com> 0.2-1
433 - Initial Packaging

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed