From 7cfa6899ffd5580ad97e1f840edee9cf5ca51eab Mon Sep 17 00:00:00 2001 From: Chuck Ebbert Date: Mon, 7 Nov 2011 08:16:50 -0500 Subject: [PATCH] Add support for .xz compressed patches --- kernel.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel.spec b/kernel.spec index 43fa760c7..e5a4fc6db 100644 --- a/kernel.spec +++ b/kernel.spec @@ -509,7 +509,7 @@ ExclusiveOS: Linux # List the packages used during the kernel build # BuildRequires: module-init-tools, patch >= 2.5.4, bash >= 2.03, sh-utils, tar -BuildRequires: bzip2, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk +BuildRequires: bzip2, xz, findutils, gzip, m4, perl, make >= 3.78, diffutils, gawk BuildRequires: gcc >= 3.4.2, binutils >= 2.12, redhat-rpm-config BuildRequires: net-tools BuildRequires: xmlto, asciidoc @@ -996,7 +996,8 @@ ApplyPatch() %endif case "$patch" in *.bz2) bunzip2 < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; - *.gz) gunzip < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; + *.gz) gunzip < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; + *.xz) unxz < "$RPM_SOURCE_DIR/$patch" | $patch_command ${1+"$@"} ;; *) $patch_command ${1+"$@"} < "$RPM_SOURCE_DIR/$patch" ;; esac }