File kdumpid.spec of Package kdumpid

#
# spec file for package kdumpid
#
# 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/
#

# norootforbuild

#Url:

Name:           kdumpid
BuildRequires:  zlib-devel
%if 0%{?suse_version} < 1030
BuildRequires:  binutils
%else
BuildRequires:  binutils-devel
%endif
License:        GPL-2.0+
Group:          System/Kernel
Version:        0.92
Release:        0
Summary:        Utility to extract information from vmcores
Url:            http://sourceforge.net/p/kdumpid
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         kdumpid-%{version}.tar.bz2

%description
Kdumpid extracts information such as type of dump, architecture
and kernel version from raw vmcores (Kernel memory dumps).


%prep
%setup

%build
make CUSTOM_CFLAGS="${CFLAGS:-%optflags}"

%install
export BINDIR=%{_bindir}
export MANDIR=%{_mandir}
%{?make_install} %{!?make_install:make install DESTDIR=$RPM_BUILD_ROOT}

%files
%defattr (-, root, root)
%{_bindir}/*
%{_mandir}/man1/*

%changelog