# $Id$ # This is RPM spec file for parsemce # # This file is currently not officially # maintained, so the informations here are probably totally obsolete, and you # should update them before making a package. # # CERN: done. # When you release the rpm packages, remember to provide correct packager # information in the Packager-field below. Also please GPG sign the packages # to be released. The best place for installers to find your GPG public key # would be PGP-keyservers. ie. < ldap://keyserver.pgp.com > # # This file was contributed by # # Spec file format from < http://www.rpm.org/RPM-HOWTO/build.html > # Summary: Linux Machine check exception handler parser. Name: parsemce Version: 0.0.9 Release: 2dm.el4 License: Open Software License 1.1 #Vendor: Dave Jones Packager: Durval Menezes, based on original specfile from Jan Iven Group: Applications/System #NB: URL for the source below is fake, current source code seems to be at http://www.codemonkey.org.uk/cruft/parsemce.c (Durval Menezes, 2006/08/26) Source: http://www.codemonkey.org.uk/projects/parsemce/parsemce_0.0.9.orig.tar.gz Source1: http://www.opensource.org/licenses/osl-1.1.txt Patch1: parsemce-man_page_example.patch #NB: URL below is no longer valid (returns error 404), see other NB above (Durval Menezes, 2006/08/26) URL: http://www.codemonkey.org.uk/projects/parsemce/ BuildRoot: /tmp/%{name}-%{version}-root %description parsemce is a Linux Machine check exception (MCE) handler parser, written by Dave Jones . Usage examples: -> From system logs: parsemce -f /var/log/messages -> From console output (if machine hanged and nothing went into logs): Console: CPU 0: Machine Check Exception: 0000000000000004 Bank 4: b200000000040151 Kernel panic: CPU context corrupt Command: ./parsemce -b 4 -s b200000000040151 -e 0000000000000004 -a 0 ## %prep %setup -q -n %{name} %patch1 cp %{SOURCE1} . ## %build make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" parsemce ## %install mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 install -m 755 parsemce $RPM_BUILD_ROOT/%{_bindir}/ install -m 644 parsemce.1 $RPM_BUILD_ROOT/%{_mandir}/man1/ ## %clean if [ "$RPM_BUILD_ROOT" != "/" ]; then rm -rf $RPM_BUILD_ROOT else echo "Your $RPM_BUILD_ROOT in the spec file is insane!" exit 1 fi ## %files %defattr(-,root,root) %{_bindir}/parsemce %{_mandir}/man1/p* %doc osl-1.1.txt ChangeLog TODO %changelog * Sat Aug 26 2006 Durval Menezes 0.0.9-2dm.el4 - Added examples from top of source file to man page * Sat Aug 26 2006 Durval Menezes 0.0.9-1dm.el4 - repackaged for CentOS/RHEL 4 * Fri Jun 16 2006 Jan Iven - repackaged for CERN * Mon Aug 09 2003 Dave Jones - Updated spec to reflect new addresses/version. * Mon Apr 28 2003 Jouni dot Lohikoski at iki fi - parsemce.spec file, the first version.