crash-trace-command/crash-trace-command.spec
herengui 42ab621292 添加龙芯和申威架构支持
Signed-off-by: herengui <herengui@kylinsec.com.cn>
(cherry picked from commit 87c261a0384dd6db99e20cc20e04bcc4f71bd101)
2023-09-06 14:54:14 +08:00

52 lines
1.6 KiB
RPMSpec

Name: crash-trace-command
Version: 3.0
Release: 3
Summary: Crash utility's trace extension module
License: GPLv2
Source: https://github.com/fujitsu/crash-trace/archive/v%{version}/%{name}-%{version}.tar.gz
URL: https://github.com/fujitsu/crash-trace/
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
Patch1000: 1000-add-sw_64-support-not-upstream-modified.patch
Patch1001: 1001-add-loongarch-support-not-upstream-modified.patch
%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
%build
make
%install
install -d %{buildroot}%{_libdir}/crash/extensions/
cp %{_builddir}/crash-trace-%{version}/trace.so %{buildroot}%{_libdir}/crash/extensions/
%files
%defattr(-,root,root)
%{_libdir}/crash/extensions/trace.so
%doc COPYING
%changelog
* Thu Aug 10 2023 herengui <herengui@kylinsec.com.cn> - 3.0-3
- Add support for sw_64 and loongarch64
* Mon Nov 14 2022 yaoxin <yaoxin30@h-partners.com> - 3.0-2
- Modify invalid Source and URL
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.0-1
- Upgrade to version 3.0
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 2.0-16
- Add gcc in BuildRequires
* Sat Nov 23 2019 fengbing <fengbing7@huawei.com> - 2.0-15
- Package init