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

snappy compression support

OBS-URL: https://build.opensuse.org/request/show/226957
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/makedumpfile?expand=0&rev=81
This commit is contained in:
Petr Tesařík 2014-03-21 10:38:26 +00:00 committed by Git OBS Bridge
parent ead9d06d84
commit e0562682fc
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 21 09:50:53 UTC 2014 - ptesarik@suse.cz
- enable snappy compression
-------------------------------------------------------------------
Tue Feb 25 11:53:37 UTC 2014 - ptesarik@suse.cz

View File

@ -16,6 +16,14 @@
#
%if 0%{!?have_snappy:1}
%if 0%{?suse_version} >= 1310
%define have_snappy 1
%else
%define have_snappy 0
%endif
%endif
Name: makedumpfile
BuildRequires: libdw-devel
BuildRequires: libebl-devel
@ -26,8 +34,11 @@ BuildRequires: libbz2-devel
%else
BuildRequires: bzip2
%endif
BuildRequires: xz-devel
BuildRequires: lzo-devel
%if %{have_snappy}
BuildRequires: snappy-devel
%endif
BuildRequires: xz-devel
Version: 1.5.5
Release: 0
Summary: Partial kernel dump
@ -78,6 +89,9 @@ if nm -u -f posix %{_libdir}/libdw.a | grep '^lzma_code U'; then
fi
fi
export LIBS_STATIC LIBS_DYNAMIC
%if %{have_snappy}
export USESNAPPY=on
%endif
make COPTFLAGS="$RPM_OPT_FLAGS" USELZO=on
%install