File ksymoops.spec of Package ksymoops

#
# spec file for package ksymoops
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           ksymoops
BuildRequires:  binutils-devel
Version:        2.4.11
Release:        147
Summary:        Kernel Oops and Error Message Decoder
License:        GPLv2+
Requires:       binutils
Group:          Development/Tools/Debuggers
Url:            ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/
AutoReqProv:    on
Provides:       base:/usr/sbin/ksymoops
Source:         ftp://ftp.kernel.org/pub/linux/utils/kernel/v2.4/%{name}-%{version}.tar.bz2
Patch:          kallsyms-System.map-path.diff
Patch1:         ksymoops-ppcsymbols.diff
Patch2:         ksymoops-optflags.patch
Patch3:         ksymoops-overflow.patch
Patch4:         manpage-perm.diff
Patch5:         ksymoops-bfd.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Linux kernel produces error messages that contain machine specific
numbers that are meaningless for debugging.  Ksymoops reads
machine-specific files and the error log and converts the addresses to
meaningful symbols and offsets.



Authors:
--------
    Keith Owens <kaos@ocs.com.au>

%prep
%setup
%patch -p1
%patch2 -p1
%patch3 -p1
%ifarch ppc ppc64
%patch1 -p1
%endif
%patch4 -p1
%patch5
# ---------------------------------------------------------------------------

%build
make all OPTFLAGS="$RPM_OPT_FLAGS"
# ---------------------------------------------------------------------------

%install
make \
	INSTALL_PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
	INSTALL_MANDIR=$RPM_BUILD_ROOT/%{_mandir} \
	install
# ---------------------------------------------------------------------------

%clean
# ---------------------------------------------------------------------------

%files
%defattr(-,root,root)
%{_bindir}/ksymoops
%doc %{_mandir}/man8/ksymoops.8.gz
%doc COPYING Changelog INSTALL README README.XFree86

%changelog
openSUSE Build Service is sponsored by