crash-trace-command/crash-trace-command.spec

43 lines
1.3 KiB
RPMSpec
Raw Normal View History

2019-11-28 20:19:57 +08:00
Name: crash-trace-command
Version: 3.0
Release: 1
2019-11-28 20:19:57 +08:00
Summary: Crash utility's trace extension module
License: GPLv2
Source: crash-trace-command-%{version}.tar.gz
URL: http://people.redhat.com/anderson/extensions/crash-trace-command-%{version}.tar.gz
Buildroot: %{_tmppath}/crash-trace-command-root
BuildRequires: zlib-devel lzo-devel snappy-devel crash-devel >= 7.3.0-2 gcc
Requires: trace-cmd crash >= 7.3.0-2
Patch0001: 0001-Makefile-set-DT_SONAME-to-trace.so.patch
Patch0002: 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch
2019-11-28 20:19:57 +08:00
%description
This package provides a trace extension module for the crash utility,
allowing it to read ftrace data from a core dump file.
%prep
%autosetup -n crash-trace-%{version} -p1
2019-11-28 20:19:57 +08:00
%build
make
%install
install -d %{buildroot}%{_libdir}/crash/extensions/
cp %{_builddir}/crash-trace-%{version}/trace.so %{buildroot}%{_libdir}/crash/extensions/
2019-11-28 20:19:57 +08:00
%files
%defattr(-,root,root)
%{_libdir}/crash/extensions/trace.so
%doc COPYING
%changelog
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.0-1
- Upgrade to version 3.0
2021-06-02 11:07:19 +08:00
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 2.0-16
- Add gcc in BuildRequires
2019-11-28 20:19:57 +08:00
* Sat Nov 23 2019 fengbing <fengbing7@huawei.com> - 2.0-15
- Package init