%global eppic_ver e8844d3793471163ae4a56d8f95897be9e5bd554 %global eppic_shortver %(c=%{eppic_ver}; echo ${c:0:7}) Name: makedumpfile Version: 1.7.6 Summary: make a small dumpfile of kdump Release: 1%{?dist} License: GPL-2.0-only URL: https://github.com/makedumpfile/makedumpfile Source0: https://github.com/makedumpfile/makedumpfile/archive/%{version}/%{name}-%{version}.tar.gz Source1: https://github.com/lucchouina/eppic/archive/%{eppic_ver}/eppic-%{eppic_shortver}.tar.gz Conflicts: kexec-tools < 2.0.28-5 BuildRequires: make BuildRequires: gcc BuildRequires: zlib-devel BuildRequires: elfutils-devel BuildRequires: glib2-devel BuildRequires: bzip2-devel BuildRequires: ncurses-devel BuildRequires: bison BuildRequires: flex BuildRequires: lzo-devel BuildRequires: snappy-devel BuildRequires: libzstd-devel BuildRequires: pkgconfig BuildRequires: intltool BuildRequires: gettext %description makedumpfile is a tool to compress and filter out unneeded data from kernel dumps to reduce its file size. It is typically used with the kdump mechanism. %prep %autosetup -p1 tar -z -x -v -f %{SOURCE1} sed -r -i 's|/usr/sbin|%_sbindir|g' Makefile %build %make_build LINKTYPE=dynamic USELZO=on USESNAPPY=on USEZSTD=on %make_build -C eppic-%{eppic_ver}/libeppic %make_build LDFLAGS="$LDFLAGS -Ieppic-%{eppic_ver}/libeppic -Leppic-%{eppic_ver}/libeppic" eppic_makedumpfile.so %install %make_install install -m 644 -D makedumpfile.conf %{buildroot}/%{_sysconfdir}/makedumpfile.conf.sample rm %{buildroot}/%{_sbindir}/makedumpfile-R.pl install -m 755 -D eppic_makedumpfile.so %{buildroot}/%{_libdir}/eppic_makedumpfile.so %files %{_sbindir}/makedumpfile %{_mandir}/man5/makedumpfile.conf.5* %{_mandir}/man8/makedumpfile.8* %{_sysconfdir}/makedumpfile.conf.sample %{_libdir}/eppic_makedumpfile.so %{_datadir}/makedumpfile/ %license COPYING %changelog * Wed Oct 23 2024 Lichen Liu - 1.7.6-1 - Update to upstream 1.7.6 * Thu Aug 08 2024 Coiby Xu - 1.7.5-13 - Workaround for segfault by "makedumpfile --mem-usage" on PPC64 * Thu Jul 18 2024 Fedora Release Engineering - 1.7.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 21 2024 Lianbo Jiang - 1.7.5-11 - Fix failure of hugetlb pages exclusion on Linux 6.9 and later - Fix wrong exclusion of Slab pages on Linux 6.10-rc1 and later * Thu Nov 23 2023 Coiby Xu - 1.7.5-1 - split from kexec-tools