Add Debian packaging for python-openstackclient

Add Debian packaging infrastructure for
python-openstackclient.

Story: 2009101
Task: 43794

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Iec1e9d640e6d1b5d7d9bb3bd6b92fc3704080360
This commit is contained in:
Charles Short 2021-10-27 11:38:03 -04:00
parent e7a5c23348
commit ca8ba3e5b9
3 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,58 @@
From 15fc36263fb7274f3a55e9375b398ec497d00062 Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
Date: Wed, 27 Oct 2021 13:57:42 +0000
Subject: [PATCH] Add wheel package
Add python3-openstackclient-wheel
Signed-off-by: Charles Short <charles.short@windriver.com>
---
debian/control | 21 +++++++++++++++++++++
debian/rules | 2 +-
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index fc25eefa..0c8b0fab 100644
--- a/debian/control
+++ b/debian/control
@@ -127,3 +127,24 @@ Description: OpenStack Command-line Client - Python 3.x
operations in OpenStack.
.
This package contains the Python 3.x module.
+
+Package: python3-openstackclient-wheel
+Architecture: all
+Depends:
+ python3-wheel,
+ ${misc:Depends},
+ ${python3:Depends},
+Recommends:
+ python-openstackclient-doc,
+ ${python3:Recommends},
+Description: OpenStack Command-line Client - Python 3.x
+ python-openstackclient is a unified command-line client for the OpenStack APIs.
+ It is a thin wrapper to the stock python-*client modules that implement the
+ actual REST API client actions.
+ .
+ This is an implementation of the design goals shown in
+ http://wiki.openstack.org/UnifiedCLI. The primary goal is to provide
+ a unified shell command structure and a common language to describe
+ operations in OpenStack.
+ .
+ This package contains the Python wheel.
diff --git a/debian/rules b/debian/rules
index c097f4de..490e4394 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ override_dh_auto_build:
echo "Do nothing..."
override_dh_auto_install:
- pkgos-dh_auto_install --no-py2
+ pkgos-dh_auto_install --no-py2 --wheel
# Generate bash completion
pkgos-gen-completion --py3 openstack
--
2.30.2

View File

@ -0,0 +1 @@
0001-Add-wheel-package.patch

View File

@ -0,0 +1,10 @@
---
debname: python-openstackclient
debver: 5.4.0-4
dl_path:
name: python-openstackclient-debian-5.4.0-4.tar.gz
url: https://salsa.debian.org/openstack-team/clients/python-openstackclient/-/archive/debian/5.4.0-4/python-openstackclient-debian-5.4.0-4.tar.gz
md5sum: 499b5a71ab02769a5706832aa53276a7
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true