cleanup more foreign py libraries dropbox-2.6.33-1
authorElan Ruusamäe <glen@delfi.ee>
Fri, 16 May 2014 09:38:52 +0000 (12:38 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 16 May 2014 09:38:52 +0000 (12:38 +0300)
dropbox.spec

index de239f3..1d60ab3 100644 (file)
@@ -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
This page took 0.287574 seconds and 4 git commands to generate.