[packages/lshw] - avoid leaving junk outside build subdir

qboosh qboosh at pld-linux.org
Tue Jun 20 16:34:36 CEST 2017


commit c0e0bdc5eca94b73a1c0e6b69e06710c81ced012
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jun 20 16:35:58 2017 +0200

    - avoid leaving junk outside build subdir

 lshw.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/lshw.spec b/lshw.spec
index 8cd67ec..2ab6954 100644
--- a/lshw.spec
+++ b/lshw.spec
@@ -66,7 +66,11 @@ GTK+ version of lshw.
 lshw w wersji GTK+.
 
 %prep
-%setup -q
+# tarball contains lshw.spec outside package subdirectory, skip it to avoid leaving junk
+# TODO: use plain setup -q when junk is no longer present
+%setup -q -c -T
+%{__tar} xzf %{SOURCE0} --exclude=lshw.spec -C ..
+
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lshw.git/commitdiff/c0e0bdc5eca94b73a1c0e6b69e06710c81ced012



More information about the pld-cvs-commit mailing list