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:
parent
e0a3626f42
commit
1bec23819b
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user