From 19e87f4c9e6de4b84ad41e7abb614dc9ea8f50e4 Mon Sep 17 00:00:00 2001 From: madonuko Date: Wed, 17 Jun 2026 20:01:59 +0800 Subject: [PATCH] no mold, extract _package_note_flags --- anda/suites/ente/ensu/ensu.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/anda/suites/ente/ensu/ensu.spec b/anda/suites/ente/ensu/ensu.spec index 4bcac6fe04..a7ff97b77c 100644 --- a/anda/suites/ente/ensu/ensu.spec +++ b/anda/suites/ente/ensu/ensu.spec @@ -4,6 +4,8 @@ %global org "io.ente" %global appstream_component desktop-application +%bcond_with mold + Name: ensu Version: %(echo %tag | sed 's/^ensu-v//') Release: 1%?dist @@ -29,6 +31,10 @@ cd rust/apps/ensu %build cd rust/apps/ensu +# the original version of %_package_note_flags expects cc/gcc to parse the ld flags, +# but for wasm the `lld -flavor wasm` linker is called directly +# so I extracted the contents of the spec at /usr/lib/rpm/redhat/redhat-package-notes +%define _package_note_flags --package-metadata={\"type\":\"rpm\",\"name\":\"%name\",\"version\":\"%version-%release\",\"architecture\":\"$RPM_ARCH\",\"osCpe\":\"cpe:/o:fedoraproject:fedora:%fedora\"} %npm_build -Bc install -Dpm755 src-tauri/target/rpm/ensu -t %buildroot%_bindir %desktop_file_install %{S:1}