SHA256
1
0
forked from pool/cloud-init

- Patch the full package version into the cloud-init version file

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=176
This commit is contained in:
Robert Schweikert 2020-11-13 19:44:44 +00:00 committed by Git OBS Bridge
parent e0a3626f42
commit 1bec23819b
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 13 19:44:11 UTC 2020 - Robert Schweikert <rjschwei@suse.com>
- Patch the full package version into the cloud-init version file
-------------------------------------------------------------------
Tue Nov 10 11:39:09 UTC 2020 - Robert Schweikert <rjschwei@suse.com>

View File

@ -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