Reputation: 996
Desired workflow:
SPECS/*.spec
file for the RPM package creator.SPECS/*.spec
Version:
value because their package builders retrieve that version from the Git repo (or GitHub releases) during the package build process.Arch does this easily, even without releases; can RPM?
Elaboration...
In an Arch Linux PKGBUILD file (for makepkg
):
pkgver=
variable) can be set dynamically from a pkgver()
function.Arch automates the package versioning process remarkably; once written the repo package build script (PKGBUILD
) never needs to be touched again. So, like with Arch, can the version be automatically retrieved from the VCS source at package build time for RPM? If so how and to what extent?
On RPM, the same .spec
file may work for rpmbuild
to read, just needing some certain settings.
This may require publishing GitHub releases so that rpmbuild
can read them from SPECS/*.spec
viz Source0:
.
PKGBUILD
pkgver()
function?SPECS/
directory and .spec
file or something similarSPECS/*.spec
Version:
field every time the VCS/Git repo is updated for a new stable release?Similar question, but for Debian:
Slightly related:
Upvotes: 0
Views: 14