Group :: Development/Debuggers
RPM: crash
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# SPDX-License-Identifier: GPL-2.0-only
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict,unresolved=normal
Name: crash
Version: 8.0.3
Release: alt1
Summary: Linux kernel crash utility
Group: Development/Debuggers
License: GPL-3.0-only
Url: https://crash-utility.github.io/
Vcs: https://github.com/crash-utility/crash.git
# Docs: https://crash-utility.github.io/crash_whitepaper.html
# Mailing list: https://www.redhat.com/archives/crash-utility/
# Extensions Url: https://crash-utility.github.io/extensions.html
# Extensions Vcs: https://github.com/crash-utility/crash-extensions.git
Source0: %name-%version.tar
Source1: gdb-10.2.tar.gz
ExcludeArch: e2k
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: makeinfo
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
%description
The core analysis suite is a self-contained tool that can be used to
investigate either live systems, kernel core dumps created from dump
creation facilities.
Whitepaper: https://crash-utility.github.io/crash_whitepaper.html
Note: You will need -debuginfo package for the current kernel installed
for this tool to work!
%prep
%setup
install -m644 %SOURCE1 .
mv crash-extensions/*.c extensions/
tar xvf crash-extensions/crash-gcore-command-* -C extensions --strip-components=1
tar xvf crash-extensions/ptdump-* -C extensions --strip-components=1
%build
%add_optflags $(getconf LFS_CFLAGS)
%make_build --output-sync=none RPMPKG=%version-%release CFLAGS="%optflags" CXXFLAGS="%optflags" V=1
# Build what builds. Does not support -j.
%make -ki extensions
%install
%makeinstall_std
install -Dp -m0644 crash.8 %buildroot%_man8dir/crash.8
install -Dp -m0644 defs.h %buildroot%_includedir/crash/defs.h
mkdir -p %buildroot%_libdir/crash/extensions
install -p -m0644 extensions/*.so %buildroot%_libdir/crash/extensions
%files
%doc README COPYING3
%_bindir/crash
%_includedir/crash
%_man8dir/crash.8*
%_libdir/crash
%changelog
…
Full changelog you can see here
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict,unresolved=normal
Name: crash
Version: 8.0.3
Release: alt1
Summary: Linux kernel crash utility
Group: Development/Debuggers
License: GPL-3.0-only
Url: https://crash-utility.github.io/
Vcs: https://github.com/crash-utility/crash.git
# Docs: https://crash-utility.github.io/crash_whitepaper.html
# Mailing list: https://www.redhat.com/archives/crash-utility/
# Extensions Url: https://crash-utility.github.io/extensions.html
# Extensions Vcs: https://github.com/crash-utility/crash-extensions.git
Source0: %name-%version.tar
Source1: gdb-10.2.tar.gz
ExcludeArch: e2k
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: makeinfo
BuildRequires: ncurses-devel
BuildRequires: zlib-devel
%description
The core analysis suite is a self-contained tool that can be used to
investigate either live systems, kernel core dumps created from dump
creation facilities.
Whitepaper: https://crash-utility.github.io/crash_whitepaper.html
Note: You will need -debuginfo package for the current kernel installed
for this tool to work!
%prep
%setup
install -m644 %SOURCE1 .
mv crash-extensions/*.c extensions/
tar xvf crash-extensions/crash-gcore-command-* -C extensions --strip-components=1
tar xvf crash-extensions/ptdump-* -C extensions --strip-components=1
%build
%add_optflags $(getconf LFS_CFLAGS)
%make_build --output-sync=none RPMPKG=%version-%release CFLAGS="%optflags" CXXFLAGS="%optflags" V=1
# Build what builds. Does not support -j.
%make -ki extensions
%install
%makeinstall_std
install -Dp -m0644 crash.8 %buildroot%_man8dir/crash.8
install -Dp -m0644 defs.h %buildroot%_includedir/crash/defs.h
mkdir -p %buildroot%_libdir/crash/extensions
install -p -m0644 extensions/*.so %buildroot%_libdir/crash/extensions
%files
%doc README COPYING3
%_bindir/crash
%_includedir/crash
%_man8dir/crash.8*
%_libdir/crash
%changelog
…
Full changelog you can see here