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

Contents of /rpms/smolt/sme7/smolt.spec

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


Revision 1.4 - (show annotations) (download)
Mon Jan 7 18:49:37 2008 UTC (16 years, 5 months ago) by bytegw
Branch: MAIN
CVS Tags: smolt-0_9_8_1-7_el4_sme
Changes since 1.3: +11 -1 lines
Updates

1 Name: smolt
2 Summary: Fedora hardware profiler
3 Version: 0.9.8.1
4 Release: 7%{?dist}
5 License: GPL
6 Group: Applications/Internet
7 URL: http://hosted.fedoraproject.org/projects/smolt
8
9 # Note: This is a link to the gzip, you can't download it directly
10 # This will get fixed as soon as hosted can create attachments directly
11
12 Source: https://hosted.fedoraproject.org/projects/smolt/attachment/wiki/WikiStart/%{name}-%{version}.tar.gz
13 Patch0: smolt-0.9.8.1-sme.patch
14 Patch1: smolt-0.9.8.1-sme.patch2
15 Patch2: smolt-0.9.8.1-sme.patch3
16 Patch3: smolt-0.9.8.1-weekly.patch
17 Patch4: smolt-0.9.8.1-motd.patch
18 Patch5: smolt-0.9.8.1-smoonURL.patch
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
21 BuildArch: noarch
22 Requires: dbus-python
23 BuildRequires: gettext
24 BuildRequires: /usr/bin/msgfmt.py
25 BuildRequires: desktop-file-utils
26
27 Requires(post): /sbin/chkconfig
28 Requires(preun): /sbin/chkconfig
29 Requires(preun): /sbin/service
30 Requires(postun): /sbin/service
31
32 %description
33 The Fedora hardware profiler is a server-client system that does a hardware
34 scan against a machine and sends the results to a public Fedora Project
35 turbogears server. The sends are anonymous and should not contain any private
36 information other than the physical hardware information and basic OS info.
37
38 This package contains the client
39
40 %package server
41 Summary: Fedora hardware profiler server
42 Group: Applications/Internet
43 Requires: smolt = %{version}-%{release}
44 Requires: TurboGears
45
46 %description server
47 The Fedora hardware profiler is a server-client system that does a hardware
48 scan against a machine and sends the results to a public Fedora Project
49 turbogears server. The sends are anonymous and should not contain any private
50 information other than the physical hardware information and basic OS info.
51
52 This package contains the server portion
53
54 %package firstboot
55 Summary: Fedora hardware profile firstboot
56 Group: Applications/Internet
57 Requires: smolt = %{version}-%{release}
58
59 %description firstboot
60 This provides firstboot integration for smolt. It has been broken into a
61 separate package so firstboot isn't a requisite to use smolt.
62
63 %package gui
64 Summary: Fedora hardware profiler gui
65 Group: Applications/Internet
66 Requires: smolt = %{version}-%{release}
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 %patch3 -p1
78 %patch4 -p1
79 %patch5 -p1
80
81 %build
82 cd client/
83 make
84
85 %install
86 %{__rm} -rf %{buildroot}
87 %{__install} -d -m 0755 smoon/ %{buildroot}/%{_datadir}/%{name}/smoon/
88 %{__cp} -adv smoon/* %{buildroot}/%{_datadir}/%{name}/smoon/
89
90 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/sysconfig/
91 %{__mkdir} -p %{buildroot}/%{_sysconfdir}/cron.d/
92 %{__mkdir} -p %{buildroot}/%{_bindir}
93 %{__mkdir} -p %{buildroot}/%{_datadir}/firstboot/modules/
94 %{__mkdir} -p %{buildroot}/%{_initrddir}
95 %{__mkdir} -p %{buildroot}/%{_datadir}/locale/
96 %{__mv} client/smoltFirstBoot.py %{buildroot}/%{_datadir}/firstboot/modules/smolt.py
97 %{__mv} client/smolt-init %{buildroot}/%{_initrddir}/smolt
98 %{__mv} client/smolt.cron.weekly %{buildroot}/%{_sysconfdir}/cron.d/smolt
99 %{__cp} -adv client/po/* %{buildroot}/%{_datadir}/locale/
100
101 find %{buildroot} -name \*.po\* -exec rm {} \;
102
103 touch %{buildroot}/%{_sysconfdir}/sysconfig/hw-uuid
104
105 %{__install} -d -m 0755 client/ %{buildroot}/%{_datadir}/%{name}/client/
106 %{__install} -d -m 0755 client/icons/ %{buildroot}/%{_datadir}/%{name}/client/icons/
107 %{__cp} -adv client/*.py %{buildroot}/%{_datadir}/%{name}/client/
108
109 # Icons
110 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/
111 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/
112 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/24x24/apps/
113 %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/
114 %{__mkdir} -p %{buildroot}/%{_datadir}/firstboot/pixmaps/
115 %{__mv} client/icons/smolt-icon-16.png %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/smolt.png
116 %{__mv} client/icons/smolt-icon-22.png %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/smolt.png
117 %{__mv} client/icons/smolt-icon-24.png %{buildroot}/%{_datadir}/icons/hicolor/24x24/apps/smolt.png
118 %{__mv} client/icons/smolt-icon-32.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/smolt.png
119 %{__cp} -adv client/icons/* %{buildroot}/%{_datadir}/%{name}/client/icons/
120 %{__cp} -adv client/icons/smolt-icon-48.png %{buildroot}/%{_datadir}/firstboot/pixmaps/smolt.png
121
122 %{__mkdir} -p %{buildroot}/%{_datadir}/%{name}/doc
123 %{__install} -p -m 0644 doc/PrivacyPolicy %{buildroot}/%{_datadir}/%{name}/doc
124
125 ln -s %{_datadir}/%{name}/client/sendProfile.py %{buildroot}/%{_bindir}/smoltSendProfile
126 ln -s %{_datadir}/%{name}/client/deleteProfile.py %{buildroot}/%{_bindir}/smoltDeleteProfile
127 ln -s %{_datadir}/%{name}/client/smoltGui.py %{buildroot}/%{_bindir}/smoltGui
128
129 %{__chmod} +x %{buildroot}/%{_datadir}/%{name}/client/*Profile.py
130 %{__chmod} +x %{buildroot}/%{_datadir}/%{name}/client/smoltGui.py
131 %{__chmod} +x %{buildroot}/%{_initrddir}/smolt
132
133 desktop-file-install --vendor='fedora' --dir=%{buildroot}/%{_datadir}/applications client/smolt.desktop
134
135 %find_lang %{name}
136
137 %clean
138 rm -rf %{buildroot}
139
140 %post
141 /sbin/chkconfig --add smolt
142 if ! [ -f %{_sysconfdir}/sysconfig/hw-uuid ]
143 then
144 /bin/cat /proc/sys/kernel/random/uuid > %{_sysconfdir}/sysconfig/hw-uuid
145 /bin/chmod 0644 %{_sysconfdir}/sysconfig/hw-uuid
146 /bin/chown root:root %{_sysconfdir}/sysconfig/hw-uuid
147 fi
148
149 %preun
150 if [ $1 = 0 ]; then
151 /sbin/service smolt stop >/dev/null 2>&1
152 /sbin/chkconfig --del smolt
153 fi
154
155 %files -f %{name}.lang
156 %defattr(-,root,root,-)
157 %doc README GPL doc/*
158 %dir %{_datadir}/%{name}
159 %{_datadir}/%{name}/client
160 %{_datadir}/%{name}/doc
161 %{_bindir}/smoltSendProfile
162 %{_bindir}/smoltDeleteProfile
163 %{_sysconfdir}/cron.d/%{name}
164 %{_initrddir}/%{name}
165 %ghost %config(noreplace) %{_sysconfdir}/sysconfig/hw-uuid
166
167 %files server
168 %defattr(-,root,root,-)
169 %{_datadir}/%{name}/smoon
170
171 %files firstboot
172 %defattr(-,root,root,-)
173 %{_datadir}/firstboot/modules/smolt.py*
174 %{_datadir}/firstboot/pixmaps/smolt.png
175
176 %files gui
177 %defattr(-,root,root,-)
178 %{_datadir}/applications/fedora-smolt.desktop
179 %{_datadir}/icons/hicolor/*x*/apps/smolt.png
180 %{_bindir}/smoltGui
181
182 %changelog
183 * Mon Jan 7 2008 Stephen Noble <support@dungog.net> - 0.9.8.1-7
184 - change smoonURL to contribs.org [SME: 3265]
185
186 * Mon Jan 7 2008 Stephen Noble <support@dungog.net> - 0.9.8.1-6
187 - look in e-smith-release first [SME: 3258]
188
189 * Tue Jul 3 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-5
190 - Make smolt checkins weekly instead of monthly.
191
192 * Sun Jul 1 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-4
193 - Specify full paths so commands will run.
194
195 * Thu Jun 7 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-3
196 - More patches for both el4 and sme.
197
198 * Wed Jun 6 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-2
199 - Patch to work with el4 and point at sme smolt server.
200
201 * Thu May 24 2007 Mike McGrath <mmcgrath@redhat.com> - 0.9.8.1
202 - Upstream released new version
203
204 * Sun Apr 22 2007 Mike McGrath <mmcgrath@redhat.com> - 0.9.7.1-3
205 - Added smolt icons
206
207 * Tue Apr 17 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.6-4
208 - Add standard scriptlets in pre & post to handle init script - fixes #236776
209 - Use the find_lang macro to find/mark translations.
210
211 * Fri Apr 13 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.6-3
212 - Put a copy of the privacy policy where the client is expecting it.
213
214 * Wed Apr 11 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.6-2
215 - Upstream released new version.
216 - Much better support for languages on the client
217
218 * Fri Mar 16 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.4-1
219 - Upstream released new version
220 - Major changes
221 - Added initial i18n support (Probably doesn't work)
222
223 * Fri Mar 01 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.2-1
224 - Fixed firstboot
225 - Upstream released new version
226
227 * Fri Mar 01 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.1-1
228 - Upstream released new version, major smoon changes.
229
230 * Mon Feb 19 2007 Mike McGrath <mmcgrath@redhat.com> 0.9-1
231 - Upstream released new version
232
233 * Mon Feb 12 2007 Mike McGrath <imlinux@gmail.com> 0.8-1
234 - New version released, major changes in both server and client
235
236 * Wed Feb 07 2007 Mike McGrath <imlinux@gmail.com> 0.7-1
237 - Upstream released new version
238
239 * Tue Jan 31 2007 Mike McGrath <imlinux@gmail.com> 0.6.2-1
240 - Upstream released new version (bug in firstboot)
241
242 * Tue Jan 30 2007 Mike McGrath <imlinux@gmail.com> 0.6.1-3
243 - Removed LSB requirement for sparc
244
245 * Tue Jan 30 2007 Mike McGrath <imlinux@gmail.com> 0.6.1-2
246 - Added firstboot
247 - Upstream released new version
248
249 * Mon Jan 29 2007 Mike McGrath <imlinux@gmail.com> 0.6-1
250 - Upstream released new version
251 - Added new symlinks for smoltPrint and smoltSendProfile
252
253 * Thu Jan 25 2007 Mike McGrath <imlinux@gmail.com> 0.5-4
254 - Forgot Requires of dbus-python
255
256 * Wed Jan 24 2007 Mike McGrath <imlinux@gmail.com> 0.5-3
257 - Fixed silly bash syntax error
258
259 * Thu Jan 22 2007 Mike McGrath <imlinux@gmail.com> 0.5-2
260 - s/turbogears/TurboGears/
261
262 * Thu Jan 22 2007 Mike McGrath <imlinux@gmail.com> 0.5-1
263 - Upstream released new version
264 - Fixed small bug in post
265
266 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.4-2
267 - Added comment about the not directly available tar-gzip file
268
269 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.4-1
270 - New upstream version
271 - Altered post install section
272 - Added wget requires
273
274 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.3-1
275 - Upstream released new version
276
277 * Tue Jan 16 2006 Mike McGrath <imlinux@gmail.com> 0.2-1
278 - Initial Packaging

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