From 66cd28f1aaec788a496d08c011dd741ae14ac718 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 14 Dec 2025 08:34:54 -0800 Subject: [PATCH] feat: Use Electron macros for...Electron (#8367) (#8370) (cherry picked from commit 2825f1acd24273ae371d386800ffe43288d1a414) Co-authored-by: Gilver --- anda/tools/electron/electron.spec | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/anda/tools/electron/electron.spec b/anda/tools/electron/electron.spec index ff189fc6db..24a3668792 100644 --- a/anda/tools/electron/electron.spec +++ b/anda/tools/electron/electron.spec @@ -1,27 +1,15 @@ -%define debug_package %{nil} -%global _build_id_links none - -%ifarch x86_64 -%global garch x64 -%elifarch aarch64 -%global garch arm64 -%endif - -# Exclude private libraries -%global __requires_exclude libffmpeg.so -%global __provides_exclude_from %{_libdir}/%{name}/.*\\.so +%electronmeta Name: electron Version: 39.2.7 Release: 1%?dist Summary: Build cross platform desktop apps with web technologies -License: MIT +License: %{electron_license} URL: https://electronjs.org/ -Source0: https://github.com/electron/electron/releases/download/v%{version}/chromedriver-v%{version}-linux-%{garch}.zip -Source1: https://github.com/electron/electron/releases/download/v%{version}/electron-v%{version}-linux-%{garch}.zip +Source0: https://github.com/electron/electron/releases/download/v%{version}/chromedriver-v%{version}-linux-%{_electron_cpu}.zip +Source1: https://github.com/electron/electron/releases/download/v%{version}/electron-v%{version}-linux-%{_electron_cpu}.zip Source2: https://raw.githubusercontent.com/electron/electron/v%version/README.md -Requires: c-ares gtk3 minizip nss re2 -BuildRequires: unzip +BuildRequires: anda-srpm-macros >= 0.2.26 %description The Electron framework lets you write cross-platform desktop applications using