[meta-virtualization] [meta-openstack][PATCH 1/2] python3-avahi: add recipe

Ioan-Adrian Ratiu adrian.ratiu at ni.com
Mon Aug 27 05:12:26 PDT 2018


From: Alejandro del Castillo <alejandro.delcastillo at ni.com>

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo at ni.com>
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu at ni.com>
---
 .../recipes-devtools/python/python-avahi.inc  | 32 ++++++++++++++++++
 .../python/python-avahi_0.6.32.bb             | 33 ++-----------------
 .../python/python3-avahi_0.6.32.bb            |  5 +++
 3 files changed, 39 insertions(+), 31 deletions(-)
 create mode 100644 meta-openstack/recipes-devtools/python/python-avahi.inc
 create mode 100644 meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb

diff --git a/meta-openstack/recipes-devtools/python/python-avahi.inc b/meta-openstack/recipes-devtools/python/python-avahi.inc
new file mode 100644
index 0000000..86cafe5
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python-avahi.inc
@@ -0,0 +1,32 @@
+SUMMARY = "Python bindings for the avahi zeroconf client"
+HOMEPAGE = "https://github.com/lathiat/avahi"
+SECTION = "devel/python"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
+
+SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013"
+SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454"
+
+S = "${WORKDIR}/avahi-${PV}"
+
+inherit pythonnative
+
+# we only need the python bindings
+do_install () {
+	install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi
+
+	sed -i'' -e "s, at PYTHON\@,${bindir}/${PYTHON_PN},g" \
+		${S}/avahi-python/avahi/__init__.py  \
+		${S}/avahi-python/avahi-bookmarks.in
+
+	install -m 0775 ${S}/avahi-python/avahi/__init__.py \
+		${D}${PYTHON_SITEPACKAGES_DIR}/avahi/__init__.py
+
+	install -m 0775 ${S}/avahi-python/avahi-bookmarks.in \
+		${D}${PYTHON_SITEPACKAGES_DIR}/avahi/avahi-bookmarks
+}
+
+FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi"
diff --git a/meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb b/meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb
index c129337..7a54211 100644
--- a/meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb
+++ b/meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb
@@ -1,34 +1,5 @@
-SUMMARY = "Python bindings for the avahi zeroconf client"
-HOMEPAGE = "https://github.com/lathiat/avahi"
-SECTION = "devel/python"
+require python-avahi.inc
 
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
-
-SRC_URI = "https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013"
-SRC_URI[sha256sum] = "d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454"
-
-S = "${WORKDIR}/avahi-${PV}"
-
-inherit python-dir pythonnative
-
-# we only need the python bindings
-do_install () {
-	install -d ${D}${PYTHON_SITEPACKAGES_DIR}/avahi
-
-	sed -i'' -e "s, at PYTHON\@,${bindir}/python,g" \
-		${S}/avahi-python/avahi/__init__.py  \
-		${S}/avahi-python/avahi-bookmarks.in
-
-	install -m 0775 ${S}/avahi-python/avahi/__init__.py \
-		${D}${PYTHON_SITEPACKAGES_DIR}/avahi/__init__.py
-
-	install -m 0775 ${S}/avahi-python/avahi-bookmarks.in \
-		${D}${PYTHON_SITEPACKAGES_DIR}/avahi/avahi-bookmarks
-}
+inherit python-dir
 
 RDEPENDS_${PN} += "python-core python-dbus"
-
-FILES_${PN} = "${PYTHON_SITEPACKAGES_DIR}/avahi"
diff --git a/meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb b/meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb
new file mode 100644
index 0000000..4b85cd5
--- /dev/null
+++ b/meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb
@@ -0,0 +1,5 @@
+require python-avahi.inc
+
+inherit python3-dir
+
+RDEPENDS_${PN} += "python3-core python3-dbus"
-- 
2.18.0



More information about the meta-virtualization mailing list