]> git.pld-linux.org Git - packages/dropbox.git/commitdiff
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 de239f3595496a09f6be612af6ca3ae17bb03dd1..1d60ab30885144bd2a561795c807429f4eeca3f0 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
 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
 zip library.zip -d $(cat lib.delete)
 
 %install
This page took 0.175528 seconds and 4 git commands to generate.