/[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.1 - (hide annotations) (download)
Tue Jun 12 17:43:17 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: smolt-0_9_8_1-3_el4_sme
Import on branch sme7 of package smolt-0.9.8.1-3.el4.sme.src.rpm

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

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