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