Blame SOURCES/0002-fix-tar-archive-to-avoid-spilling-.spec-file-outside.patch

99c779
From 4af2308ad459924e792f4a09a7374ebae0cde805 Mon Sep 17 00:00:00 2001
99c779
From: Lyonel Vincent <lyonel@ezix.org>
99c779
Date: Sat, 23 Apr 2016 01:36:56 +0200
99c779
Subject: [PATCH 02/43] fix tar archive to avoid spilling .spec file outside of
99c779
 the source tree
99c779
99c779
---
99c779
 Makefile | 2 +-
99c779
 1 file changed, 1 insertion(+), 1 deletion(-)
99c779
99c779
diff --git a/Makefile b/Makefile
99c779
index b6d1297..8fe665e 100644
99c779
--- a/Makefile
99c779
+++ b/Makefile
99c779
@@ -16,5 +16,5 @@ $(PACKAGENAME).spec: $(PACKAGENAME).spec.in
99c779
 
99c779
 release: $(PACKAGENAME).spec
99c779
 	git archive --prefix=$(PACKAGENAME)-$(VERSION)/ -o $(PACKAGENAME)-$(VERSION).tar HEAD
99c779
-	tar -rf $(PACKAGENAME)-$(VERSION).tar $^
99c779
+	tar --transform s!^!$(PACKAGENAME)-$(VERSION)/! -rf $(PACKAGENAME)-$(VERSION).tar $^
99c779
 	gzip -f $(PACKAGENAME)-$(VERSION).tar
99c779
-- 
99c779
2.10.2
99c779