/[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.3 - (hide annotations) (download)
Tue Jul 3 13:46:00 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: smolt-0_9_8_1-5_el4_sme
Changes since 1.2: +7 -2 lines
Updates

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

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