From d039ad226c69b931885644a773fcc2039a456d6f Mon Sep 17 00:00:00 2001 From: madonuko Date: Wed, 23 Oct 2024 22:15:53 +0800 Subject: [PATCH 1/2] fix: stardust-flatland --- anda/stardust/flatland/stardust-flatland.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/anda/stardust/flatland/stardust-flatland.spec b/anda/stardust/flatland/stardust-flatland.spec index e6e32267f5..9eb6c389ae 100644 --- a/anda/stardust/flatland/stardust-flatland.spec +++ b/anda/stardust/flatland/stardust-flatland.spec @@ -6,7 +6,7 @@ Name: stardust-flatland Version: %commit_date.%shortcommit -Release: 1%?dist +Release: 2%?dist Summary: Flatland for Stardust XR. URL: https://github.com/StardustXR/flatland Source0: %url/archive/%commit/flatland-%commit.tar.gz @@ -31,8 +31,13 @@ STARDUST_RES_PREFIXES=/usr/share STARDUST_RES_PREFIXES=%_datadir %cargo_install +mkdir -p %buildroot%_datadir +cp res/* %buildroot%_datadir/ + + %files %_bindir/flatland +%_datadir/flatland/ %license LICENSE %doc README.md From e44221aab5d61644748afced81448db1b41443cd Mon Sep 17 00:00:00 2001 From: madonuko Date: Wed, 23 Oct 2024 22:48:47 +0800 Subject: [PATCH 2/2] fix export for STARDUST_RES_PREFIXES --- anda/stardust/flatland/stardust-flatland.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/anda/stardust/flatland/stardust-flatland.spec b/anda/stardust/flatland/stardust-flatland.spec index 9eb6c389ae..fdfb784cb9 100644 --- a/anda/stardust/flatland/stardust-flatland.spec +++ b/anda/stardust/flatland/stardust-flatland.spec @@ -24,15 +24,14 @@ Packager: Owen Zimmerman %cargo_prep_online %build -STARDUST_RES_PREFIXES=/usr/share %install %define __cargo_common_opts %{?_smp_mflags} -Z avoid-dev-deps --locked -STARDUST_RES_PREFIXES=%_datadir +export STARDUST_RES_PREFIXES=%_datadir %cargo_install mkdir -p %buildroot%_datadir -cp res/* %buildroot%_datadir/ +cp -r res/* %buildroot%_datadir/ %files