diff --git a/cloud-init.changes b/cloud-init.changes index 1475b0d..1fd569c 100644 --- a/cloud-init.changes +++ b/cloud-init.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 13 19:44:11 UTC 2020 - Robert Schweikert + +- Patch the full package version into the cloud-init version file + ------------------------------------------------------------------- Tue Nov 10 11:39:09 UTC 2020 - Robert Schweikert diff --git a/cloud-init.spec b/cloud-init.spec index a0acecd..e04afe9 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -134,6 +134,11 @@ Documentation and examples for cloud-init tools %patch57 %patch58 -p1 %patch59 +# patch in the full version to version.py +version_pys=$(find . -name version.py -type f) +[ -n "$version_pys" ] || + { echo "failed to find 'version.py' to patch with version." 1>&2; exit 1; } +sed -i "s,@@PACKAGED_VERSION@@,%{version}-%{release}," $version_pys %build python3 setup.py build