1 # Upstream: Dropbox Support (https://www.dropbox.com/ticket)
3 Summary: Sync and backup files between computers
9 URL: http://www.dropbox.com/
10 Source0: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
11 # NoSource0-md5: e6cb1751ba33542a82b794cea7dc8dbd
13 Source1: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
14 # NoSource1-md5: 434fb3451d1f638bddde2f5691beb426
16 BuildRequires: rpmbuild(macros) >= 1.566
17 BuildRequires: sed >= 4.0
18 BuildRequires: tar >= 1:1.15.1
19 ExclusiveArch: %{ix86} %{x8664}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 # generate no Provides from private modules
23 %define _noautoprovfiles %{_libdir}/%{name}
25 # provided by package itself, but autodeps disabled
26 %define _noautoreq libcrypto.so libssl.so libwx_.*.so
28 # a zip and executable at the same time
29 %define _noautostrip .*/library.zip\\|.*/dropbox
31 # debuginfo wouldn't be useful
32 %define _enable_debug_packages 0
35 Dropbox is software that syncs your files online and across your
38 Put your files into your Dropbox on one computer, and they'll be
39 instantly available on any of your other computers that you've
40 installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
41 your files are stored on Dropbox's secure servers, you can also access
42 them from any computer or mobile device using the Dropbox website.
47 %{__tar} --strip-components=1 -xzf %{SOURCE0}
50 %{__tar} --strip-components=1 -xzf %{SOURCE1}
53 # make into symlink, looks cleaner than hardlink:
54 # we can attach executable attrs to binary and leave no attrs for symlink in
56 ln -sf dropbox library.zip
58 # use system lib, or we get weird errors like:
59 # (dropbox:13225): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock:
60 # Unable to load image-loading module: /usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so:
61 # /usr/lib64/dropbox/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib64/libxml2.so.2)
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_bindir}
67 ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
69 # install everything else
70 install -d $RPM_BUILD_ROOT%{_libdir}/dropbox
71 cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox
74 rm -f $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION}
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc ACKNOWLEDGEMENTS VERSION
82 %attr(755,root,root) %{_bindir}/dropboxd
83 %dir %{_libdir}/dropbox
84 %attr(755,root,root) %{_libdir}/dropbox/*.so*
85 %attr(755,root,root) %{_libdir}/dropbox/dropbox
86 %attr(755,root,root) %{_libdir}/dropbox/dropboxd
87 %{_libdir}/dropbox/library.zip
88 %{_libdir}/dropbox/ncrypt-*.egg
89 %{_libdir}/dropbox/netifaces-*.egg