2 # - Upstream Dropbox Support (https://www.dropbox.com/ticket)
3 # - Release Notes (check new versions here): https://www.dropbox.com/release_notes
4 # - Download instructions (click the download link to find current version):
5 # http://www.dropbox.com/downloading?os=lnx
6 # http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
7 Summary: Sync and backup files between computers
13 Source0: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
14 # NoSource0-md5: a0fa0839f9080558c3424d560654b01b
16 Source1: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
17 # NoSource1-md5: 113a5015503558ac88366078abfcc7ba
19 URL: http://www.dropbox.com/
20 BuildRequires: rpmbuild(macros) >= 1.566
21 BuildRequires: sed >= 4.0
22 BuildRequires: tar >= 1:1.15.1
23 Conflicts: nautilus-dropbox < 0.6.3-2
24 ExclusiveArch: %{ix86} %{x8664}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 # generate no Provides from private modules
28 %define _noautoprovfiles %{_libdir}/%{name}
30 # provided by package itself, but autodeps disabled
31 %define _noautoreq libwx_.*.so librsync.so.1 libffi.so.6
33 # a zip and executable at the same time
34 %define _noautostrip .*/library.zip\\|.*/dropbox
36 # debuginfo wouldn't be useful
37 %define _enable_debug_packages 0
39 # prelinked library, it is missing some cairo symbols
40 %define skip_post_check_so libwx_gtk2ud_core-2.8.so.0
43 Dropbox is software that syncs your files online and across your
46 Put your files into your Dropbox on one computer, and they'll be
47 instantly available on any of your other computers that you've
48 installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
49 your files are stored on Dropbox's secure servers, you can also access
50 them from any computer or mobile device using the Dropbox website.
55 %{__tar} --strip-components=1 -xzf %{SOURCE0}
58 %{__tar} --strip-components=1 -xzf %{SOURCE1}
61 # no need to package this
62 # altho system python is also 2.7, don't know how to enforce using it system libs
63 #%{__rm} -r distribute-0.6.26-py2.7.egg
65 # libraries to be taken from system
66 # for a in *.so*; do ls -ld /lib/$a /usr/lib/$a; done 2>/dev/null
67 %{__rm} libpng12.so.0 libbz2.so.1.0 libpopt.so.0
69 # make into symlink, looks cleaner than hardlink:
70 # we can attach executable attrs to binary and leave no attrs for symlink in
72 ln -sf dropbox library.zip
74 # fun, let's delete non-linux files from archive
75 unzip -l library.zip | grep -E 'arch/(mac|win32)|pynt|ui/cocoa|unittest' | awk '{print $NF}' > lib.delete
76 # TODO: also pymac could be cleaned if pymac.constants is not imported
77 zip library.zip -d $(cat lib.delete)
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_bindir}
82 ln -s %{_libdir}/%{name}/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
84 # install everything else
85 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}
86 cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib.delete
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{ACKNOWLEDGEMENTS,VERSION,README}
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc ACKNOWLEDGEMENTS VERSION README
98 %attr(755,root,root) %{_bindir}/dropboxd
99 %dir %{_libdir}/%{name}
100 %attr(755,root,root) %{_libdir}/%{name}/*.so*
101 %attr(755,root,root) %{_libdir}/%{name}/dropbox
102 %attr(755,root,root) %{_libdir}/%{name}/dropboxd
103 %{_libdir}/%{name}/library.zip
105 %{_libdir}/%{name}/cffi-*-py*.egg
106 %{_libdir}/%{name}/distribute-*-py*.egg
107 %{_libdir}/%{name}/dropbox_sqlite_ext-*-py*.egg
108 %{_libdir}/%{name}/mock-*-py*.egg
109 %{_libdir}/%{name}/pycparser-*-py*.egg-info
111 %dir %{_libdir}/%{name}/images
112 %{_libdir}/%{name}/images/emblems
113 %{_libdir}/%{name}/images/hicolor