]> git.pld-linux.org Git - packages/dropbox.git/blob - dropbox.spec
- more exec bits to python libs, rm unwanted test files
[packages/dropbox.git] / dropbox.spec
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
5 Summary:        Sync and backup files between computers
6 Name:           dropbox
7 Version:        0.7.110
8 Release:        0.9
9 License:        Proprietary
10 Group:          Daemons
11 URL:            http://www.dropbox.com/
12 Source0:        http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
13 # NoSource0-md5:        e6cb1751ba33542a82b794cea7dc8dbd
14 NoSource:       0
15 Source1:        http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
16 # NoSource1-md5:        434fb3451d1f638bddde2f5691beb426
17 NoSource:       1
18 BuildRequires:  rpmbuild(macros) >= 1.566
19 BuildRequires:  sed >= 4.0
20 BuildRequires:  tar >= 1:1.15.1
21 ExclusiveArch:  %{ix86} %{x8664}
22 BuildRoot:      %{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
37 Dropbox is software that syncs your files online and across your
38 computers.
39
40 Put your files into your Dropbox on one computer, and they'll be
41 instantly available on any of your other computers that you've
42 installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
43 your files are stored on Dropbox's secure servers, you can also access
44 them 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.
58 ln -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)
64 rm -f libz.so.1
65
66 # don't really need test at runtime
67 rm -rf ncrypt-*.egg/ncrypt/test
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_bindir}
72 ln -s %{_libdir}/dropbox/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
73
74 # install everything else
75 install -d $RPM_BUILD_ROOT%{_libdir}/dropbox
76 cp -a . $RPM_BUILD_ROOT%{_libdir}/dropbox
77
78 # in doc
79 rm -f $RPM_BUILD_ROOT%{_libdir}/dropbox/{ACKNOWLEDGEMENTS,VERSION}
80
81 %clean
82 rm -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
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.080849 seconds and 3 git commands to generate.