/[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.2 - (show annotations) (download)
Sun Jul 1 22:01:32 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: smolt-0_9_8_1-4_el5_sme
Changes since 1.1: +6 -1 lines
Updates

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

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