2 # - Upstream Dropbox Support (https://www.dropbox.com/ticket)
3 # - Download instructions (click the download link to find current version):
4 # http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
5 Summary: Sync and backup files between computers
11 URL: http://www.dropbox.com/
12 Source0: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
13 # NoSource0-md5: e6cb1751ba33542a82b794cea7dc8dbd
15 Source1: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
16 # NoSource1-md5: 434fb3451d1f638bddde2f5691beb426
18 BuildRequires: rpmbuild(macros) >= 1.566
19 BuildRequires: sed >= 4.0
20 BuildRequires: tar >= 1:1.15.1
21 Conflicts: nautilus-dropbox < 0.6.3-2
22 ExclusiveArch: %{ix86} %{x8664}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 # generate no Provides from private modules
26 %define _noautoprovfiles %{_libdir}/%{name}
28 # provided by package itself, but autodeps disabled
29 %define _noautoreq libcrypto.so libssl.so libwx_.*.so
31 # a zip and executable at the same time
32 %define _noautostrip .*/library.zip\\|.*/dropbox
34 # debuginfo wouldn't be useful
35 %define _enable_debug_packages 0
37 # prelinked library, it is missing some cairo symbols
38 %define skip_post_check_so libwx_gtk2ud_core-2.8.so.0
41 Dropbox is software that syncs your files online and across your
44 Put your files into your Dropbox on one computer, and they'll be
45 instantly available on any of your other computers that you've
46 installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
47 your files are stored on Dropbox's secure servers, you can also access
48 them from any computer or mobile device using the Dropbox website.
53 %{__tar} --strip-components=1 -xzf %{SOURCE0}
56 %{__tar} --strip-components=1 -xzf %{SOURCE1}
59 # make into symlink, looks cleaner than hardlink:
60 # we can attach executable attrs to binary and leave no attrs for symlink in
62 ln -sf dropbox library.zip
64 # use system lib, or we get weird errors like:
65 # (dropbox:13225): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock:
66 # Unable to load image-loading module: /usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so:
67 # /usr/lib64/dropbox/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib64/libxml2.so.2)
70 # don't really need test at runtime
71 rm -rf ncrypt-*.egg/ncrypt/test
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT%{_bindir}
76 ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
78 # install everything else
79 install -d $RPM_BUILD_ROOT%{_libdir}/dropbox
80 cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox
83 rm -f $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION}
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
90 %doc ACKNOWLEDGEMENTS VERSION
91 %attr(755,root,root) %{_bindir}/dropboxd
92 %dir %{_libdir}/dropbox
93 %attr(755,root,root) %{_libdir}/dropbox/*.so*
94 %attr(755,root,root) %{_libdir}/dropbox/dropbox
95 %attr(755,root,root) %{_libdir}/dropbox/dropboxd
96 %{_libdir}/dropbox/library.zip
98 %dir %{_libdir}/dropbox/ncrypt-*.egg
99 %attr(755,root,root) %{_libdir}/dropbox/ncrypt-*.egg/*.so
100 %{_libdir}/dropbox/ncrypt-*.egg/*.pyc
101 %{_libdir}/dropbox/ncrypt-*.egg/ncrypt
102 %{_libdir}/dropbox/ncrypt-*.egg/EGG-INFO
104 %dir %{_libdir}/dropbox/netifaces-*.egg
105 %attr(755,root,root) %{_libdir}/dropbox/netifaces-*.egg/*.so
106 %{_libdir}/dropbox/netifaces-*.egg/*.pyc
107 %{_libdir}/dropbox/netifaces-*.egg/EGG-INFO