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 ExclusiveArch: %{ix86} %{x8664}
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 # generate no Provides from private modules
25 %define _noautoprovfiles %{_libdir}/%{name}
27 # provided by package itself, but autodeps disabled
28 %define _noautoreq libcrypto.so libssl.so libwx_.*.so
30 # a zip and executable at the same time
31 %define _noautostrip .*/library.zip\\|.*/dropbox
33 # debuginfo wouldn't be useful
34 %define _enable_debug_packages 0
37 Dropbox is software that syncs your files online and across your
40 Put your files into your Dropbox on one computer, and they'll be
41 instantly available on any of your other computers that you've
42 installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
43 your files are stored on Dropbox's secure servers, you can also access
44 them from any computer or mobile device using the Dropbox website.
49 %{__tar} --strip-components=1 -xzf %{SOURCE0}
52 %{__tar} --strip-components=1 -xzf %{SOURCE1}
55 # make into symlink, looks cleaner than hardlink:
56 # we can attach executable attrs to binary and leave no attrs for symlink in
58 ln -sf dropbox library.zip
60 # use system lib, or we get weird errors like:
61 # (dropbox:13225): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock:
62 # Unable to load image-loading module: /usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so:
63 # /usr/lib64/dropbox/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib64/libxml2.so.2)
66 # don't really need test at runtime
67 rm -rf ncrypt-*.egg/ncrypt/test
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_bindir}
72 ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
74 # install everything else
75 install -d $RPM_BUILD_ROOT%{_libdir}/dropbox
76 cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox
79 rm -f $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION}
82 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
86 %doc ACKNOWLEDGEMENTS VERSION
87 %attr(755,root,root) %{_bindir}/dropboxd
88 %dir %{_libdir}/dropbox
89 %attr(755,root,root) %{_libdir}/dropbox/*.so*
90 %attr(755,root,root) %{_libdir}/dropbox/dropbox
91 %attr(755,root,root) %{_libdir}/dropbox/dropboxd
92 %{_libdir}/dropbox/library.zip
94 %dir %{_libdir}/dropbox/ncrypt-*.egg
95 %attr(755,root,root) %{_libdir}/dropbox/ncrypt-*.egg/*.so
96 %{_libdir}/dropbox/ncrypt-*.egg/*.pyc
97 %{_libdir}/dropbox/ncrypt-*.egg/ncrypt
98 %{_libdir}/dropbox/ncrypt-*.egg/EGG-INFO
100 %dir %{_libdir}/dropbox/netifaces-*.egg
101 %attr(755,root,root) %{_libdir}/dropbox/netifaces-*.egg/*.so
102 %{_libdir}/dropbox/netifaces-*.egg/*.pyc
103 %{_libdir}/dropbox/netifaces-*.egg/EGG-INFO