2019-09-30 10:35:57 -04:00
|
|
|
Name: crash
|
2021-02-01 11:37:13 +08:00
|
|
|
Version: 7.2.9
|
2021-06-29 15:42:34 +08:00
|
|
|
Release: 4
|
2019-09-30 10:35:57 -04:00
|
|
|
Summary: Linux kernel crash utility.
|
|
|
|
|
License: GPLv3
|
2020-12-12 10:06:22 +08:00
|
|
|
URL: https://crash-utility.github.io
|
2021-02-01 11:37:13 +08:00
|
|
|
Source0: https://github.com/crash-utility/crash/archive/%{version}.tar.gz
|
2020-12-12 10:06:22 +08:00
|
|
|
Source1: http://ftp.gnu.org/gnu/gdb/gdb-7.6.tar.gz
|
2019-09-30 10:35:57 -04:00
|
|
|
|
2021-04-08 22:59:03 +08:00
|
|
|
Patch0: lzo_snappy.patch
|
|
|
|
|
Patch1: use_system_readline_v3.patch
|
2019-09-30 10:35:57 -04:00
|
|
|
|
2021-04-08 22:59:03 +08:00
|
|
|
Patch9000: add-SDEI-stack-resolution.patch
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
BuildRequires: ncurses-devel zlib-devel lzo-devel snappy-devel
|
2021-06-29 15:42:34 +08:00
|
|
|
BuildRequires: gcc gcc-c++ bison readline-devel m4
|
2019-09-30 10:35:57 -04:00
|
|
|
Requires: binutils
|
2019-11-06 19:04:54 +08:00
|
|
|
|
2019-09-30 10:35:57 -04:00
|
|
|
Provides: bundled(libiberty) bundled(gdb) = 7.6
|
|
|
|
|
|
|
|
|
|
%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 such as kdump, kvmdump, xendump, the netdump and
|
|
|
|
|
diskdump packages offered by Red Hat, the LKCD kernel patch, the mcore
|
|
|
|
|
kernel patch created by Mission Critical Linux, as well as other formats
|
|
|
|
|
created by manufacturer-specific firmware.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: the development kit of crash.
|
|
|
|
|
Requires: %{name} = %{version}, zlib-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
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 such as kdump, kvmdump, xendump, the netdump and
|
|
|
|
|
diskdump packages offered by Red Hat, the LKCD kernel patch, the mcore
|
|
|
|
|
kernel patch created by Mission Critical Linux, as well as other formats
|
|
|
|
|
created by manufacturer-specific firmware.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
2020-12-12 10:06:22 +08:00
|
|
|
cp %{SOURCE1} .
|
2021-05-10 19:21:50 +08:00
|
|
|
make -j RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}"
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
%make_install
|
|
|
|
|
install -D -m 0644 crash.8 %{buildroot}%{_mandir}/man8/crash.8
|
2019-11-06 19:04:54 +08:00
|
|
|
install -D -m 0644 defs.h %{buildroot}%{_includedir}/%{name}/defs.h
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%files
|
2019-11-06 19:04:54 +08:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%doc README
|
|
|
|
|
%license COPYING3
|
2019-09-30 10:35:57 -04:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man8/crash.8*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-06-29 15:42:34 +08:00
|
|
|
* Tue Jun 29 2021 zhouwenpei <zhouwenpei1@huawei.com> - 7.2.9-4
|
|
|
|
|
- add buildrequires m4
|
|
|
|
|
|
2021-05-10 19:21:50 +08:00
|
|
|
* Mon May 10 2021 shixuantong <shixuantong@huawei.com> - 7.2.9-3
|
|
|
|
|
- add -j option for building efficiency optimization
|
|
|
|
|
|
2021-04-08 22:59:03 +08:00
|
|
|
* Thu Apr 08 2021 shixuantong <shixuantong@huawei.com> - 7.2.9-2
|
|
|
|
|
- fix patch issue in upgrade version commit
|
|
|
|
|
|
2021-02-01 11:37:13 +08:00
|
|
|
* Mon Feb 1 2021 liudabo <liudabo1@huawei.com> - 7.2.9-1
|
|
|
|
|
- Upgrade version to 7.2.9
|
|
|
|
|
|
2020-12-12 10:06:22 +08:00
|
|
|
* Sat Dec 12 2020 shixuantong <shixuantong@huawei.com> - 7.2.8-4
|
|
|
|
|
- Update Source0, URL, add Source1 and update tarball from upstream release
|
|
|
|
|
|
2020-09-08 17:19:25 +08:00
|
|
|
* Tue Sep 8 2020 shixuantong <shixuantong@huawei.com> - 7.2.8-3
|
|
|
|
|
- Restore Source0 and URL
|
|
|
|
|
|
2020-07-28 09:52:14 +08:00
|
|
|
* Tue Jul 28 2020 xinghe <xinghe1@huawei.com> - 7.2.8-2
|
|
|
|
|
- repair the source0
|
|
|
|
|
|
2020-06-13 19:20:03 +08:00
|
|
|
* Mon Jul 27 2020 xinghe <xinghe1@huawei.com> - 7.2.8-1
|
|
|
|
|
- update version to 7.2.8
|
|
|
|
|
|
2020-01-19 11:51:27 +08:00
|
|
|
* Sun Jan 19 2020 Yeqing Peng <pengyeqing@huawei.com> - 7.2.6-3
|
|
|
|
|
- fix parse vmcore fail.
|
|
|
|
|
|
2019-11-06 19:04:54 +08:00
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 7.2.6-2
|
|
|
|
|
- Package rebuild.
|
|
|
|
|
|
2019-09-30 10:35:57 -04:00
|
|
|
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 7.2.6-1
|
2019-11-06 19:04:54 +08:00
|
|
|
- Package init.
|