From 9c636ed5c22716a03a60c7427e19262b507eb3f2 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Wed, 18 Aug 2021 14:58:11 -0400 Subject: [PATCH] Add debian packaging for python-fmclient Add packaging infrastructure for python-fmclient. Story: 2009101 Task: 43050 Signed-off-by: Charles Short Change-Id: I0691edccd28199e0cdb17994da68d4f4bb80eed7 --- python-fmclient/debian/deb_folder/changelog | 5 +++ python-fmclient/debian/deb_folder/control | 25 +++++++++++ python-fmclient/debian/deb_folder/copyright | 42 +++++++++++++++++++ .../debian/deb_folder/python3-fmclient.dirs | 1 + .../deb_folder/python3-fmclient.install | 1 + python-fmclient/debian/deb_folder/rules | 7 ++++ .../debian/deb_folder/source/format | 1 + .../debian/deb_folder/source/options | 1 + python-fmclient/debian/meta_data.yaml | 7 ++++ 9 files changed, 90 insertions(+) create mode 100644 python-fmclient/debian/deb_folder/changelog create mode 100644 python-fmclient/debian/deb_folder/control create mode 100644 python-fmclient/debian/deb_folder/copyright create mode 100644 python-fmclient/debian/deb_folder/python3-fmclient.dirs create mode 100644 python-fmclient/debian/deb_folder/python3-fmclient.install create mode 100755 python-fmclient/debian/deb_folder/rules create mode 100644 python-fmclient/debian/deb_folder/source/format create mode 100644 python-fmclient/debian/deb_folder/source/options create mode 100644 python-fmclient/debian/meta_data.yaml diff --git a/python-fmclient/debian/deb_folder/changelog b/python-fmclient/debian/deb_folder/changelog new file mode 100644 index 00000000..74bf4ea0 --- /dev/null +++ b/python-fmclient/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +python-fmclient (1.0-1) unstable; urgency=medium + + * Initial release. + + -- Chuck Short Wed, 18 Aug 2021 14:41:40 -0400 diff --git a/python-fmclient/debian/deb_folder/control b/python-fmclient/debian/deb_folder/control new file mode 100644 index 00000000..f63c84f9 --- /dev/null +++ b/python-fmclient/debian/deb_folder/control @@ -0,0 +1,25 @@ +Source: python-fmclient +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 12), dh-python, python3-setuptools, python3-all, python3-pbr +Build-Depends-Indep: + python3-oslo.utils, + python3-prettytable, + python3-keystoneauth1, + python3-six, + python3-httplib2 +Standards-Version: 4.4.1 + +Package: python3-fmclient +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends}, + python3-oslo.utils, + python3-prettytable, + python3-keystoneauth1, + python3-six, + python3-httplib2, + bash-completion +Description: Client library for fault management + A python client library for Fault Management diff --git a/python-fmclient/debian/deb_folder/copyright b/python-fmclient/debian/deb_folder/copyright new file mode 100644 index 00000000..73f9e244 --- /dev/null +++ b/python-fmclient/debian/deb_folder/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-fmclient +Source: https://opendev.org/starlingx/fault + +Files: * +Copyright: (c) 2013-2021 Wind River Systems, Inc +Copyright: Others (See individual files for more details) +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'. + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2021 Wind River Systems, Inc +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'. diff --git a/python-fmclient/debian/deb_folder/python3-fmclient.dirs b/python-fmclient/debian/deb_folder/python3-fmclient.dirs new file mode 100644 index 00000000..b78fce3a --- /dev/null +++ b/python-fmclient/debian/deb_folder/python3-fmclient.dirs @@ -0,0 +1 @@ +etc/bash_completion.d diff --git a/python-fmclient/debian/deb_folder/python3-fmclient.install b/python-fmclient/debian/deb_folder/python3-fmclient.install new file mode 100644 index 00000000..788494cc --- /dev/null +++ b/python-fmclient/debian/deb_folder/python3-fmclient.install @@ -0,0 +1 @@ +tools/fm.bash_completion etc/bash_completion.d diff --git a/python-fmclient/debian/deb_folder/rules b/python-fmclient/debian/deb_folder/rules new file mode 100755 index 00000000..9dda88bb --- /dev/null +++ b/python-fmclient/debian/deb_folder/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +export PYBUILD_NAME=python-fmclient + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/python-fmclient/debian/deb_folder/source/format b/python-fmclient/debian/deb_folder/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/python-fmclient/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/python-fmclient/debian/deb_folder/source/options b/python-fmclient/debian/deb_folder/source/options new file mode 100644 index 00000000..cb61fa52 --- /dev/null +++ b/python-fmclient/debian/deb_folder/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/python-fmclient/debian/meta_data.yaml b/python-fmclient/debian/meta_data.yaml new file mode 100644 index 00000000..cd2b597b --- /dev/null +++ b/python-fmclient/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: python-fmclient +debver: 1.0 +src_path: fmclient +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true