2 # - Upstream Dropbox Support (https://www.dropbox.com/ticket)
3 # - Download instructions (click the download link to find current version):
4 # http://www.dropbox.com/downloading?os=lnx
5 # http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
6 Summary: Sync and backup files between computers
12 URL: http://www.dropbox.com/
13 Source0: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
14 # NoSource0-md5: 404ab2514c736a7421ec48a0ea88bbbc
16 Source1: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
17 # NoSource1-md5: 7a15923bae36f27387b6865c75701c2a
19 BuildRequires: rpmbuild(macros) >= 1.566
20 BuildRequires: sed >= 4.0
21 BuildRequires: tar >= 1:1.15.1
22 Conflicts: nautilus-dropbox < 0.6.3-2
23 ExclusiveArch: %{ix86} %{x8664}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 # generate no Provides from private modules
27 %define _noautoprovfiles %{_libdir}/%{name}
29 # provided by package itself, but autodeps disabled
30 %define _noautoreq libcrypto.so libssl.so libwx_.*.so librsync.so.1 libpng12.so
32 # a zip and executable at the same time
33 %define _noautostrip .*/library.zip\\|.*/dropbox
35 # debuginfo wouldn't be useful
36 %define _enable_debug_packages 0
38 # prelinked library, it is missing some cairo symbols
39 %define skip_post_check_so libwx_gtk2ud_core-2.8.so.0
42 Dropbox is software that syncs your files online and across your
45 Put your files into your Dropbox on one computer, and they'll be
46 instantly available on any of your other computers that you've
47 installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
48 your files are stored on Dropbox's secure servers, you can also access
49 them from any computer or mobile device using the Dropbox website.
54 %{__tar} --strip-components=1 -xzf %{SOURCE0}
57 %{__tar} --strip-components=1 -xzf %{SOURCE1}
60 # no need to package this
61 %{__rm} setuptools-0.6c11-py2.5.egg
63 # make into symlink, looks cleaner than hardlink:
64 # we can attach executable attrs to binary and leave no attrs for symlink in
66 ln -sf dropbox library.zip
68 # fun, let's delete non-linux files from archive
69 unzip -l library.zip | grep -E 'arch/(mac|win32)' | awk '{print $NF}' > arch.delete
70 zip library.zip -d $(cat arch.delete)
72 # use system lib, or we get weird errors like:
73 # (dropbox:13225): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock:
74 # Unable to load image-loading module: /usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so:
75 # %{_libdir}/dropbox/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib64/libxml2.so.2)
78 # libdbus and dbus-python
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_bindir}
83 ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
85 # install everything else
86 install -d $RPM_BUILD_ROOT%{_libdir}/dropbox
87 cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox
88 rm -f $RPM_BUILD_ROOT%{_libdir}/dropbox/arch.delete
91 %{__rm} $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION,README}
94 rm -rf $RPM_BUILD_ROOT
97 %defattr(644,root,root,755)
98 %doc ACKNOWLEDGEMENTS VERSION README
99 %attr(755,root,root) %{_bindir}/dropboxd
100 %dir %{_libdir}/dropbox
101 %attr(755,root,root) %{_libdir}/dropbox/*.so*
102 %attr(755,root,root) %{_libdir}/dropbox/dropbox
103 %attr(755,root,root) %{_libdir}/dropbox/dropboxd
104 %{_libdir}/dropbox/library.zip
106 %dir %{_libdir}/dropbox/netifaces-*.egg
107 %attr(755,root,root) %{_libdir}/dropbox/netifaces-*.egg/*.so
108 %{_libdir}/dropbox/netifaces-*.egg/*.pyc
109 %{_libdir}/dropbox/netifaces-*.egg/EGG-INFO
111 %{_libdir}/dropbox/icons