75 lines
2.1 KiB
RPMSpec
75 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package makedumpfile (Version 1.3.3)
|
|
#
|
|
# Copyright (c) 2009 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
|
|
|
|
|
|
Name: makedumpfile
|
|
BuildRequires: zlib-devel
|
|
%if 0%{?suse_version} > 1100
|
|
BuildRequires: libdw-devel
|
|
%else
|
|
BuildRequires: libdw-devel libdw1 libelf-devel libelf0 libelf1
|
|
%endif
|
|
License: GPL v2 or later
|
|
Version: 1.3.3
|
|
Release: 1
|
|
Summary: Partial kernel dump
|
|
Group: System/Kernel
|
|
Url: https://sourceforge.net/projects/makedumpfile/
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Patch0: %{name}-coptflags.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
ExcludeArch: s390 s390x ppc
|
|
|
|
%description
|
|
makedumpfile is a dump program to shorten the size of dump file. It
|
|
copies only the necessary pages for analysis with various dump levels,
|
|
and can compress the page data. The obtained dump file can by analyzed
|
|
via gdb or crash utility.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
NEC Corporation
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
make COPTFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT/bin
|
|
install -c -m 0755 makedumpfile $RPM_BUILD_ROOT/bin
|
|
install -c -m 0755 makedumpfile-R.pl $RPM_BUILD_ROOT/bin
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
|
install -c -m 0644 makedumpfile.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README COPYING IMPLEMENTATION
|
|
%doc %{_mandir}/man?/*
|
|
/bin/*
|
|
|
|
%changelog
|