]> git.pld-linux.org Git - packages/dropbox.git/blame - dropbox.spec
- rel 1
[packages/dropbox.git] / dropbox.spec
CommitLineData
9dd470b7
ER
1# NOTES:
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
14bae0cf 5# http://www.dropbox.com/downloading?os=lnx
da4b87b9
ER
6Summary: Sync and backup files between computers
7Name: dropbox
d0f5322a 8Version: 1.1.45
060dfddc 9Release: 1
da4b87b9
ER
10License: Proprietary
11Group: Daemons
12URL: http://www.dropbox.com/
13Source0: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
d0f5322a 14# NoSource0-md5: e9c7cb6d97dfa917d3fb99d82cd1c132
da4b87b9
ER
15NoSource: 0
16Source1: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
d0f5322a 17# NoSource1-md5: 7f22a5078ebb0ea6f43c32d284a1ee51
da4b87b9
ER
18NoSource: 1
19BuildRequires: rpmbuild(macros) >= 1.566
20BuildRequires: sed >= 4.0
21BuildRequires: tar >= 1:1.15.1
8c0a6f53 22Conflicts: nautilus-dropbox < 0.6.3-2
da4b87b9
ER
23ExclusiveArch: %{ix86} %{x8664}
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26# generate no Provides from private modules
27%define _noautoprovfiles %{_libdir}/%{name}
28
29# provided by package itself, but autodeps disabled
060dfddc 30%define _noautoreq libcrypto.so libssl.so libwx_.*.so librsync.so.1 libpng12.so
da4b87b9
ER
31
32# a zip and executable at the same time
33%define _noautostrip .*/library.zip\\|.*/dropbox
34
35# debuginfo wouldn't be useful
36%define _enable_debug_packages 0
37
b70c96ae 38# prelinked library, it is missing some cairo symbols
39%define skip_post_check_so libwx_gtk2ud_core-2.8.so.0
40
da4b87b9
ER
41%description
42Dropbox is software that syncs your files online and across your
43computers.
44
45Put your files into your Dropbox on one computer, and they'll be
46instantly available on any of your other computers that you've
47installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
48your files are stored on Dropbox's secure servers, you can also access
49them from any computer or mobile device using the Dropbox website.
50
51%prep
52%setup -qcT
53%ifarch %{ix86}
54%{__tar} --strip-components=1 -xzf %{SOURCE0}
55%endif
56%ifarch %{x8664}
57%{__tar} --strip-components=1 -xzf %{SOURCE1}
58%endif
59
60# make into symlink, looks cleaner than hardlink:
61# we can attach executable attrs to binary and leave no attrs for symlink in
62# %files section.
63ln -sf dropbox library.zip
64
65# use system lib, or we get weird errors like:
66# (dropbox:13225): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock:
67# Unable to load image-loading module: /usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so:
14bae0cf
ER
68# %{_libdir}/dropbox/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib64/libxml2.so.2)
69%{__rm} libz.so.1
da4b87b9 70
f4d77724
ER
71# libdbus and dbus-python
72
73
9dd470b7 74# don't really need test at runtime
14bae0cf 75%{__rm} -r ncrypt-*.egg/ncrypt/test
9dd470b7 76
da4b87b9
ER
77%install
78rm -rf $RPM_BUILD_ROOT
79install -d $RPM_BUILD_ROOT%{_bindir}
80ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
81
82# install everything else
83install -d $RPM_BUILD_ROOT%{_libdir}/dropbox
84cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox
85
86# in doc
14bae0cf 87%{__rm} $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION,README}
da4b87b9
ER
88
89%clean
90rm -rf $RPM_BUILD_ROOT
91
92%files
93%defattr(644,root,root,755)
14bae0cf 94%doc ACKNOWLEDGEMENTS VERSION README
da4b87b9
ER
95%attr(755,root,root) %{_bindir}/dropboxd
96%dir %{_libdir}/dropbox
97%attr(755,root,root) %{_libdir}/dropbox/*.so*
98%attr(755,root,root) %{_libdir}/dropbox/dropbox
99%attr(755,root,root) %{_libdir}/dropbox/dropboxd
100%{_libdir}/dropbox/library.zip
9dd470b7
ER
101
102%dir %{_libdir}/dropbox/ncrypt-*.egg
103%attr(755,root,root) %{_libdir}/dropbox/ncrypt-*.egg/*.so
104%{_libdir}/dropbox/ncrypt-*.egg/*.pyc
105%{_libdir}/dropbox/ncrypt-*.egg/ncrypt
106%{_libdir}/dropbox/ncrypt-*.egg/EGG-INFO
107
108%dir %{_libdir}/dropbox/netifaces-*.egg
109%attr(755,root,root) %{_libdir}/dropbox/netifaces-*.egg/*.so
110%{_libdir}/dropbox/netifaces-*.egg/*.pyc
111%{_libdir}/dropbox/netifaces-*.egg/EGG-INFO
14bae0cf
ER
112
113%{_libdir}/dropbox/icons
This page took 0.091924 seconds and 4 git commands to generate.