]> git.pld-linux.org Git - packages/dropbox.git/blobdiff - dropbox.spec
up to 8.4.21
[packages/dropbox.git] / dropbox.spec
index 937c5babeb07c07ba7e4a4b1c6009affce427aa8..5ea8014a373c975cf91cd34819eefead1264af8c 100644 (file)
@@ -9,15 +9,16 @@
 #   http://wiki.dropbox.com/TipsAndTricks/TextBasedLinuxInstall
 Summary:       Sync and backup files between computers
 Name:          dropbox
-Version:       3.6.9
+# https://www.dropboxforum.com/hc/en-us/community/posts/206682016-New-Versioning-Scheme
+Version:       8.4.21
 Release:       1
 License:       Proprietary
 Group:         Daemons
 Source0:       http://dl-web.dropbox.com/u/17/%{name}-lnx.x86-%{version}.tar.gz
-# NoSource0-md5:       0ff1278ba185965360b5cbb51b1bb9e3
+# NoSource0-md5:       2488a014d34f85b9abac33fcc828e2ef
 NoSource:      0
 Source1:       http://dl-web.dropbox.com/u/17/%{name}-lnx.x86_64-%{version}.tar.gz
-# NoSource1-md5:       304f57de83de56a164d37ac6ee89439a
+# NoSource1-md5:       5e8e8957f220090db9a33256bf9c85f3
 NoSource:      1
 URL:           http://www.dropbox.com/
 BuildRequires: rpmbuild(macros) >= 1.566
@@ -80,23 +81,30 @@ 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
 
-# make into symlink, looks cleaner than hardlink:
-# we can attach executable attrs to binary and leave no attrs for symlink in
-# %files section.
-ln -sf dropbox library.zip
+# 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)
 
+# make into symlink, looks cleaner than hardlink:
+# we can attach executable attrs to binary and leave no attrs for symlink in
+# %files section.
+ln -sf dropbox library.zip
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
@@ -123,33 +131,24 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/%{name}/dropboxd
 %{_libdir}/%{name}/library.zip
 
-%{_libdir}/%{name}/certifi-*-py*.egg
-%{_libdir}/%{name}/cffi-*-py*.egg
 %{_libdir}/%{name}/dropbox_sqlite_ext-*-py*.egg
-%{_libdir}/%{name}/futures-*-py*.egg
-%{_libdir}/%{name}/mock-*-py*.egg
 %{_libdir}/%{name}/psutil-*-py*.egg
-%{_libdir}/%{name}/requests-*-py*.egg
 %{_libdir}/%{name}/setuptools-*-py*.egg
-%{_libdir}/%{name}/tornado-*-py*.egg
+
+# need +x bits for .so files
+%defattr(-,root,root,-)
+%{_libdir}/%{name}/cryptography-*-py*-linux-*.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
+%{_libdir}/%{name}/resources
This page took 0.2444 seconds and 4 git commands to generate.