F39+: Form release tag name without a subshell

[skip changelog]
This commit is contained in:
Benjamin A. Beasley 2024-02-27 08:39:21 -05:00
parent e6a89aacd4
commit 3a8edd582c

View File

@ -16,7 +16,7 @@ Summary: Xalan XSLT processor for C/C++
# of the binary RPMs.
License: Apache-2.0
URL: http://apache.github.io/xalan-c/
%global tag Xalan-C_%(echo '%{version}' | tr . _)
%global tag Xalan-C_%{gsub %{version} . _}
%global tar_name xalan_c-%(echo %{version} | cut -d . -f -2)
%global forgeurl https://github.com/apache/xalan-c/
%global releaseurl %{forgeurl}/releases/download/%{tag}