]> git.pld-linux.org Git - packages/dropbox.git/blobdiff - dropbox.spec
up to 2.10.30
[packages/dropbox.git] / dropbox.spec
index df6e0ca032abdbcd88989d5b610c97bc52c9192f..bee94cec022aa51377884764e677a00d8542e942 100644 (file)
@@ -1,3 +1,6 @@
+# TODO
+# - avoid dropboxd relaunching itself with newer version if there's update available (disable auto updating):
+#   glen     25034 19.9  1.5 1496132 81256 pts/46  Sl+  11:02   1:02 /home/glen/.dropbox-dist/dropbox /newerversion
 # NOTES:
 # - Upstream Dropbox Support (https://www.dropbox.com/ticket)
 # - Release Notes (check new versions here): https://www.dropbox.com/release_notes
@@ -6,20 +9,21 @@
 #   http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
 Summary:       Sync and backup files between computers
 Name:          dropbox
-Version:       2.6.31
+Version:       2.10.30
 Release:       1
 License:       Proprietary
 Group:         Daemons
 Source0:       http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
-# NoSource0-md5:       a0fa0839f9080558c3424d560654b01b
+# NoSource0-md5:       eda1a4957aa1fafc40937e63c3c5a47c
 NoSource:      0
 Source1:       http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
-# NoSource1-md5:       113a5015503558ac88366078abfcc7ba
+# NoSource1-md5:       a1abfdbb0197e1ee5d069c39b9632c74
 NoSource:      1
 URL:           http://www.dropbox.com/
 BuildRequires: rpmbuild(macros) >= 1.566
 BuildRequires: sed >= 4.0
 BuildRequires: tar >= 1:1.15.1
+BuildRequires: unzip
 BuildRequires: zip
 Conflicts:     nautilus-dropbox < 0.6.3-2
 ExclusiveArch: %{ix86} %{x8664}
@@ -50,6 +54,14 @@ installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
 your files are stored on Dropbox's secure servers, you can also access
 them from any computer or mobile device using the Dropbox website.
 
+%package gui
+Summary:       Gtk+2 GUI of Dropbox
+Group:         X11/Applications
+Requires:      %{name} = %{version}-%{release}
+
+%description gui
+Gtk+2 Systray of Dropbox Daemon status.
+
 %prep
 %setup -qcT
 %ifarch %{ix86}
@@ -58,6 +70,7 @@ them from any computer or mobile device using the Dropbox website.
 %ifarch %{x8664}
 %{__tar} --strip-components=1 -xzf %{SOURCE1}
 %endif
+mv dropbox-lnx.*-%{version}/* .
 
 # no need to package this
 # altho system python is also 2.7, don't know how to enforce using it system libs
@@ -73,8 +86,10 @@ them from any computer or mobile device using the Dropbox website.
 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|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
@@ -108,7 +123,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/%{name}/dropbox_sqlite_ext-*-py*.egg
 %{_libdir}/%{name}/mock-*-py*.egg
 %{_libdir}/%{name}/pycparser-*-py*.egg-info
+%{_libdir}/%{name}/requests-*-py*.egg
 
+%exclude %{_libdir}/%{name}/libwx_gtk2*.so.*
+
+%files gui
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}/libwx_gtk2*.so.*
 %dir %{_libdir}/%{name}/images
 %{_libdir}/%{name}/images/emblems
 %{_libdir}/%{name}/images/hicolor
This page took 0.234153 seconds and 4 git commands to generate.