/[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.5 - (show annotations) (download)
Sun Jan 20 13:03:37 2008 UTC (16 years, 4 months ago) by bytegw
Branch: MAIN
CVS Tags: smolt-0_9_8_1-8_el4_sme
Changes since 1.4: +13 -10 lines
Updates

1 Name: smolt
2 Summary: Fedora hardware profiler
3 Version: 0.9.8.1
4 Release: 8%{?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 Smolt hardware profiler is a server-client system that does a hardware
34 scan against a machine and sends the results to a public Contribs project
35 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: Hardware profiler server
42 Group: Applications/Internet
43 Requires: smolt = %{version}-%{release}
44 Requires: TurboGears
45
46 %description server
47 The Smolt hardware profiler is a server-client system that does a hardware
48 scan against a machine and sends the results to a public Contribs project
49 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: 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: 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 * Sun Jan 20 2008 Stephen Noble <support@dungog.net> - 0.9.8.1-8
184 - Change rpm description to refer to Contribs [SME: 3758]
185
186 * Mon Jan 7 2008 Stephen Noble <support@dungog.net> - 0.9.8.1-7
187 - change smoonURL to contribs.org [SME: 3265]
188
189 * Mon Jan 7 2008 Stephen Noble <support@dungog.net> - 0.9.8.1-6
190 - look in e-smith-release first [SME: 3258]
191
192 * Tue Jul 3 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-5
193 - Make smolt checkins weekly instead of monthly.
194
195 * Sun Jul 1 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-4
196 - Specify full paths so commands will run.
197
198 * Thu Jun 7 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-3
199 - More patches for both el4 and sme.
200
201 * Wed Jun 6 2007 Shad L. Lords <slords@lordsfam.net> - 0.9.8.1-2
202 - Patch to work with el4 and point at sme smolt server.
203
204 * Thu May 24 2007 Mike McGrath <mmcgrath@redhat.com> - 0.9.8.1
205 - Upstream released new version
206
207 * Sun Apr 22 2007 Mike McGrath <mmcgrath@redhat.com> - 0.9.7.1-3
208 - Added smolt icons
209
210 * Tue Apr 17 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.6-4
211 - Add standard scriptlets in pre & post to handle init script - fixes #236776
212 - Use the find_lang macro to find/mark translations.
213
214 * Fri Apr 13 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.6-3
215 - Put a copy of the privacy policy where the client is expecting it.
216
217 * Wed Apr 11 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.6-2
218 - Upstream released new version.
219 - Much better support for languages on the client
220
221 * Fri Mar 16 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.4-1
222 - Upstream released new version
223 - Major changes
224 - Added initial i18n support (Probably doesn't work)
225
226 * Fri Mar 01 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.2-1
227 - Fixed firstboot
228 - Upstream released new version
229
230 * Fri Mar 01 2007 Mike McGrath <mmcgrath@redhat.com> 0.9.1-1
231 - Upstream released new version, major smoon changes.
232
233 * Mon Feb 19 2007 Mike McGrath <mmcgrath@redhat.com> 0.9-1
234 - Upstream released new version
235
236 * Mon Feb 12 2007 Mike McGrath <imlinux@gmail.com> 0.8-1
237 - New version released, major changes in both server and client
238
239 * Wed Feb 07 2007 Mike McGrath <imlinux@gmail.com> 0.7-1
240 - Upstream released new version
241
242 * Tue Jan 31 2007 Mike McGrath <imlinux@gmail.com> 0.6.2-1
243 - Upstream released new version (bug in firstboot)
244
245 * Tue Jan 30 2007 Mike McGrath <imlinux@gmail.com> 0.6.1-3
246 - Removed LSB requirement for sparc
247
248 * Tue Jan 30 2007 Mike McGrath <imlinux@gmail.com> 0.6.1-2
249 - Added firstboot
250 - Upstream released new version
251
252 * Mon Jan 29 2007 Mike McGrath <imlinux@gmail.com> 0.6-1
253 - Upstream released new version
254 - Added new symlinks for smoltPrint and smoltSendProfile
255
256 * Thu Jan 25 2007 Mike McGrath <imlinux@gmail.com> 0.5-4
257 - Forgot Requires of dbus-python
258
259 * Wed Jan 24 2007 Mike McGrath <imlinux@gmail.com> 0.5-3
260 - Fixed silly bash syntax error
261
262 * Thu Jan 22 2007 Mike McGrath <imlinux@gmail.com> 0.5-2
263 - s/turbogears/TurboGears/
264
265 * Thu Jan 22 2007 Mike McGrath <imlinux@gmail.com> 0.5-1
266 - Upstream released new version
267 - Fixed small bug in post
268
269 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.4-2
270 - Added comment about the not directly available tar-gzip file
271
272 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.4-1
273 - New upstream version
274 - Altered post install section
275 - Added wget requires
276
277 * Thu Jan 18 2006 Mike McGrath <imlinux@gmail.com> 0.3-1
278 - Upstream released new version
279
280 * Tue Jan 16 2006 Mike McGrath <imlinux@gmail.com> 0.2-1
281 - Initial Packaging

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