From ddf814efcf14225e537d90785b030a224d67eda0 Mon Sep 17 00:00:00 2001 From: Charles Short Date: Wed, 18 Aug 2021 14:23:36 -0400 Subject: [PATCH] Add debian packaging for python-cephclient Add debian packaging infrastructure for python-cephclient. Story: 2009101 Task: 43048 Signed-off-by: Charles Short Change-Id: I164020eaae198da0ff96b6e9fb05845501869f4f --- .../debian/deb_folder/changelog | 5 +++ .../debian/deb_folder/control | 25 +++++++++++ .../debian/deb_folder/copyright | 43 +++++++++++++++++++ .../python-cephclient/debian/deb_folder/rules | 7 +++ .../debian/deb_folder/source/format | 1 + .../debian/deb_folder/source/options | 1 + ceph/python-cephclient/debian/meta_data.yaml | 7 +++ 7 files changed, 89 insertions(+) create mode 100644 ceph/python-cephclient/debian/deb_folder/changelog create mode 100644 ceph/python-cephclient/debian/deb_folder/control create mode 100644 ceph/python-cephclient/debian/deb_folder/copyright create mode 100755 ceph/python-cephclient/debian/deb_folder/rules create mode 100644 ceph/python-cephclient/debian/deb_folder/source/format create mode 100644 ceph/python-cephclient/debian/deb_folder/source/options create mode 100644 ceph/python-cephclient/debian/meta_data.yaml diff --git a/ceph/python-cephclient/debian/deb_folder/changelog b/ceph/python-cephclient/debian/deb_folder/changelog new file mode 100644 index 00000000..9be84266 --- /dev/null +++ b/ceph/python-cephclient/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +python-cephclient (13.2.2.0-1) unstable; urgency=medium + + * Initial release. + + -- Chuck Short Wed, 18 Aug 2021 14:01:52 -0400 diff --git a/ceph/python-cephclient/debian/deb_folder/control b/ceph/python-cephclient/debian/deb_folder/control new file mode 100644 index 00000000..92e3b616 --- /dev/null +++ b/ceph/python-cephclient/debian/deb_folder/control @@ -0,0 +1,25 @@ +Source: python-cephclient +Section: admin +Priority: optional +Maintainer: Starlingx Developers +Build-Depends: debhelper-compat (= 13), dh-python, python3-setuptools, python3-all +Build-Depends-Indep: + python3-ipaddr, + python3-requests, + python3-six +Standards-Version: 4.4.1 + +Package: python3-cephclient +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends}, + python3-ipaddr, + python3-requests, + python3-six +Description: ceph client library + A client library in Python for Ceph Mgr RESTful plugin + providing REST API access to the cluster over an SSL-secured + connection. Python API is compatible with the old Python + Ceph client at https://github.com/dmsimard/python-cephclient + that no longer works in Ceph mimic because Ceph REST API + component was removed. diff --git a/ceph/python-cephclient/debian/deb_folder/copyright b/ceph/python-cephclient/debian/deb_folder/copyright new file mode 100644 index 00000000..3f3253b4 --- /dev/null +++ b/ceph/python-cephclient/debian/deb_folder/copyright @@ -0,0 +1,43 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-cephclient +Source: +https://github.com/openstack/stx-integ/tree/master/ceph/python-cephclient/python-cephclient + +Files: * +Copyright: (c) 2013-2021 Wind River Systems, Inc + 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/ceph/python-cephclient/debian/deb_folder/rules b/ceph/python-cephclient/debian/deb_folder/rules new file mode 100755 index 00000000..a531cdc7 --- /dev/null +++ b/ceph/python-cephclient/debian/deb_folder/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +export PYBUILD_NAME=python-cephclient + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/ceph/python-cephclient/debian/deb_folder/source/format b/ceph/python-cephclient/debian/deb_folder/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/ceph/python-cephclient/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/ceph/python-cephclient/debian/deb_folder/source/options b/ceph/python-cephclient/debian/deb_folder/source/options new file mode 100644 index 00000000..cb61fa52 --- /dev/null +++ b/ceph/python-cephclient/debian/deb_folder/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/ceph/python-cephclient/debian/meta_data.yaml b/ceph/python-cephclient/debian/meta_data.yaml new file mode 100644 index 00000000..19e4e9c3 --- /dev/null +++ b/ceph/python-cephclient/debian/meta_data.yaml @@ -0,0 +1,7 @@ +--- +debname: python-cephclient +debver: 13.2.2.0 +src_path: python-cephclient +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true