3 %bcond_with system_qt # Remove bundled Qt5
4 %bcond_with rewrite_zip # Remove Python modules this platform has no use
7 # - avoid dropboxd relaunching itself with newer version if there's update available (disable auto updating):
8 # glen 25034 19.9 1.5 1496132 81256 pts/46 Sl+ 11:02 1:02 /home/glen/.dropbox-dist/dropbox /newerversion
10 # - Upstream Dropbox Support (https://www.dropbox.com/ticket)
11 # - Release Notes (check new versions here): https://www.dropbox.com/release_notes
12 # - Download instructions (click the download link to find current version):
13 # https://www.dropbox.com/install-linux
14 # http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
15 Summary: Sync and backup files between computers
17 # https://www.dropboxforum.com/hc/en-us/community/posts/206682016-New-Versioning-Scheme
22 Source0: https://edge.dropboxstatic.com/dbx-releng/client/%{name}-lnx.x86-%{version}.tar.gz
23 # NoSource0-md5: a8b605277aaafaf9303a6a21ec15a041
25 Source1: https://edge.dropboxstatic.com/dbx-releng/client/%{name}-lnx.x86_64-%{version}.tar.gz
26 # NoSource1-md5: 2b619997b08296671ed51f83415c7814
28 URL: https://www.dropbox.com/
29 BuildRequires: rpmbuild(macros) >= 1.566
30 BuildRequires: sed >= 4.0
31 BuildRequires: tar >= 1:1.15.1
34 Conflicts: nautilus-dropbox < 0.6.3-2
35 ExclusiveArch: %{ix86} %{x8664}
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 # generate no Provides from private modules
39 %define _noautoprovfiles %{_libdir}/%{name}
41 # libicu-42, but pld th already has 59+
42 %define icu_libs libicudata.so.42 libicui18n.so.42 libicuuc.so.42
44 %define qt_libs libQt5(Core|DBus|Gui|Network|OpenGL|PrintSupport|Qml|Quick|Sql|WebKit|WebKitWidgets|Widgets|XcbQpa).so.5 libqxcb.so
46 # provided by package itself, but autodeps disabled
47 %define _noautoreq libwx_.*.so %{icu_libs} %{!?system_qt:%{qt_libs}} librsync.so.1 libdropbox_core.so libdropbox_tprt.so
49 # a zip and executable at the same time
50 %define _noautostrip .*/library.zip\\|.*/dropbox
52 # debuginfo wouldn't be useful
53 %define _enable_debug_packages 0
55 # prelinked library, it is missing some cairo symbols
56 #define skip_post_check_so libwx_gtk2ud_core-2.8.so.0
59 Dropbox is software that syncs your files online and across your
62 Put your files into your Dropbox on one computer, and they'll be
63 instantly available on any of your other computers that you've
64 installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of
65 your files are stored on Dropbox's secure servers, you can also access
66 them from any computer or mobile device using the Dropbox website.
69 Summary: Gtk+2 GUI of Dropbox
70 Group: X11/Applications
71 Requires: %{name} = %{version}-%{release}
74 Gtk+2 Systray of Dropbox Daemon status.
79 %{__tar} --strip-components=1 -xzf %{SOURCE0}
82 %{__tar} --strip-components=1 -xzf %{SOURCE1}
84 mv dropbox-lnx.*-%{version}/* .
86 # no need to package this
87 # altho system python is also 2.7, don't know how to enforce using it system libs
88 #%{__rm} -r distribute-0.6.26-py2.7.egg
90 # libraries to be taken from system
91 # for a in *.so*; do ls -ld /lib64/$a /us?/lib64/$a; done 2>/dev/null
92 %{__rm} libpopt.so.0 libdrm.so.2 libGL.so.1
93 %{__rm} libX11-xcb.so.1
96 %{__rm} libQt5{Core,DBus,Gui,Network,OpenGL,PrintSupport,Qml,Quick,Sql,WebKit,WebKitWidgets,Widgets,XcbQpa}.so.5
101 # keep librsync, won't finish syncing if not using upstream copy
102 #test -f librsync.so.1
104 %if %{with rewrite_zip}
105 # For fun, let's delete non-Linux files from archive
107 unzip -l python-packages.zip | \
108 grep -E '(arch|dropbox)/(mac|win32)|_(win32|mac)\.py|pymac|ui/cocoa|unittest' | \
109 grep -vE 'pymac/(__init__|constants|types|lazydll|lazyframework)\.py' | \
110 grep -vE 'dropbox/mac/(version|__init__)\.py' | \
111 grep -vE 'dropbox/win32/(__init__|microsoft_store)\.py' | \
112 grep -vF 'dropbox/client/features/files/local/operations/_mac.py' | \
113 awk '{print $NF}' > $d
114 zip python-packages.zip -d $(cat $d)
118 rm -rf $RPM_BUILD_ROOT
119 install -d $RPM_BUILD_ROOT%{_bindir}
120 ln -s --relative %{_libdir}/%{name}/dropboxd $RPM_BUILD_ROOT%{_bindir}/dropboxd
122 # install everything else
123 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}
124 cp -a * $RPM_BUILD_ROOT%{_libdir}/%{name}
127 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/{ACKNOWLEDGEMENTS,VERSION,README}
130 rm -rf $RPM_BUILD_ROOT
133 %defattr(644,root,root,755)
134 %doc ACKNOWLEDGEMENTS VERSION README
135 %attr(755,root,root) %{_bindir}/dropboxd
136 %dir %{_libdir}/%{name}
137 %attr(755,root,root) %{_libdir}/%{name}/*-linux-gnu.so
138 %attr(755,root,root) %{_libdir}/%{name}/dropbox
139 %attr(755,root,root) %{_libdir}/%{name}/dropboxd
140 %attr(755,root,root) %{_libdir}/%{name}/libatomic.so.1
141 %attr(755,root,root) %{_libdir}/%{name}/libdropbox_core.so
142 %attr(755,root,root) %{_libdir}/%{name}/libdropbox_sqlite_ext.so
143 %attr(755,root,root) %{_libdir}/%{name}/libdropbox_tprt.so
144 %attr(755,root,root) %{_libdir}/%{name}/libicudata.so.*
145 %attr(755,root,root) %{_libdir}/%{name}/libicui18n.so.*
146 %attr(755,root,root) %{_libdir}/%{name}/libicuuc.so.*
147 %attr(755,root,root) %{_libdir}/%{name}/libpython3.8.so.*.*
148 %{_libdir}/%{name}/python-packages.zip
150 # need +x bits for .so files
151 %defattr(-,root,root,-)
154 %exclude %{_libdir}/%{name}/PyQt5.*.so
157 %defattr(644,root,root,755)
158 %if %{without system_qt}
159 %{_libdir}/%{name}/qt.conf
160 %attr(755,root,root) %{_libdir}/%{name}/libQt5Core.so.5
161 %attr(755,root,root) %{_libdir}/%{name}/libQt5DBus.so.5
162 %attr(755,root,root) %{_libdir}/%{name}/libQt5Gui.so.5
163 %attr(755,root,root) %{_libdir}/%{name}/libQt5Network.so.5
164 %attr(755,root,root) %{_libdir}/%{name}/libQt5OpenGL.so.5
165 %attr(755,root,root) %{_libdir}/%{name}/libQt5PrintSupport.so.5
166 %attr(755,root,root) %{_libdir}/%{name}/libQt5Qml.so.5
167 %attr(755,root,root) %{_libdir}/%{name}/libQt5Quick.so.5
168 %attr(755,root,root) %{_libdir}/%{name}/libQt5Sql.so.5
169 %attr(755,root,root) %{_libdir}/%{name}/libQt5WebKit.so.5
170 %attr(755,root,root) %{_libdir}/%{name}/libQt5WebKitWidgets.so.5
171 %attr(755,root,root) %{_libdir}/%{name}/libQt5Widgets.so.5
172 %attr(755,root,root) %{_libdir}/%{name}/libQt5XcbQpa.so.5
173 %dir %{_libdir}/%{name}/plugins
174 %dir %{_libdir}/%{name}/plugins/platforms
175 %attr(755,root,root) %{_libdir}/%{name}/plugins/platforms/libqxcb.so
177 %attr(755,root,root) %{_libdir}/%{name}/PyQt5.*.so
178 %attr(755,root,root) %{_libdir}/%{name}/wmctrl
179 %dir %{_libdir}/%{name}/images
180 %{_libdir}/%{name}/images/emblems
181 %{_libdir}/%{name}/images/hicolor
182 %{_libdir}/%{name}/resources