Accepting request 932481 from home:ptesarik:branches:Kernel:kdump

- Turn on zstd.

OBS-URL: https://build.opensuse.org/request/show/932481
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/makedumpfile?expand=0&rev=158
This commit is contained in:
Petr Tesařík 2021-11-19 10:56:30 +00:00 committed by Git OBS Bridge
parent a3b5bb2490
commit fbe6fe53bb
2 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 19 10:54:59 UTC 2021 - Petr Tesařík <ptesarik@suse.com>
- Turn on zstd.
-------------------------------------------------------------------
Thu Nov 18 16:14:20 UTC 2021 - Petr Tesařík <ptesarik@suse.com>

View File

@ -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}"