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