List Info

Thread: parsemce: contributed RPM submission




parsemce: contributed RPM submission
user name
2006-08-26 16:06:21
Hello,

Here's my submission for a new package: parsemce, an MCE
(Machine Check
Exception) parser, very useful to help interpret kernel MCE
messages.

The URL to the SRPM is: 
	http://www.durval.com.br/RPMS/el4/parse
mce/parsemce-0.0.9-2dm.el4.src.rpm

I've attached the .spec file.

Best Regards,
-- 
   Durval Menezes (durval AT tmp DOT com DOT br, http://www.tmp.com.br/)
# $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 <Jouni dot Lohikoski at
iki dot fi>
#
# Spec file format from < http://www.rp
m.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 <davejredhat.com>
Packager: Durval Menezes, based on original specfile from
Jan Iven <jan.ivencern.ch>
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/p
arsemce/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/%-%-root


%description
parsemce is a Linux Machine check exception (MCE) handler
parser,
written by Dave Jones <davejredhat.com>.

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 %
%patch1
cp % .

##
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" parsemce

##
%install
mkdir -p $RPM_BUILD_ROOT/%
mkdir -p $RPM_BUILD_ROOT/%/man1
install -m 755 parsemce $RPM_BUILD_ROOT/%/
install -m 644 parsemce.1 $RPM_BUILD_ROOT/%/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)
%/parsemce
%/man1/p*
%doc osl-1.1.txt ChangeLog TODO


%changelog
* Sat Aug 26 2006 Durval Menezes <durval AT tmp DOT com
DOT br> 0.0.9-2dm.el4
- Added examples from top of source file to man page

* Sat Aug 26 2006 Durval Menezes <durval AT tmp DOT com
DOT br> 0.0.9-1dm.el4
- repackaged for CentOS/RHEL 4

* Fri Jun 16 2006 Jan Iven <jan.ivencern.ch>
- repackaged for CERN

* Mon Aug 09 2003 Dave Jones <davejredhat.com>
- Updated spec to reflect new addresses/version.

* Mon Apr 28 2003 Jouni dot Lohikoski at iki fi
- parsemce.spec file, the first version.

_______________________________________________
CentOS-devel mailing list
CentOS-develcentos.org
http://lists.centos.org/mailman/listinfo/centos-devel
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )