[packages/dropbox] cleanup more foreign py libraries

glen glen at pld-linux.org
Fri May 16 11:38:56 CEST 2014


commit 9ece03ce1f56e75541c3bd9e581f2185a87f2e8e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 16 12:38:52 2014 +0300

    cleanup more foreign py libraries

 dropbox.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/dropbox.spec b/dropbox.spec
index de239f3..1d60ab3 100644
--- a/dropbox.spec
+++ b/dropbox.spec
@@ -84,8 +84,10 @@ Gtk+2 Systray of Dropbox Daemon status.
 ln -sf dropbox library.zip
 
 # fun, let's delete non-linux files from archive
-unzip -l library.zip | grep -E 'arch/(mac|win32)|pynt|ui/cocoa|unittest' | awk '{print $NF}' > lib.delete
-# TODO: also pymac could be cleaned if pymac.constants is not imported
+unzip -l library.zip | \
+	grep -E '(arch|dropbox)/(mac|win32)|_(win32|mac).py|pynt|pymac|ui/cocoa|unittest' | \
+	grep -vE 'pymac/(__init__|constants|types|lazydll|lazyframework).py' | \
+	awk '{print $NF}' > lib.delete
 zip library.zip -d $(cat lib.delete)
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dropbox.git/commitdiff/9ece03ce1f56e75541c3bd9e581f2185a87f2e8e



More information about the pld-cvs-commit mailing list