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

Annotation of /rpms/smolt/sme7/smolt.spec

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


Revision 1.7 - (hide annotations) (download)
Thu Mar 4 00:49:44 2010 UTC (14 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: smolt-1_4_3-2_el4_sme
Changes since 1.6: +221 -73 lines
Upgrade

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

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