python3-avahi: add recipe
PATCH 1/2 python3-avahi: add recipe
From: Alejandro del Castillo <[email protected]>
Signed-off-by Alejandro del Castillo <[email protected]>
Signed-off-by Ioan-Adrian Ratiu <[email protected]>
--- .../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
meta-openstack/recipes-devtools/python/python-avahi.inc new file +32 -0
@@ -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,@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"
meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb +2 -31
@@ -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,@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"
meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb new file +5 -0
@@ -0,0 +1,5 @@ +require python-avahi.inc + +inherit python3-dir + +RDEPENDS_${PN} += "python3-core python3-dbus"
Signature · 1 line
2.18.0
PATCH 2/2 python3-pika: add recipe
From: Alejandro del Castillo <[email protected]>
Signed-off-by Alejandro del Castillo <[email protected]>
Signed-off-by Ioan-Adrian Ratiu <[email protected]>
--- .../recipes-devtools/python/python-pika.inc | 13 +++++++++++++ .../recipes-devtools/python/python-pika_git.bb | 14 +------------- .../recipes-devtools/python/python3-pika_git.bb | 3 +++ 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-pika.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-pika_git.bb
meta-openstack/recipes-devtools/python/python-pika.inc new file +13 -0
@@ -0,0 +1,13 @@ +SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library" +HOMEPAGE = "https://github.com/pika/pika" +SECTION = "devel/python" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c" + +PV = "0.10.0+git${SRCPV}" +SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6" + +SRC_URI = "git://github.com/pika/pika" + +S = "${WORKDIR}/git"
meta-openstack/recipes-devtools/python/python-pika_git.bb +1 -13
@@ -1,15 +1,3 @@ -SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library" -HOMEPAGE = "https://github.com/pika/pika" -SECTION = "devel/python" - -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c" - -PV = "0.10.0+git${SRCPV}" -SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6" - -SRC_URI = "git://github.com/pika/pika" - -S = "${WORKDIR}/git" +require python-pika.inc inherit setuptools
meta-openstack/recipes-devtools/python/python3-pika_git.bb new file +3 -0
@@ -0,0 +1,3 @@ +require python-pika.inc + +inherit setuptools3
Signature · 1 line
2.18.0
Re: [meta-openstack][PATCH 2/2] python3-pika: add recipe
merged.
Bruce
Quoted 64 lines · Ioan-Adrian Ratiu
From: Alejandro del Castillo <[email protected]>
Signed-off-by Alejandro del Castillo <[email protected]>Signed-off-by Ioan-Adrian Ratiu <[email protected]>--- .../recipes-devtools/python/python-pika.inc | 13 +++++++++++++ .../recipes-devtools/python/python-pika_git.bb | 14 +------------- .../recipes-devtools/python/python3-pika_git.bb | 3 +++ 3 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 meta-openstack/recipes-devtools/python/python-pika.inc create mode 100644 meta-openstack/recipes-devtools/python/python3-pika_git.bbmeta-openstack/recipes-devtools/python/python-pika.inc new file +13
-0@@ -0,0 +1,13 @@ +SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library" +HOMEPAGE = "https://github.com/pika/pika" +SECTION = "devel/python" + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c" + +PV = "0.10.0+git${SRCPV}" +SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6" + +SRC_URI = "git://github.com/pika/pika" + +S = "${WORKDIR}/git"meta-openstack/recipes-devtools/python/python-pika_git.bb +1
-13@@ -1,15 +1,3 @@ -SUMMARY = "Pure Python RabbitMQ/AMQP 0-9-1 client library" -HOMEPAGE = "https://github.com/pika/pika" -SECTION = "devel/python" - -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=fb26c37045f9e0d2c5e24b711bd7f01c" - -PV = "0.10.0+git${SRCPV}" -SRCREV = "b907f91415169b7f590174ab5d228e75a1b273e6" - -SRC_URI = "git://github.com/pika/pika" - -S = "${WORKDIR}/git" +require python-pika.inc inherit setuptoolsmeta-openstack/recipes-devtools/python/python3-pika_git.bb new file +3
-1@@ -0,0 +1,3 @@ +require python-pika.inc + +inherit setuptools3 --2.18.0
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
merged
Bruce
Quoted 105 lines · Ioan-Adrian Ratiu
From: Alejandro del Castillo <[email protected]>
Signed-off-by Alejandro del Castillo <[email protected]>Signed-off-by Ioan-Adrian Ratiu <[email protected]>--- .../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.bbmeta-openstack/recipes-devtools/python/python-avahi.inc new file +32
-0@@ -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,@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"meta-openstack/recipes-devtools/python/python-avahi_0.6.32.bb +2
-31@@ -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,@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"meta-openstack/recipes-devtools/python/python3-avahi_0.6.32.bb new file +5
-1@@ -0,0 +1,5 @@ +require python-avahi.inc + +inherit python3-dir + +RDEPENDS_${PN} += "python3-core python3-dbus" --2.18.0
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"