# NOTES: # - Upstream Dropbox Support (https://www.dropbox.com/ticket) # - Download instructions (click the download link to find current version): # http://www.dropbox.com/downloading?os=lnx # http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall Summary: Sync and backup files between computers Name: dropbox Version: 1.4.17 Release: 0.1 License: Proprietary Group: Daemons URL: http://www.dropbox.com/ Source0: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz # NoSource0-md5: 404ab2514c736a7421ec48a0ea88bbbc NoSource: 0 Source1: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz # NoSource1-md5: 7a15923bae36f27387b6865c75701c2a NoSource: 1 BuildRequires: rpmbuild(macros) >= 1.566 BuildRequires: sed >= 4.0 BuildRequires: tar >= 1:1.15.1 Conflicts: nautilus-dropbox < 0.6.3-2 ExclusiveArch: %{ix86} %{x8664} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # generate no Provides from private modules %define _noautoprovfiles %{_libdir}/%{name} # provided by package itself, but autodeps disabled %define _noautoreq libcrypto.so libssl.so libwx_.*.so librsync.so.1 libpng12.so # a zip and executable at the same time %define _noautostrip .*/library.zip\\|.*/dropbox # debuginfo wouldn't be useful %define _enable_debug_packages 0 # prelinked library, it is missing some cairo symbols %define skip_post_check_so libwx_gtk2ud_core-2.8.so.0 %description Dropbox is software that syncs your files online and across your computers. Put your files into your Dropbox on one computer, and they'll be instantly available on any of your other computers that you've installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of your files are stored on Dropbox's secure servers, you can also access them from any computer or mobile device using the Dropbox website. %prep %setup -qcT %ifarch %{ix86} %{__tar} --strip-components=1 -xzf %{SOURCE0} %endif %ifarch %{x8664} %{__tar} --strip-components=1 -xzf %{SOURCE1} %endif # no need to package this %{__rm} setuptools-0.6c11-py2.5.egg # make into symlink, looks cleaner than hardlink: # we can attach executable attrs to binary and leave no attrs for symlink in # %files section. ln -sf dropbox library.zip # fun, let's delete non-linux files from archive unzip -l library.zip | grep -E 'arch/(mac|win32)' | awk '{print $NF}' > arch.delete zip library.zip -d $(cat arch.delete) # use system lib, or we get weird errors like: # (dropbox:13225): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock: # Unable to load image-loading module: /usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so: # %{_libdir}/dropbox/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib64/libxml2.so.2) %{__rm} libz.so.1 # libdbus and dbus-python %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd # install everything else install -d $RPM_BUILD_ROOT%{_libdir}/dropbox cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox rm -f $RPM_BUILD_ROOT%{_libdir}/dropbox/arch.delete # in doc %{__rm} $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION,README} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ACKNOWLEDGEMENTS VERSION README %attr(755,root,root) %{_bindir}/dropboxd %dir %{_libdir}/dropbox %attr(755,root,root) %{_libdir}/dropbox/*.so* %attr(755,root,root) %{_libdir}/dropbox/dropbox %attr(755,root,root) %{_libdir}/dropbox/dropboxd %{_libdir}/dropbox/library.zip %dir %{_libdir}/dropbox/netifaces-*.egg %attr(755,root,root) %{_libdir}/dropbox/netifaces-*.egg/*.so %{_libdir}/dropbox/netifaces-*.egg/*.pyc %{_libdir}/dropbox/netifaces-*.egg/EGG-INFO %{_libdir}/dropbox/icons