From 2ae74ed7d3d86575dd386fc262e76d40cf3a9fb2 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Feb 27 2024 04:27:32 +0000 Subject: F39+: Form short commit hash without a subshell [skip changelog] --- diff --git a/gn.spec b/gn.spec index 0c44ce7..a84a679 100644 --- a/gn.spec +++ b/gn.spec @@ -26,7 +26,7 @@ Name: gn # See https://gn.googlesource.com/gn/+log for the latest changes. %global commit 5787e994aa4cb6cdb09c2c72ae6f1c6a7f1cf91a %global access 20240226 -%global shortcommit %(c='%{commit}'; echo "${c:0:12}") +%global shortcommit %{sub %{commit} 1 12} %global position 2150 Version: %{position}^%{access}git%{shortcommit} Release: %autorelease