mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 01:07:27 +00:00
ci: fedora: force correct rpm package version
RPM doesn't allow '-' in the version number, so this must be fixed if also when building from an untagged git tree. sanitize_for_ci() from get-version.py fixes it only when build is CI environment. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
This commit is contained in:
parent
793099201b
commit
8a00dc898f
@ -21,11 +21,12 @@ meson .. \
|
||||
ninja-build dist
|
||||
popd
|
||||
VERSION=`./contrib/get-version.py`
|
||||
RPMVERSION=${VERSION//-/.}
|
||||
mkdir -p $HOME/rpmbuild/SOURCES/
|
||||
mv build/meson-dist/fwupd-$VERSION.tar.xz $HOME/rpmbuild/SOURCES/
|
||||
|
||||
#generate a spec file
|
||||
sed "s,#VERSION#,$VERSION,;
|
||||
sed "s,#VERSION#,$RPMVERSION,;
|
||||
s,#TARBALL_VERSION#,$VERSION,;
|
||||
s,#BUILD#,1,;
|
||||
s,#LONGDATE#,`date '+%a %b %d %Y'`,;
|
||||
|
Loading…
Reference in New Issue
Block a user