diff --git a/makedumpfile-1.6.9.tar.gz b/makedumpfile-1.6.9.tar.gz deleted file mode 100644 index b87ac8e..0000000 --- a/makedumpfile-1.6.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:393ea8f22393c059ad21de9b1c3f45d9d0d8dbeb0ccb1417815b835d03f7c350 -size 200869 diff --git a/makedumpfile-1.7.0.tar.gz b/makedumpfile-1.7.0.tar.gz new file mode 100644 index 0000000..0219282 --- /dev/null +++ b/makedumpfile-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8985f8df249087ea68c6051dec6dac3ef0703fe2aa87d0266f3951f93aa8da5e +size 202820 diff --git a/makedumpfile-override-libtinfo.patch b/makedumpfile-override-libtinfo.patch index 98dfe46..cba88df 100644 --- a/makedumpfile-override-libtinfo.patch +++ b/makedumpfile-override-libtinfo.patch @@ -13,7 +13,7 @@ Signed-off-by: Petr Tesarik --- a/Makefile +++ b/Makefile @@ -66,6 +66,8 @@ LIBS := -lsnappy $(LIBS) - CFLAGS += -DUSESNAPPY + #CFLAGS += -fanalyzer endif +TINFOLIB = -ltinfo diff --git a/makedumpfile.changes b/makedumpfile.changes index 162dccd..83cd89a 100644 --- a/makedumpfile.changes +++ b/makedumpfile.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Fri Nov 19 10:54:59 UTC 2021 - Petr Tesařík + +- Turn on zstd. + +------------------------------------------------------------------- +Thu Nov 18 16:14:20 UTC 2021 - Petr Tesařík + +- Update to 1.7.0 + * Zstandard (zstd) compression support + * New -L option to limit output file size + * Support of kernels up to v5.15 (x86_64) + ------------------------------------------------------------------- Sat Jul 10 13:15:50 UTC 2021 - Ferdinand Thiessen diff --git a/makedumpfile.spec b/makedumpfile.spec index 3f8fc99..7281eb8 100644 --- a/makedumpfile.spec +++ b/makedumpfile.spec @@ -24,6 +24,14 @@ %endif %endif +%if 0%{!?have_zstd:1} +%if 0%{?sle_version} >= 150200 +%define have_zstd 1 +%else +%define have_zstd 0 +%endif +%endif + # Compatibility cruft # there is no separate -ltinfo until openSUSE 13.1 / SLE 12 %if 0%{?suse_version} < 1310 && 0%{?sles_version} < 12 @@ -32,7 +40,7 @@ # End of compatibility cruft Name: makedumpfile -Version: 1.6.9 +Version: 1.7.0 Release: 0 Summary: Partial kernel dump License: GPL-2.0-only @@ -43,6 +51,7 @@ Source99: %{name}-rpmlintrc Patch0: %{name}-override-libtinfo.patch Patch1: %{name}-ppc64-VA-range-SUSE.patch Patch2: %{name}-PN_XNUM.patch +BuildRequires: libbz2-devel BuildRequires: libdw-devel BuildRequires: libelf-devel BuildRequires: libeppic-devel @@ -52,14 +61,12 @@ BuildRequires: xz-devel BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64 ppc64le s390x %{arm} aarch64 -%if 0%{?suse_version} >= 1140 || 0%{?sles_version} >= 11 -BuildRequires: libbz2-devel -%else -BuildRequires: bzip2 -%endif %if %{have_snappy} BuildRequires: snappy-devel %endif +%if %{have_zstd} +BuildRequires: libzstd-devel +%endif %description makedumpfile is a dump program to shorten the size of dump file. It @@ -78,6 +85,9 @@ export CFLAGS="%{optflags} -fcommon" %if %{have_snappy} export USESNAPPY=on %endif +%if %{have_zstd} +export USEZSTD=on +%endif export USELZO=on export LINKTYPE=dynamic make %{?_smp_mflags} LDFLAGS="-Wl,-rpath,%{_libdir}/%{name}-%{version}"