From db24ad409150263e4dc0bafdc00c0dd9ee8bf2a1 Mon Sep 17 00:00:00 2001 From: Gilver Date: Sun, 21 Sep 2025 20:23:43 -0500 Subject: [PATCH] fix(goofcord): Vendor NodeJS Basically spec side of SRPM macro changes. Signed-off-by: Gilver --- anda/apps/goofcord/stable/goofcord.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/anda/apps/goofcord/stable/goofcord.spec b/anda/apps/goofcord/stable/goofcord.spec index 25a1ccceef..bb8ab5c985 100644 --- a/anda/apps/goofcord/stable/goofcord.spec +++ b/anda/apps/goofcord/stable/goofcord.spec @@ -7,6 +7,7 @@ %elifarch aarch64 armv7hl armv7l %global __requires_exclude ^((libffmpeg[.]so.*)|(lib.*\\.so.*)|(.*\\x86_64*\\.so.*)|(.*\\x86-64*\\.so.*))$ %endif +%bcond vendored_nodejs 1 Name: goofcord Version: 1.10.3 @@ -21,8 +22,10 @@ BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make +%if %{without vendored_nodejs} BuildRequires: nodejs BuildRequires: nodejs-npm +%endif BuildRequires: python3 %ifarch aarch64 BuildRequires: zlib-ng-compat-devel @@ -34,6 +37,12 @@ A highly configurable and privacy minded Discord client. %prep %autosetup -n %{git_name}-%{version} +%if %{with vendored_nodejs} +NVM_DIR="%{rpmbuilddir}/.nvm" curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash +. "%{rpmbuilddir}/.nvm/nvm.sh" +. "%{rpmbuilddir}/.nvm/bash_completion" +nvm install 24 +%endif %build %ifarch aarch64 armv7hl armv7l