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