From 64288de04ec80078dcfc9308dff4fde0ee933229 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 10 Jan 2025 15:15:20 +0300 Subject: rpkg: Use NIRI_BUILD_COMMIT --- niri.spec.rpkg | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/niri.spec.rpkg b/niri.spec.rpkg index 266cc886..bedaafa7 100644 --- a/niri.spec.rpkg +++ b/niri.spec.rpkg @@ -101,10 +101,6 @@ Opening a new window never causes existing windows to resize. %prep {{{ git_dir_setup_macro }}} -# Make the version log message look nicer: since we're building not from niri's git repository, -# the git version macro will show its fallback string. -sed -i 's/"unknown commit"/"%{version}"/' src/utils/mod.rs - %cargo_prep -N # We're doing an online build. @@ -114,6 +110,7 @@ sed -i 's/^offline = true$//' .cargo/config.toml sed -i 's/.*please-remove-me$//' .cargo/config.toml %build +export NIRI_BUILD_COMMIT="%{version}" %cargo_build %install -- cgit