/[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.8 - (show annotations) (download)
Thu Mar 4 16:31:07 2010 UTC (14 years, 3 months ago) by slords
Branch: MAIN
Changes since 1.7: +2 -0 lines
Fix headers

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

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