crash-gcore-command/crash-gcore-command.spec

49 lines
1.5 KiB
RPMSpec
Raw Normal View History

%global reponame crash-gcore
2019-11-29 18:03:16 +08:00
Name: crash-gcore-command
2023-06-21 10:34:01 +08:00
Version: 1.6.4
Release: 1
2019-11-29 18:03:16 +08:00
Summary: Command of Gcore for Crash utility
License: GPLv2
2023-06-21 10:34:01 +08:00
URL: https://github.com/fujitsu/crash-gcore
Source: https://github.com/fujitsu/crash-gcore/archive/v%{version}/%{name}-%{version}.tar.gz
2019-11-29 18:03:16 +08:00
Buildroot: %{_tmppath}/%{name}-root
2023-06-21 10:34:01 +08:00
BuildRequires: zlib-devel lzo-devel snappy-devel crash-devel >= 5.1.5 gcc make
2019-11-29 18:03:16 +08:00
Requires: crash >= 5.1.5
2023-06-21 10:34:01 +08:00
Patch0: crash-gcore-1.6.4-coredump-fix-building-failure-due-to-undefined-macro.patch
Patch1: 0001-add-stdbool.h-to-fix-build-error.patch
2019-11-29 18:03:16 +08:00
%description
The crash-gcore-command packages contain an extension module for the crash utility
that adds a "gcore" command which can create a core dump file of a user-space task
that was running in a kernel dumpfile.
%prep
%autosetup -n %{reponame}-%{version} -p1
2019-11-29 18:03:16 +08:00
%build
%make_build -C src -f gcore.mk
2019-11-29 18:03:16 +08:00
%install
install -D %{_builddir}/%{reponame}-%{version}/src/gcore.so %{buildroot}%{_libdir}/crash/extensions/gcore.so
2019-11-29 18:03:16 +08:00
%files
%defattr(-,root,root)
%doc COPYING
%{_libdir}/crash/extensions/gcore.so
%changelog
2023-06-21 10:34:01 +08:00
* Wed Jun 21 2023 chenchen <chen_aka_jan@163.com> - 1.6.4-1
- Upgrade to version 1.6.4
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 1.6.3-1
- Upgrade to version 1.6.3
2021-06-02 11:06:54 +08:00
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 1.3.1-2
- Add gcc in BuildRequires
2019-11-29 18:03:16 +08:00
* Thu Nov 28 2019 daiqianwen <daiqianwen@huawei.com> - 1.3.1-1
- Package init