From 9ece03ce1f56e75541c3bd9e581f2185a87f2e8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 16 May 2014 12:38:52 +0300 Subject: [PATCH] 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 -- 2.43.0