4ea93c
%global reponame crash-gcore
4ea93c
4ea93c
Summary: Gcore extension module for the crash utility
4ea93c
Name: crash-gcore-command
4ea93c
Version: 1.6.3
0ba2b3
Release: 2%{?dist}
4ea93c
License: GPLv2
4ea93c
Source0: https://github.com/fujitsu/crash-gcore/archive/v%{version}/%{name}-%{version}.tar.gz
4ea93c
URL: https://github.com/fujitsu/crash-gcore
4ea93c
ExclusiveOS: Linux
4ea93c
ExclusiveArch: aarch64 ppc64le x86_64
4ea93c
BuildRequires: crash-devel >= 5.1.5
4ea93c
BuildRequires: gcc
4ea93c
Requires: crash >= 5.1.5
4ea93c
0ba2b3
Patch0: 0001-coredump-use-MEMBER_-OFFSET-SIZE-instead-of-GCORE_-O.patch
0ba2b3
Patch1: 0002-gcore-defs-remove-definitions-and-initializations-fo.patch
0ba2b3
Patch2: 0003-gcore-fix-memory-allocation-failure-during-processin.patch
0ba2b3
Patch3: 0004-x86-Fix-failure-of-collecting-vsyscall-mapping-due-t.patch
0ba2b3
Patch4: 0005-coredump-fix-segmentation-fault-caused-by-type-misma.patch
0ba2b3
Patch5: 0006-elf-fix-warning-message-caused-by-type-mismatch-of-o.patch
0ba2b3
Patch6: 0007-coredump-fix-unexpected-truncation-of-generated-core.patch
0ba2b3
Patch7: 0008-gcore.mk-fix-mismatch-of-_FILE_OFFSET_BITS-when-buil.patch
0ba2b3
4ea93c
%description
4ea93c
Command for creating a core dump file of a user-space task that was
4ea93c
running in a kernel dump file.
4ea93c
4ea93c
%prep
0ba2b3
%autosetup -n %{reponame}-%{version} -p1
4ea93c
4ea93c
%build
4ea93c
%make_build CFLAGS="%{optflags} -Wl,-z,now" -C src -f gcore.mk
4ea93c
4ea93c
%install
4ea93c
install -m 0755 -d %{buildroot}%{_libdir}/crash/extensions
4ea93c
install -m 0755 -t %{buildroot}%{_libdir}/crash/extensions %{_builddir}/%{reponame}-%{version}/src/gcore.so
4ea93c
4ea93c
%files
4ea93c
%dir %{_libdir}/crash
4ea93c
%dir %{_libdir}/crash/extensions
4ea93c
%{_libdir}/crash/extensions/gcore.so
4ea93c
%license COPYING
4ea93c
4ea93c
%changelog
0ba2b3
* Fri Nov 18 2022 Lianbo Jiang <lijiang@redhat.com> - 1.6.3-2
0ba2b3
- Update to the latest commit d2795659986d
0ba2b3
4ea93c
* Mon Dec 27 2021 Lianbo Jiang <lijiang@redhat.com> - 1.6.3-1
4ea93c
- Rebase to upstream 1.6.3
4ea93c
4ea93c
* Wed Dec 15 2021 Lianbo Jiang <lijiang@redhat.com> - 1.6.2-5
4ea93c
- Rebuild for the compatibility issue
4ea93c
4ea93c
* Tue Dec 07 2021 Lianbo Jiang <lijiang@redhat.com> - 1.6.2-4
4ea93c
- Fix the hardening issue "FAIL: bind-now test because not linked with -Wl,-z,now"
4ea93c
4ea93c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.2-3
4ea93c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
4ea93c
  Related: rhbz#1991688
4ea93c
4ea93c
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.6.2-2
4ea93c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
4ea93c
4ea93c
* Fri Jan 22 2021 HATAYAMA Daisuke <d.hatayama@fujitsu.com> - 1.6.2-1
4ea93c
- Initial crash-gcore-command package