Conver hyphnes to underscores for version macros.
Hyphens cannot be part of macro names.
Also please note that the `%{gsub:...}` macro is available since RPM
4.19+. Lua would need to be used for older RPM:
https://github.com/rpm-software-management/rpm/pull/2181