# $Id$ Name: smolt Summary: Fedora hardware profiler Version: 0.9.8.1 Release: 8%{?dist} License: GPL Group: Applications/Internet URL: http://hosted.fedoraproject.org/projects/smolt # Note: This is a link to the gzip, you can't download it directly # This will get fixed as soon as hosted can create attachments directly Source: https://hosted.fedoraproject.org/projects/smolt/attachment/wiki/WikiStart/%{name}-%{version}.tar.gz Patch0: smolt-0.9.8.1-sme.patch Patch1: smolt-0.9.8.1-sme.patch2 Patch2: smolt-0.9.8.1-sme.patch3 Patch3: smolt-0.9.8.1-weekly.patch Patch4: smolt-0.9.8.1-motd.patch Patch5: smolt-0.9.8.1-smoonURL.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: dbus-python BuildRequires: gettext BuildRequires: /usr/bin/msgfmt.py BuildRequires: desktop-file-utils Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service %description The Smolt hardware profiler is a server-client system that does a hardware scan against a machine and sends the results to a public Contribs project server. The sends are anonymous and should not contain any private information other than the physical hardware information and basic OS info. This package contains the client %package server Summary: Hardware profiler server Group: Applications/Internet Requires: smolt = %{version}-%{release} Requires: TurboGears %description server The Smolt hardware profiler is a server-client system that does a hardware scan against a machine and sends the results to a public Contribs project server. The sends are anonymous and should not contain any private information other than the physical hardware information and basic OS info. This package contains the server portion %package firstboot Summary: Hardware profile firstboot Group: Applications/Internet Requires: smolt = %{version}-%{release} %description firstboot This provides firstboot integration for smolt. It has been broken into a separate package so firstboot isn't a requisite to use smolt. %package gui Summary: Hardware profiler gui Group: Applications/Internet Requires: smolt = %{version}-%{release} %description gui Provides smolt's gui functionality. Not included in the default package to ensure that deps are kept small. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %build cd client/ make %install %{__rm} -rf %{buildroot} %{__install} -d -m 0755 smoon/ %{buildroot}/%{_datadir}/%{name}/smoon/ %{__cp} -adv smoon/* %{buildroot}/%{_datadir}/%{name}/smoon/ %{__mkdir} -p %{buildroot}/%{_sysconfdir}/sysconfig/ %{__mkdir} -p %{buildroot}/%{_sysconfdir}/cron.d/ %{__mkdir} -p %{buildroot}/%{_bindir} %{__mkdir} -p %{buildroot}/%{_datadir}/firstboot/modules/ %{__mkdir} -p %{buildroot}/%{_initrddir} %{__mkdir} -p %{buildroot}/%{_datadir}/locale/ %{__mv} client/smoltFirstBoot.py %{buildroot}/%{_datadir}/firstboot/modules/smolt.py %{__mv} client/smolt-init %{buildroot}/%{_initrddir}/smolt %{__mv} client/smolt.cron.weekly %{buildroot}/%{_sysconfdir}/cron.d/smolt %{__cp} -adv client/po/* %{buildroot}/%{_datadir}/locale/ find %{buildroot} -name \*.po\* -exec rm {} \; touch %{buildroot}/%{_sysconfdir}/sysconfig/hw-uuid %{__install} -d -m 0755 client/ %{buildroot}/%{_datadir}/%{name}/client/ %{__install} -d -m 0755 client/icons/ %{buildroot}/%{_datadir}/%{name}/client/icons/ %{__cp} -adv client/*.py %{buildroot}/%{_datadir}/%{name}/client/ # Icons %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/ %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/ %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/24x24/apps/ %{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/ %{__mkdir} -p %{buildroot}/%{_datadir}/firstboot/pixmaps/ %{__mv} client/icons/smolt-icon-16.png %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/smolt.png %{__mv} client/icons/smolt-icon-22.png %{buildroot}/%{_datadir}/icons/hicolor/22x22/apps/smolt.png %{__mv} client/icons/smolt-icon-24.png %{buildroot}/%{_datadir}/icons/hicolor/24x24/apps/smolt.png %{__mv} client/icons/smolt-icon-32.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/smolt.png %{__cp} -adv client/icons/* %{buildroot}/%{_datadir}/%{name}/client/icons/ %{__cp} -adv client/icons/smolt-icon-48.png %{buildroot}/%{_datadir}/firstboot/pixmaps/smolt.png %{__mkdir} -p %{buildroot}/%{_datadir}/%{name}/doc %{__install} -p -m 0644 doc/PrivacyPolicy %{buildroot}/%{_datadir}/%{name}/doc ln -s %{_datadir}/%{name}/client/sendProfile.py %{buildroot}/%{_bindir}/smoltSendProfile ln -s %{_datadir}/%{name}/client/deleteProfile.py %{buildroot}/%{_bindir}/smoltDeleteProfile ln -s %{_datadir}/%{name}/client/smoltGui.py %{buildroot}/%{_bindir}/smoltGui %{__chmod} +x %{buildroot}/%{_datadir}/%{name}/client/*Profile.py %{__chmod} +x %{buildroot}/%{_datadir}/%{name}/client/smoltGui.py %{__chmod} +x %{buildroot}/%{_initrddir}/smolt desktop-file-install --vendor='fedora' --dir=%{buildroot}/%{_datadir}/applications client/smolt.desktop %find_lang %{name} %clean rm -rf %{buildroot} %post /sbin/chkconfig --add smolt if ! [ -f %{_sysconfdir}/sysconfig/hw-uuid ] then /bin/cat /proc/sys/kernel/random/uuid > %{_sysconfdir}/sysconfig/hw-uuid /bin/chmod 0644 %{_sysconfdir}/sysconfig/hw-uuid /bin/chown root:root %{_sysconfdir}/sysconfig/hw-uuid fi %preun if [ $1 = 0 ]; then /sbin/service smolt stop >/dev/null 2>&1 /sbin/chkconfig --del smolt fi %files -f %{name}.lang %defattr(-,root,root,-) %doc README GPL doc/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/client %{_datadir}/%{name}/doc %{_bindir}/smoltSendProfile %{_bindir}/smoltDeleteProfile %{_sysconfdir}/cron.d/%{name} %{_initrddir}/%{name} %ghost %config(noreplace) %{_sysconfdir}/sysconfig/hw-uuid %files server %defattr(-,root,root,-) %{_datadir}/%{name}/smoon %files firstboot %defattr(-,root,root,-) %{_datadir}/firstboot/modules/smolt.py* %{_datadir}/firstboot/pixmaps/smolt.png %files gui %defattr(-,root,root,-) %{_datadir}/applications/fedora-smolt.desktop %{_datadir}/icons/hicolor/*x*/apps/smolt.png %{_bindir}/smoltGui %changelog * Sun Jan 20 2008 Stephen Noble - 0.9.8.1-8 - Change rpm description to refer to Contribs [SME: 3758] * Mon Jan 7 2008 Stephen Noble - 0.9.8.1-7 - change smoonURL to contribs.org [SME: 3265] * Mon Jan 7 2008 Stephen Noble - 0.9.8.1-6 - look in e-smith-release first [SME: 3258] * Tue Jul 3 2007 Shad L. Lords - 0.9.8.1-5 - Make smolt checkins weekly instead of monthly. * Sun Jul 1 2007 Shad L. Lords - 0.9.8.1-4 - Specify full paths so commands will run. * Thu Jun 7 2007 Shad L. Lords - 0.9.8.1-3 - More patches for both el4 and sme. * Wed Jun 6 2007 Shad L. Lords - 0.9.8.1-2 - Patch to work with el4 and point at sme smolt server. * Thu May 24 2007 Mike McGrath - 0.9.8.1 - Upstream released new version * Sun Apr 22 2007 Mike McGrath - 0.9.7.1-3 - Added smolt icons * Tue Apr 17 2007 Jeffrey C. Ollie - 0.9.6-4 - Add standard scriptlets in pre & post to handle init script - fixes #236776 - Use the find_lang macro to find/mark translations. * Fri Apr 13 2007 Jeffrey C. Ollie - 0.9.6-3 - Put a copy of the privacy policy where the client is expecting it. * Wed Apr 11 2007 Mike McGrath 0.9.6-2 - Upstream released new version. - Much better support for languages on the client * Fri Mar 16 2007 Mike McGrath 0.9.4-1 - Upstream released new version - Major changes - Added initial i18n support (Probably doesn't work) * Fri Mar 01 2007 Mike McGrath 0.9.2-1 - Fixed firstboot - Upstream released new version * Fri Mar 01 2007 Mike McGrath 0.9.1-1 - Upstream released new version, major smoon changes. * Mon Feb 19 2007 Mike McGrath 0.9-1 - Upstream released new version * Mon Feb 12 2007 Mike McGrath 0.8-1 - New version released, major changes in both server and client * Wed Feb 07 2007 Mike McGrath 0.7-1 - Upstream released new version * Tue Jan 31 2007 Mike McGrath 0.6.2-1 - Upstream released new version (bug in firstboot) * Tue Jan 30 2007 Mike McGrath 0.6.1-3 - Removed LSB requirement for sparc * Tue Jan 30 2007 Mike McGrath 0.6.1-2 - Added firstboot - Upstream released new version * Mon Jan 29 2007 Mike McGrath 0.6-1 - Upstream released new version - Added new symlinks for smoltPrint and smoltSendProfile * Thu Jan 25 2007 Mike McGrath 0.5-4 - Forgot Requires of dbus-python * Wed Jan 24 2007 Mike McGrath 0.5-3 - Fixed silly bash syntax error * Thu Jan 22 2007 Mike McGrath 0.5-2 - s/turbogears/TurboGears/ * Thu Jan 22 2007 Mike McGrath 0.5-1 - Upstream released new version - Fixed small bug in post * Thu Jan 18 2006 Mike McGrath 0.4-2 - Added comment about the not directly available tar-gzip file * Thu Jan 18 2006 Mike McGrath 0.4-1 - New upstream version - Altered post install section - Added wget requires * Thu Jan 18 2006 Mike McGrath 0.3-1 - Upstream released new version * Tue Jan 16 2006 Mike McGrath 0.2-1 - Initial Packaging