diff --git a/makedumpfile.changes b/makedumpfile.changes index 252c6d3..83cd89a 100644 --- a/makedumpfile.changes +++ b/makedumpfile.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/makedumpfile.spec b/makedumpfile.spec index 4c6624e..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 @@ -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}"