Add debian package for distributedcloud-client
Add debian packaging folder for distributedcloud-client. Test Plan: Pass: build package on Debian Pass: build Debian image Pass: install Debian image Pass: build package on CentOS Pass: build CentOS image Pass: install CentOS image Pass: CentOS controller unlocked/available Story: 2009101 Task: 43965 Signed-off-by: Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com> Change-Id: Ibb98a7de601580cd53002f386afb620417a97aa4
This commit is contained in:
parent
fa45089d42
commit
ed622f9549
1
debian_pkg_dirs
Normal file
1
debian_pkg_dirs
Normal file
@ -0,0 +1 @@
|
|||||||
|
distributedcloud-client
|
5
distributedcloud-client/debian/deb_folder/changelog
Normal file
5
distributedcloud-client/debian/deb_folder/changelog
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
distributedcloud-client (1.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- Fabricio Henrique Ramos <fabriciohenrique.ramos@windriver.com> Thu, 11 Nov 2021 15:08:35 -0300
|
52
distributedcloud-client/debian/deb_folder/control
Normal file
52
distributedcloud-client/debian/deb_folder/control
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
Source: distributedcloud-client
|
||||||
|
Section: admin
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||||
|
Build-Depends:
|
||||||
|
debhelper-compat (= 13),
|
||||||
|
dh-python,
|
||||||
|
python3-openssl,
|
||||||
|
python3-babel,
|
||||||
|
python3-dev,
|
||||||
|
python3-jsonschema (>= 2.0.0),
|
||||||
|
python3-keystonemiddleware,
|
||||||
|
python3-oslo.concurrency,
|
||||||
|
python3-oslo.config,
|
||||||
|
python3-oslo.context,
|
||||||
|
python3-oslo.db,
|
||||||
|
python3-oslo.i18n,
|
||||||
|
python3-oslo.log,
|
||||||
|
python3-oslo.messaging,
|
||||||
|
python3-oslo.middleware,
|
||||||
|
python3-oslo.policy,
|
||||||
|
python3-oslo.rootwrap,
|
||||||
|
python3-oslo.serialization,
|
||||||
|
python3-oslo.service,
|
||||||
|
python3-oslo.utils,
|
||||||
|
python3-oslo.versionedobjects,
|
||||||
|
python3-pbr (>= 1.8),
|
||||||
|
python3-pip,
|
||||||
|
python3-routes (>= 1.12.3),
|
||||||
|
python3-setuptools,
|
||||||
|
python3-sphinx,
|
||||||
|
python3-sphinxcontrib.httpdomain,
|
||||||
|
python3-wheel,
|
||||||
|
python3-requests-toolbelt
|
||||||
|
Standards-Version: 4.1.2
|
||||||
|
Homepage: https://www.starlingx.io
|
||||||
|
|
||||||
|
Package: distributedcloud-client-dcmanagerclient
|
||||||
|
Architecture: any
|
||||||
|
Depends:
|
||||||
|
${misc:Depends},
|
||||||
|
${python3:Depends}
|
||||||
|
Description: DC Manager Client
|
||||||
|
Distributed Cloud Manager Client
|
||||||
|
|
||||||
|
Package: distributedcloud-client-wheels
|
||||||
|
Architecture: any
|
||||||
|
Depends:
|
||||||
|
${misc:Depends},
|
||||||
|
${python3:Depends}
|
||||||
|
Description: distributedcloud-client wheels
|
||||||
|
Contains python wheels for distributedcloud-client
|
63
distributedcloud-client/debian/deb_folder/copyright
Normal file
63
distributedcloud-client/debian/deb_folder/copyright
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: distcloud-client
|
||||||
|
Upstream-Contact: StarlingX Developers <starlingx-discuss@lists.starlingx.io>
|
||||||
|
Source: https://opendev.org/starlingx/distcloud-client
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: (c) 2019 StarlingX.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: dcmanagerclient/*
|
||||||
|
Copyright: (c) 2016-2017 Ericsson AB.
|
||||||
|
(c) 2017-2021 Wind River Systems, Inc.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: dcmanagerclient/api/httpclient.py
|
||||||
|
Copyright: (c) 2013 Mirantis, Inc.
|
||||||
|
(c) 2016 Ericsson AB.
|
||||||
|
(c) 2016 StackStorm, Inc.
|
||||||
|
(c) 2017 Wind River Systems, Inc.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: dcmanagerclient/commands/v1/kube_rootca_update_manager.py
|
||||||
|
Copyright: (c) 2021 Wind River Systems, Inc.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: dcmanagerclient/commands/v1/subcloud_deploy_manager.py
|
||||||
|
Copyright: (c) 2020 Wind River Systems, Inc.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: dcmanagerclient/osc/plugin.py
|
||||||
|
Copyright: (c) 2017 Wind River Systems, Inc.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: dcmanagerclient/utils.py
|
||||||
|
Copyright: (c) 2015 - Huawei Technologies Co. Ltd
|
||||||
|
(c) 2015 - StackStorm, Inc.
|
||||||
|
(c) 2016 - Ericsson AB
|
||||||
|
(c) 2017-2021 Wind River Systems, Inc.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2021 Wind River Systems, Inc.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
Files: setup.py
|
||||||
|
Copyright: (c) 2013 Hewlett-Packard Development Company, L.P.
|
||||||
|
License: Apache-2
|
||||||
|
|
||||||
|
License: Apache-2
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
.
|
||||||
|
https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
.
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
.
|
||||||
|
On Debian-based systems the full text of the Apache version 2.0 license
|
||||||
|
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
@ -0,0 +1,2 @@
|
|||||||
|
usr/bin/dcmanager
|
||||||
|
usr/lib/python3/dist-packages/*
|
@ -0,0 +1 @@
|
|||||||
|
wheels/*
|
23
distributedcloud-client/debian/deb_folder/rules
Executable file
23
distributedcloud-client/debian/deb_folder/rules
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
#export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
export PBR_VERSION = 1.0.0
|
||||||
|
|
||||||
|
export ROOT = debian/tmp
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@ --with python3 --buildsystem=pybuild --test-tox
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
python3 setup.py install \
|
||||||
|
--root=$(ROOT) \
|
||||||
|
--prefix=/usr \
|
||||||
|
--install-data=/usr/share \
|
||||||
|
--install-layout=deb \
|
||||||
|
--single-version-externally-managed
|
||||||
|
|
||||||
|
python3 setup.py bdist_wheel \
|
||||||
|
--universal \
|
||||||
|
-d $(ROOT)/wheels
|
||||||
|
|
||||||
|
rm -rf $(ROOT)/usr/lib/python3/dist-packages/dcmanagerclient/tests
|
1
distributedcloud-client/debian/deb_folder/source/format
Normal file
1
distributedcloud-client/debian/deb_folder/source/format
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
13
distributedcloud-client/debian/dl_hook
Executable file
13
distributedcloud-client/debian/dl_hook
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
PKG_BUILD_NAME=$1
|
||||||
|
PKG_BUILD_DIR=$(realpath `pwd`/${PKG_BUILD_NAME})
|
||||||
|
|
||||||
|
STX_BASE=$(realpath ${MY_REPO}/stx)
|
||||||
|
PKG_BASE=$(realpath ${STX_BASE}/distributedcloud-client/distributedcloud-client)
|
||||||
|
|
||||||
|
mkdir ${PKG_BUILD_NAME}
|
||||||
|
|
||||||
|
cp -r ${PKG_BASE}/* ${PKG_BUILD_DIR}/
|
7
distributedcloud-client/debian/meta_data.yaml
Normal file
7
distributedcloud-client/debian/meta_data.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
debname: distributedcloud-client
|
||||||
|
debver: 1.0-1
|
||||||
|
dl_hook: dl_hook
|
||||||
|
revision:
|
||||||
|
dist: $STX_DIST
|
||||||
|
PKG_GITREVCOUNT: true
|
Loading…
x
Reference in New Issue
Block a user