Add Debian infra for python-neutronclient

Add Debian pakcaging infrastructure for
python-neutronclient.

Story: 2009101
Task: 43793

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

View File

@@ -0,0 +1,52 @@
From 6586f6e4ae2954382a638f80c8b039c8c446ad58 Mon Sep 17 00:00:00 2001
From: Charles Short <charles.short@windriver.com>
Date: Wed, 27 Oct 2021 13:25:54 +0000
Subject: [PATCH] Add wheel package
Add python3-neutronclient-wheel package.
Signed-off-by: Charles Short <charles.short@windriver.com>
---
debian/control | 15 +++++++++++++++
debian/rules | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 9b81157..6585170 100644
--- a/debian/control
+++ b/debian/control
@@ -73,3 +73,18 @@ Description: client API library for Neutron - Python 3.x
capabilities (e.g., QoS, ACLs, network monitoring, etc).
.
This package provides the client and Python 3.x module.
+
+Package: python3-neutronclient-wheel
+Architecture: all
+Depends:
+ python3-wheel,
+ ${misc:Depends},
+ ${python3:Depends},
+Description: client API library for Neutron - Python 3.x
+ Neutron provides an API to dynamically request and configure virtual networks.
+ These networks connect "interfaces" from other OpenStack services (e.g., vNICs
+ from Nova VMs). The Neutron API supports extensions to provide advanced network
+ capabilities (e.g., QoS, ACLs, network monitoring, etc).
+ .
+ This package contains the Python3 wheel.
+
diff --git a/debian/rules b/debian/rules
index b99f400..9fda3e8 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
install -D -m 0644 tools/neutron.bash_completion $(CURDIR)/debian/python3-neutronclient/usr/share/bash-completion/completions/neutron
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
--
2.30.2

View File

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

View File

@@ -0,0 +1,10 @@
---
debname: python-neutronclient
debver: 1:7.2.1-2
dl_path:
name: python-neutronclient-debian-7.2.1-2.tar.gz
url: https://salsa.debian.org/openstack-team/clients/python-neutronclient/-/archive/debian/7.2.1-2/python-neutronclient-debian-7.2.1-2.tar.gz
md5sum: b48160cf9342e7123195d9748736cf99
revision:
dist: $STX_DIST
PKG_GITREVCOUNT: true