Merge "Create metadata file for GA release"
This commit is contained in:
commit
779a1a8757
@ -6,10 +6,11 @@ Build-Depends: debhelper-compat (= 13),
|
||||
dh-python,
|
||||
python3-all,
|
||||
python3-setuptools,
|
||||
python3-wheel
|
||||
python3-wheel,
|
||||
build-info-dev
|
||||
Build-Depends-Indep:
|
||||
python3-keystonemiddleware,
|
||||
python3-oslo.config
|
||||
python3-oslo.config
|
||||
Standards-Version: 4.5.1
|
||||
Homepage: https://www.starlingx.io
|
||||
Rules-Requires-Root: no
|
||||
|
@ -5,10 +5,16 @@ export PBR_VERSION=1.0.0
|
||||
PMONDIR := ${ROOT}/usr/share/starlingx/pmon.d
|
||||
|
||||
ROOT := $(CURDIR)/debian/tmp
|
||||
export PLATFORM_RELEASE="$(shell grep SW_VERSION /usr/include/build_info.h | cut -d ' ' -f 3)"
|
||||
export METADATA_FILE="STX_${PLATFORM_RELEASE}_GA-metadata.xml"
|
||||
|
||||
%:
|
||||
dh $@ --with python3 --buildsystem=pybuild
|
||||
|
||||
override_dh_auto_build:
|
||||
cp service-files/STX_GA-metadata.xml ${METADATA_FILE}
|
||||
sed -i "s/xxxPLATFORM_RELEASExxx/${PLATFORM_RELEASE}/g" ${METADATA_FILE}
|
||||
|
||||
override_dh_install:
|
||||
python3 setup.py install -f --install-layout=deb --root=$(ROOT)
|
||||
python3 setup.py bdist_wheel --universal -d $(CURDIR)/debian/$(PYBUILD_NAME)-wheels/usr/share/python-wheels
|
||||
@ -59,4 +65,6 @@ override_dh_install:
|
||||
${ROOT}/etc/logrotate.d/software
|
||||
install -m 755 scripts/platform-upgrade-precheck \
|
||||
${ROOT}/usr/sbin/platform-upgrade-precheck
|
||||
install -m 444 ${METADATA_FILE} \
|
||||
${ROOT}/etc/software/${METADATA_FILE}
|
||||
dh_install
|
||||
|
18
software/service-files/STX_GA-metadata.xml
Normal file
18
software/service-files/STX_GA-metadata.xml
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<patch>
|
||||
<id>STX_xxxPLATFORM_RELEASExxx_GA</id>
|
||||
<sw_version>xxxPLATFORM_RELEASExxx</sw_version>
|
||||
<summary>STX xxxPLATFORM_RELEASExxx GA release</summary>
|
||||
<description>STX xxxPLATFORM_RELEASExxx major GA release</description>
|
||||
<install_instructions/>
|
||||
<warnings/>
|
||||
<status>REL</status>
|
||||
<unremovable>Y</unremovable>
|
||||
<reboot_required>Y</reboot_required>
|
||||
<apply_active_release_only/>
|
||||
<contents>
|
||||
</contents>
|
||||
<requires>
|
||||
</requires>
|
||||
<semantics/>
|
||||
</patch>
|
Loading…
x
Reference in New Issue
Block a user