contrib/rpm: reorder variable in spec file and set rpm_version

On recent Fedora and RHEL we no longer have differing "rpm_version"
and "real_version". So usually "rpm_version" is just the same as
"real_version".

Update the template spec file to reflect that. For the "build_clean.sh"
script, we anyway always set them both to "__VERSION__".
This commit is contained in:
Thomas Haller 2022-04-14 12:45:08 +02:00
parent 335afba2e6
commit 6bada7fb9e
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -13,8 +13,8 @@
%global glib2_version %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad)
%global epoch_version 1
%global rpm_version __VERSION__
%global real_version __VERSION__
%global rpm_version %{real_version}
%global release_version __RELEASE_VERSION__
%global snapshot __SNAPSHOT__
%global git_sha __COMMIT__