pages:howtos:suse:drawio-update
Update Draw.io On openSUSE Tumbleweed
Draw.io Releases can be found at:
https://github.com/jgraph/drawio-desktop/releases/
MYUSER="<USER>" DRAWIOVERSION="<NEWVERSION>" # e.g. 15.4.0 mkdir -pv /home/$MYUSER/repos/download/drawio wget https://github.com/jgraph/drawio-desktop/releases/download/v$DRAWIOVERSION/drawio-x86_64-$DRAWIOVERSION.rpm -P /home/$MYUSER/repos/download/drawio/ chown -R $MYUSER:users /home/$MYUSER/repos/ rpmrebuild -e -p /home/$MYUSER/repos/download/drawio/drawio-x86_64-$DRAWIOVERSION.rpm
edit the specfile and change/add the following lines
# rpmrebuild autogenerated specfile BuildRoot: /root/.tmp/rpmrebuild.17918/work/root #AutoProv: no AutoReqProv: on %undefine __find_provides AutoReq: no %undefine __find_requires # Do not try autogenerate prereq/conflicts/obsoletes and check files %undefine __check_files %undefine __find_prereq %undefine __find_conflicts %undefine __find_obsoletes # Be sure buildpolicy set to do nothing %define __spec_install_post %{nil} # Something that need for rpm-4.1 %define _missing_doc_files_terminate_build 0 #dummy #dummy #BUILDHOST: fv-az177-973.4g4viswlt1iejgvtwvh3dpz3vd.bx.internal.cloudapp.net #BUILDTIME: Thu May 13 17:15:34 2021 #SOURCERPM: draw.io-14.6.13-1.src.rpm #RPMVERSION: 4.14.1 #OS: linux #SIZE: 327674267 #ARCHIVESIZE: 327689976 #ARCH: x86_64 BuildArch: x86_64 Name: draw.io Version: 14.6.13 Release: 1 License: Apache-2.0 Group: default Summary: diagrams.net desktop URL: https://github.com/jgraph/drawio Vendor: JGraph <support@draw.io> Packager: JGraph <support@draw.io> Prefix: / Provides: draw.io = 14.6.13-1 Provides: draw.io(x86-64) = 14.6.13-1 Requires(post): /bin/sh Requires(postun): /bin/sh #Requires: at-spi2-core #Requires: gtk3 #Requires: libXScrnSaver #Requires: libXtst #Requires: libnotify #Requires: libuuid #Requires: nss #Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 #Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 #Requires: rpmlib(PayloadIsXz) <= 5.2-1 #Requires: xdg-utils %description diagrams.net desktop %files %attr(0644, root, root) "/opt/drawio/LICENSE.electron.txt" %attr(0644, root, root) "/opt/drawio/LICENSES.chromium.html" %attr(0755, root, root) "/opt/drawio/chrome-sandbox" %attr(0644, root, root) "/opt/drawio/chrome_100_percent.pak" %attr(0644, root, root) "/opt/drawio/chrome_200_percent.pak" %attr(0755, root, root) "/opt/drawio/drawio" %attr(0644, root, root) "/opt/drawio/icudtl.dat" %attr(0755, root, root) "/opt/drawio/libEGL.so" %attr(0755, root, root) "/opt/drawio/libGLESv2.so" %attr(0755, root, root) "/opt/drawio/libffmpeg.so" %attr(0755, root, root) "/opt/drawio/libvk_swiftshader.so" %attr(0755, root, root) "/opt/drawio/libvulkan.so.1" %attr(0644, root, root) "/opt/drawio/locales/am.pak" %attr(0644, root, root) "/opt/drawio/locales/ar.pak" %attr(0644, root, root) "/opt/drawio/locales/bg.pak" %attr(0644, root, root) "/opt/drawio/locales/bn.pak" %attr(0644, root, root) "/opt/drawio/locales/ca.pak" %attr(0644, root, root) "/opt/drawio/locales/cs.pak" %attr(0644, root, root) "/opt/drawio/locales/da.pak" %attr(0644, root, root) "/opt/drawio/locales/de.pak" %attr(0644, root, root) "/opt/drawio/locales/el.pak" %attr(0644, root, root) "/opt/drawio/locales/en-GB.pak" %attr(0644, root, root) "/opt/drawio/locales/en-US.pak" %attr(0644, root, root) "/opt/drawio/locales/es-419.pak" %attr(0644, root, root) "/opt/drawio/locales/es.pak" %attr(0644, root, root) "/opt/drawio/locales/et.pak" %attr(0644, root, root) "/opt/drawio/locales/fa.pak" %attr(0644, root, root) "/opt/drawio/locales/fi.pak" %attr(0644, root, root) "/opt/drawio/locales/fil.pak" %attr(0644, root, root) "/opt/drawio/locales/fr.pak" %attr(0644, root, root) "/opt/drawio/locales/gu.pak" %attr(0644, root, root) "/opt/drawio/locales/he.pak" %attr(0644, root, root) "/opt/drawio/locales/hi.pak" %attr(0644, root, root) "/opt/drawio/locales/hr.pak" %attr(0644, root, root) "/opt/drawio/locales/hu.pak" %attr(0644, root, root) "/opt/drawio/locales/id.pak" %attr(0644, root, root) "/opt/drawio/locales/it.pak" %attr(0644, root, root) "/opt/drawio/locales/ja.pak" %attr(0644, root, root) "/opt/drawio/locales/kn.pak" %attr(0644, root, root) "/opt/drawio/locales/ko.pak" %attr(0644, root, root) "/opt/drawio/locales/lt.pak" %attr(0644, root, root) "/opt/drawio/locales/lv.pak" %attr(0644, root, root) "/opt/drawio/locales/ml.pak" %attr(0644, root, root) "/opt/drawio/locales/mr.pak" %attr(0644, root, root) "/opt/drawio/locales/ms.pak" %attr(0644, root, root) "/opt/drawio/locales/nb.pak" %attr(0644, root, root) "/opt/drawio/locales/nl.pak" %attr(0644, root, root) "/opt/drawio/locales/pl.pak" %attr(0644, root, root) "/opt/drawio/locales/pt-BR.pak" %attr(0644, root, root) "/opt/drawio/locales/pt-PT.pak" %attr(0644, root, root) "/opt/drawio/locales/ro.pak" %attr(0644, root, root) "/opt/drawio/locales/ru.pak" %attr(0644, root, root) "/opt/drawio/locales/sk.pak" %attr(0644, root, root) "/opt/drawio/locales/sl.pak" %attr(0644, root, root) "/opt/drawio/locales/sr.pak" %attr(0644, root, root) "/opt/drawio/locales/sv.pak" %attr(0644, root, root) "/opt/drawio/locales/sw.pak" %attr(0644, root, root) "/opt/drawio/locales/ta.pak" %attr(0644, root, root) "/opt/drawio/locales/te.pak" %attr(0644, root, root) "/opt/drawio/locales/th.pak" %attr(0644, root, root) "/opt/drawio/locales/tr.pak" %attr(0644, root, root) "/opt/drawio/locales/uk.pak" %attr(0644, root, root) "/opt/drawio/locales/vi.pak" %attr(0644, root, root) "/opt/drawio/locales/zh-CN.pak" %attr(0644, root, root) "/opt/drawio/locales/zh-TW.pak" %attr(0644, root, root) "/opt/drawio/resources.pak" %attr(0644, root, root) "/opt/drawio/resources/app.asar" %attr(0644, root, root) "/opt/drawio/snapshot_blob.bin" %attr(0755, root, root) "/opt/drawio/swiftshader/libEGL.so" %attr(0755, root, root) "/opt/drawio/swiftshader/libGLESv2.so" %attr(0644, root, root) "/opt/drawio/v8_context_snapshot.bin" %attr(0644, root, root) "/opt/drawio/vk_swiftshader_icd.json" %dir %attr(0755, root, root) "/usr/lib/.build-id" %dir %attr(0755, root, root) "/usr/lib/.build-id/13" %attr(0777, root, root) "/usr/lib/.build-id/13/070cd6d4401903dee7a42e402d150de4362b18" %dir %attr(0755, root, root) "/usr/lib/.build-id/3e" %attr(0777, root, root) "/usr/lib/.build-id/3e/d503d7be965ab698b328fe3a69162a4efb5351" %dir %attr(0755, root, root) "/usr/lib/.build-id/45" %attr(0777, root, root) "/usr/lib/.build-id/45/f06cc2ff072fee7975d5ff2529e322a9f654a8" %dir %attr(0755, root, root) "/usr/lib/.build-id/5b" %attr(0777, root, root) "/usr/lib/.build-id/5b/8864b69ddfe3bd034d5dbef9b814a8f9b59cbd" %dir %attr(0755, root, root) "/usr/lib/.build-id/aa" %attr(0777, root, root) "/usr/lib/.build-id/aa/3dcddb236dbafa5fed294576f1087f31d4303f" %dir %attr(0755, root, root) "/usr/lib/.build-id/af" %attr(0777, root, root) "/usr/lib/.build-id/af/4374e54497edac9a84703037832fafb0d99308" %dir %attr(0755, root, root) "/usr/lib/.build-id/b4" %attr(0777, root, root) "/usr/lib/.build-id/b4/fe1769dc0dbcd634d93f5ffd826d0354016f9e" %dir %attr(0755, root, root) "/usr/lib/.build-id/f0" %attr(0777, root, root) "/usr/lib/.build-id/f0/d8c634c19103e2e50b980cc1fb5cbacdc8d07c" %dir %attr(0755, root, root) "/usr/lib/.build-id/f3" %attr(0777, root, root) "/usr/lib/.build-id/f3/13677b4c4d959f49800be71689dc788f06ae94" %attr(0644, root, root) "/usr/share/applications/drawio.desktop" %attr(0644, root, root) "/usr/share/icons/hicolor/1024x1024/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/128x128/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/16x16/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/192x192/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/256x256/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/32x32/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/48x48/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/512x512/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/64x64/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/720x720/apps/drawio.png" %attr(0644, root, root) "/usr/share/icons/hicolor/96x96/apps/drawio.png" %attr(0644, root, root) "/usr/share/mime/packages/drawio.xml" %post -p /bin/sh #!/bin/bash # Link to the binary ln -sf '/opt/drawio/drawio' '/usr/bin/drawio' # SUID chrome-sandbox for Electron 5+ chmod 4755 '/opt/drawio/chrome-sandbox' || true update-mime-database /usr/share/mime || true update-desktop-database /usr/share/applications || true %postun -p /bin/sh #!/bin/bash # Delete the link to the binary rm -f '/usr/bin/drawio' %changelog
rpm -e draw.io rpm -i /usr/src/packages/RPMS/x86_64/draw.io-$DRAWIOVERSION-1.x86_64.rpm
~~DISCUSSION~~
pages/howtos/suse/drawio-update.txt · Last modified: 2021/12/09 23:31 by The Thing That Should Not Be