]>
Commit | Line | Data |
---|---|---|
9dd470b7 ER |
1 | # NOTES: |
2 | # - Upstream Dropbox Support (https://www.dropbox.com/ticket) | |
77d2e1b5 | 3 | # - Release Notes (check new versions here): https://www.dropbox.com/release_notes |
9dd470b7 | 4 | # - Download instructions (click the download link to find current version): |
14bae0cf | 5 | # http://www.dropbox.com/downloading?os=lnx |
84f5c3ef | 6 | # http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall |
da4b87b9 ER |
7 | Summary: Sync and backup files between computers |
8 | Name: dropbox | |
e6518642 | 9 | Version: 2.2.13 |
77d2e1b5 | 10 | Release: 1 |
da4b87b9 ER |
11 | License: Proprietary |
12 | Group: Daemons | |
13 | URL: http://www.dropbox.com/ | |
14 | Source0: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz | |
e6518642 | 15 | # NoSource0-md5: e69279eabdd37670ab4430be2f44dfae |
da4b87b9 ER |
16 | NoSource: 0 |
17 | Source1: http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz | |
e6518642 | 18 | # NoSource1-md5: 2b5b5981aa6bf6c295b17f88551dead2 |
da4b87b9 ER |
19 | NoSource: 1 |
20 | BuildRequires: rpmbuild(macros) >= 1.566 | |
21 | BuildRequires: sed >= 4.0 | |
22 | BuildRequires: tar >= 1:1.15.1 | |
8c0a6f53 | 23 | Conflicts: nautilus-dropbox < 0.6.3-2 |
da4b87b9 ER |
24 | ExclusiveArch: %{ix86} %{x8664} |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | # generate no Provides from private modules | |
28 | %define _noautoprovfiles %{_libdir}/%{name} | |
29 | ||
30 | # provided by package itself, but autodeps disabled | |
060dfddc | 31 | %define _noautoreq libcrypto.so libssl.so libwx_.*.so librsync.so.1 libpng12.so |
da4b87b9 ER |
32 | |
33 | # a zip and executable at the same time | |
34 | %define _noautostrip .*/library.zip\\|.*/dropbox | |
35 | ||
36 | # debuginfo wouldn't be useful | |
37 | %define _enable_debug_packages 0 | |
38 | ||
b70c96ae | 39 | # prelinked library, it is missing some cairo symbols |
40 | %define skip_post_check_so libwx_gtk2ud_core-2.8.so.0 | |
41 | ||
da4b87b9 ER |
42 | %description |
43 | Dropbox is software that syncs your files online and across your | |
44 | computers. | |
45 | ||
46 | Put your files into your Dropbox on one computer, and they'll be | |
47 | instantly available on any of your other computers that you've | |
48 | installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of | |
49 | your files are stored on Dropbox's secure servers, you can also access | |
50 | them from any computer or mobile device using the Dropbox website. | |
51 | ||
52 | %prep | |
53 | %setup -qcT | |
54 | %ifarch %{ix86} | |
55 | %{__tar} --strip-components=1 -xzf %{SOURCE0} | |
56 | %endif | |
57 | %ifarch %{x8664} | |
58 | %{__tar} --strip-components=1 -xzf %{SOURCE1} | |
59 | %endif | |
60 | ||
84f5c3ef | 61 | # no need to package this |
77d2e1b5 ER |
62 | %{__rm} -r distribute-0.6.26-py2.7.egg |
63 | ||
64 | # libraries to be taken from system | |
65 | # for a in *.so*; do ls -ld /lib/$a /usr/lib/$a; done 2>/dev/null | |
66 | %{__rm} libpng12.so.0 libbz2.so.1.0 libpopt.so.0 | |
84f5c3ef | 67 | |
da4b87b9 ER |
68 | # make into symlink, looks cleaner than hardlink: |
69 | # we can attach executable attrs to binary and leave no attrs for symlink in | |
70 | # %files section. | |
71 | ln -sf dropbox library.zip | |
72 | ||
84f5c3ef | 73 | # fun, let's delete non-linux files from archive |
77d2e1b5 ER |
74 | unzip -l library.zip | grep -E 'arch/(mac|win32)|pynt|ui/cocoa|unittest' | awk '{print $NF}' > lib.delete |
75 | # TODO: also pymac could be cleaned if pymac.constants is not imported | |
76 | zip library.zip -d $(cat lib.delete) | |
f4d77724 | 77 | |
da4b87b9 ER |
78 | %install |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | install -d $RPM_BUILD_ROOT%{_bindir} | |
77d2e1b5 | 81 | ln -s %{_libdir}/%{name}/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd |
da4b87b9 ER |
82 | |
83 | # install everything else | |
77d2e1b5 ER |
84 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name} |
85 | cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name} | |
86 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/lib.delete | |
da4b87b9 ER |
87 | |
88 | # in doc | |
77d2e1b5 | 89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{ACKNOWLEDGEMENTS,VERSION,README} |
da4b87b9 ER |
90 | |
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
14bae0cf | 96 | %doc ACKNOWLEDGEMENTS VERSION README |
da4b87b9 | 97 | %attr(755,root,root) %{_bindir}/dropboxd |
77d2e1b5 ER |
98 | %dir %{_libdir}/%{name} |
99 | %attr(755,root,root) %{_libdir}/%{name}/*.so* | |
100 | %attr(755,root,root) %{_libdir}/%{name}/dropbox | |
101 | %attr(755,root,root) %{_libdir}/%{name}/dropboxd | |
102 | %{_libdir}/%{name}/library.zip | |
103 | ||
fae5f35a ER |
104 | %dir %{_libdir}/%{name}/mock-*-py*.egg |
105 | %{_libdir}/%{name}/mock-*-py*.egg/mock.py[co] | |
106 | %{_libdir}/%{name}/mock-*-py*.egg/EGG-INFO | |
107 | ||
77d2e1b5 ER |
108 | %dir %{_libdir}/%{name}/images |
109 | %{_libdir}/%{name}/images/emblems | |
110 | %{_libdir}/%{name}/images/hicolor |