[PATCH] update spec.in and rpm make target to reflect .tar.xz src

Scott Seago sseago at redhat.com
Mon Dec 5 23:44:55 UTC 2011


---
 Makefile.am  |   14 +++++++-------
 iwhd.spec.in |    2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index df9d4f1..a7cfa19 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -96,16 +96,16 @@ rpm:
 	  *-*)							\
 	    v=$$(echo $(VERSION)|tr - .);			\
 	    base=$(PACKAGE)-$$v;				\
-	    tgz=$$base.tar.gz;					\
-	    tar xf $(distdir).tar.gz				\
-	      && rm -rf $$base $$tgz				\
+	    txz=$$base.tar.xz;					\
+	    tar xf $(distdir).tar.xz				\
+	      && rm -rf $$base $$txz				\
 	      && mv $(distdir) $$base				\
-	      && tar -czf - $$base > $$tgz			\
-	      && rpmbuild -ta $$tgz; e=$$?			\
-	    rm -rf $$base $$tgz;				\
+	      && tar -cJf - $$base > $$txz			\
+	      && rpmbuild -ta $$txz; e=$$?			\
+	    rm -rf $$base $$txz;				\
 	    exit $$e						\
 	    ;;							\
-	  *) rpmbuild -ta $(distdir).tar.gz ;;			\
+	  *) rpmbuild -ta $(distdir).tar.xz ;;			\
 	esac
 
 # Use this directory for the local FS-based store mentioned in the etc config.
diff --git a/iwhd.spec.in b/iwhd.spec.in
index 4983c7c..7c43ef9 100644
--- a/iwhd.spec.in
+++ b/iwhd.spec.in
@@ -10,7 +10,7 @@ URL:		http://git.fedorahosted.org/git/?p=iwhd.git
 
 # pulled from upstream git,
 # to recreate tarball, check out commit, then run "make dist"
-Source0:	iwhd-%{version}.tar.gz
+Source0:	iwhd-%{version}.tar.xz
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-- 
1.7.6.4



More information about the iwhd-devel mailing list