Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(dist): change generated source archive to use version
The current srpm generation in the build system creates an upstream tarball named as "NAME-COMMIT.tar.gz" containing a single directory named in the same way (i.e. "NAME-COMMIT"); while this works fine in newer versions of RPM, older versions such as the one in EL 8 require that the source tarball has a single directory named "NAME-VERSION". Hence, change both things to be more in line with what is generally done in RPM packaging: - change the name of the generated upstream tarball to contain the version and not the commit (which is later added as part of the RPM Release) - set the "archivename" RPM variable to the format wanted; this variable is used by the forgemeta RPM macros, used internally by the Go (S)RPM macros This requires setting "Version" earlier, i.e. before using the %gometa macro. Signed-off-by: Pino Toscano <[email protected]>
- Loading branch information