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