From e0562682fc3ebcf5d6611fc50987bf0d4979db6cc7a9ce38fedf32856feb3bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Tesa=C5=99=C3=ADk?= Date: Fri, 21 Mar 2014 10:38:26 +0000 Subject: [PATCH] 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 --- makedumpfile.changes | 5 +++++ makedumpfile.spec | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/makedumpfile.changes b/makedumpfile.changes index cda72f6..f5ad777 100644 --- a/makedumpfile.changes +++ b/makedumpfile.changes @@ -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 diff --git a/makedumpfile.spec b/makedumpfile.spec index cfba52a..302d299 100644 --- a/makedumpfile.spec +++ b/makedumpfile.spec @@ -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