]> git.pld-linux.org Git - packages/dropbox.git/blobdiff - dropbox.spec
34.4.20
[packages/dropbox.git] / dropbox.spec
index 9b073dfca3533672f4848f74f79bbfb322d5b2a1..423a6be3a005b3c3de5f2456d9e1908be240bc70 100644 (file)
@@ -9,15 +9,16 @@
 #   http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
 Summary:       Sync and backup files between computers
 Name:          dropbox
-Version:       3.12.5
+# https://www.dropboxforum.com/hc/en-us/community/posts/206682016-New-Versioning-Scheme
+Version:       34.4.20
 Release:       1
 License:       Proprietary
 Group:         Daemons
 Source0:       http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
-# NoSource0-md5:       03e340412f25941b0723c9c9a35e26a2
+# NoSource0-md5:       4489bdc214fd553a1128ec441705eedd
 NoSource:      0
 Source1:       http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
-# NoSource1-md5:       028cb9020f14faad0906229693c0d38f
+# NoSource1-md5:       65dcb4c49a6808f2495912b4cc84a7ce
 NoSource:      1
 URL:           http://www.dropbox.com/
 BuildRequires: rpmbuild(macros) >= 1.566
@@ -80,15 +81,22 @@ mv dropbox-lnx.*-%{version}/* .
 #%{__rm} -r distribute-0.6.26-py2.7.egg
 
 # libraries to be taken from system
-# for a in *.so*; do ls -ld /lib64/$a %{_libdir}/$a; done 2>/dev/null
+# for a in *.so*; do ls -ld /lib64/$a /us?/lib64/$a; done 2>/dev/null
 %{__rm} libpopt.so.0 libdrm.so.2 libGL.so.1
-#%{__rm} libffi.so.6 librsync.so.1
-#%{__rm} libQt5{Core,DBus,Gui,Network,OpenGL,PrintSupport,Qml,Quick,Sql,WebKit,WebKitWidgets,Widgets}.so.5
+%{__rm} libffi.so.6
+%{__rm} libX11-xcb.so.1
+%{__rm} libQt5{Core,DBus,Gui,Network,OpenGL,PrintSupport,Qml,Quick,Sql,WebKit,WebKitWidgets,Widgets,XcbQpa}.so.5
+%{__rm} qt.conf
+%{__rm} -r plugins
+
+# keep librsync, won't finish syncing if not using upstream copy
+test -f librsync.so.1
 
 # fun, let's delete non-linux files from archive
 unzip -l library.zip | \
-       grep -E '(arch|dropbox)/(mac|win32)|_(win32|mac).py|pymac|ui/cocoa|unittest' | \
-       grep -vE 'pymac/(__init__|constants|types|lazydll|lazyframework).py' | \
+       grep -E '(arch|dropbox)/(mac|win32)|_(win32|mac)\.py|pymac|ui/cocoa|unittest' | \
+       grep -vE 'pymac/(__init__|constants|types|lazydll|lazyframework)\.py' | \
+       grep -vE 'dropbox/mac/(version|__init__).py' | \
        awk '{print $NF}' > lib.delete
 zip library.zip -d $(cat lib.delete)
 
@@ -123,43 +131,20 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/%{name}/dropboxd
 %{_libdir}/%{name}/library.zip
 
-%{_libdir}/%{name}/cffi-*-py*.egg
-%{_libdir}/%{name}/dropbox_sqlite_ext-*-py*.egg
-%{_libdir}/%{name}/enum34-*-py*.egg-info
-%{_libdir}/%{name}/futures-*-py*.egg
-%{_libdir}/%{name}/idna-*-py*.egg
-%{_libdir}/%{name}/ipaddress-*-py*.egg
-%{_libdir}/%{name}/mock-*-py*.egg
-%{_libdir}/%{name}/psutil-*-py*.egg
-%{_libdir}/%{name}/py-*-py*.egg
-%{_libdir}/%{name}/pyasn1-*-py*.egg
-%{_libdir}/%{name}/pytest-*-py*.egg
-%{_libdir}/%{name}/requests-*-py*.egg
-%{_libdir}/%{name}/setuptools-*-py*.egg
-%{_libdir}/%{name}/six-*-py*.egg
-%{_libdir}/%{name}/tornado-*-py*.egg
-
 # need +x bits for .so files
 %defattr(-,root,root,-)
-%{_libdir}/%{name}/cryptography-*-py*-linux-*.egg
+%{_libdir}/%{name}/dropbox_sqlite_ext-*-py*.egg
+%{_libdir}/%{name}/setuptools-*-py*.egg
 
 # GUI parts
 %exclude %{_libdir}/%{name}/PyQt5.*.so
-%exclude %{_libdir}/%{name}/libQt5*.so.5
-%exclude %{_libdir}/%{name}/libX11-xcb.so.1
 %exclude %{_libdir}/%{name}/dbus.mainloop.pyqt5.so
 
 %files gui
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/wmctrl
 %attr(755,root,root) %{_libdir}/%{name}/PyQt5.*.so
-%attr(755,root,root) %{_libdir}/%{name}/libQt5*.so.5
-%attr(755,root,root) %{_libdir}/%{name}/libX11-xcb.so.1
 %attr(755,root,root) %{_libdir}/%{name}/dbus.mainloop.pyqt5.so
-%dir %{_libdir}/%{name}/plugins
-%dir %{_libdir}/%{name}/plugins/platforms
-%attr(755,root,root) %{_libdir}/%{name}/plugins/platforms/libqxcb.so
-%{_libdir}/%{name}/qt.conf
 %dir %{_libdir}/%{name}/images
 %{_libdir}/%{name}/images/emblems
 %{_libdir}/%{name}/images/hicolor
This page took 0.027227 seconds and 4 git commands to generate.