1
0

Accepting request 1094853 from home:dheidler:branches:devel:languages:nodejs

- Be multi-arch friendly - Add aarch64 support

OBS-URL: https://build.opensuse.org/request/show/1094853
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=38
This commit is contained in:
Dominik Heidler 2023-06-23 11:31:14 +00:00 committed by Git OBS Bridge
parent 85c50fa6ba
commit bb7e534aab
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 23 11:03:57 UTC 2023 - Dominik Heidler <dheidler@suse.de>
- Be multi-arch friendly - Add aarch64 support
-------------------------------------------------------------------
Thu Jun 15 13:12:37 UTC 2023 - Dominik Heidler <dheidler@suse.de>

View File

@ -48,6 +48,9 @@ Requires: nodejs-electron
BuildRequires: nodejs18
%endif
# hak*.tar.gz only available for those architectures
ExclusiveArch: x86_64 aarch64
%description
A glossy Matrix collaboration client - desktop
@ -64,6 +67,11 @@ jq '.piwik=false | .update_base_url=null' < element.io/release/config.json | spo
mkdir -p $HOME/bin
ln -sf /usr/bin/python3 $HOME/bin/python
%ifarch aarch64
mv -v .hak/matrix-seshat/x86_64-unknown-linux-gnu .hak/matrix-seshat/aarch64-unknown-linux-gnu
mv -v .hak/keytar/x86_64-unknown-linux-gnu .hak/keytar/aarch64-unknown-linux-gnu
%endif
%build
echo 'yarn-offline-mirror "./npm-packages-offline-cache"' >> .yarnrc
echo 'nodedir %{_includedir}/electron' >> .yarnrc