]> git.pld-linux.org Git - packages/dropbox.git/blame - dropbox.spec
- more exec bits to python libs, rm unwanted test files
[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
9dd470b7 8Release: 0.9
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
21ExclusiveArch: %{ix86} %{x8664}
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24# generate no Provides from private modules
25%define _noautoprovfiles %{_libdir}/%{name}
26
27# provided by package itself, but autodeps disabled
28%define _noautoreq libcrypto.so libssl.so libwx_.*.so
29
30# a zip and executable at the same time
31%define _noautostrip .*/library.zip\\|.*/dropbox
32
33# debuginfo wouldn't be useful
34%define _enable_debug_packages 0
35
36%description
37Dropbox is software that syncs your files online and across your
38computers.
39
40Put your files into your Dropbox on one computer, and they'll be
41instantly available on any of your other computers that you've
42installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
43your files are stored on Dropbox's secure servers, you can also access
44them from any computer or mobile device using the Dropbox website.
45
46%prep
47%setup -qcT
48%ifarch %{ix86}
49%{__tar} --strip-components=1 -xzf %{SOURCE0}
50%endif
51%ifarch %{x8664}
52%{__tar} --strip-components=1 -xzf %{SOURCE1}
53%endif
54
55# make into symlink, looks cleaner than hardlink:
56# we can attach executable attrs to binary and leave no attrs for symlink in
57# %files section.
58ln -sf dropbox library.zip
59
60# use system lib, or we get weird errors like:
61# (dropbox:13225): Gtk-WARNING **: Error loading theme icon 'gtk-ok' for stock:
62# Unable to load image-loading module: /usr/lib64/gtk-2.0/2.10.0/loaders/svg_loader.so:
63# /usr/lib64/dropbox/libz.so.1: version `ZLIB_1.2.3.3' not found (required by /usr/lib64/libxml2.so.2)
64rm -f libz.so.1
65
9dd470b7
ER
66# don't really need test at runtime
67rm -rf ncrypt-*.egg/ncrypt/test
68
da4b87b9
ER
69%install
70rm -rf $RPM_BUILD_ROOT
71install -d $RPM_BUILD_ROOT%{_bindir}
72ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
73
74# install everything else
75install -d $RPM_BUILD_ROOT%{_libdir}/dropbox
76cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox
77
78# in doc
79rm -f $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION}
80
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%files
85%defattr(644,root,root,755)
86%doc ACKNOWLEDGEMENTS VERSION
87%attr(755,root,root) %{_bindir}/dropboxd
88%dir %{_libdir}/dropbox
89%attr(755,root,root) %{_libdir}/dropbox/*.so*
90%attr(755,root,root) %{_libdir}/dropbox/dropbox
91%attr(755,root,root) %{_libdir}/dropbox/dropboxd
92%{_libdir}/dropbox/library.zip
9dd470b7
ER
93
94%dir %{_libdir}/dropbox/ncrypt-*.egg
95%attr(755,root,root) %{_libdir}/dropbox/ncrypt-*.egg/*.so
96%{_libdir}/dropbox/ncrypt-*.egg/*.pyc
97%{_libdir}/dropbox/ncrypt-*.egg/ncrypt
98%{_libdir}/dropbox/ncrypt-*.egg/EGG-INFO
99
100%dir %{_libdir}/dropbox/netifaces-*.egg
101%attr(755,root,root) %{_libdir}/dropbox/netifaces-*.egg/*.so
102%{_libdir}/dropbox/netifaces-*.egg/*.pyc
103%{_libdir}/dropbox/netifaces-*.egg/EGG-INFO
This page took 0.127338 seconds and 4 git commands to generate.