python-pbr: split python3-pbr

This commit is contained in:
Michal Vasilek 2023-06-17 19:30:09 +02:00
parent a3363dbb8e
commit a9afd6cbf0
3 changed files with 21 additions and 11 deletions

View file

@ -2,7 +2,7 @@
pkgname=python-pbr
version=5.6.0
revision=2
build_style=python-module
build_style=python2-module
pycompile_module="pbr"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
@ -14,13 +14,6 @@ distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
checksum=42df03e7797b796625b1029c0400279c7c34fd7df24a7d7818a1abb5b38710dd
alternatives="pbr:pbr:/usr/bin/pbr2"
python3-pbr_package() {
depends="python3"
pycompile_module="pbr"
short_desc="${short_desc/Python2/Python3}"
alternatives="pbr:pbr:/usr/bin/pbr3"
pkg_install() {
vmove usr/bin/pbr3
vmove usr/lib/python3*
}
post_install() {
mv ${DESTDIR}/usr/bin/pbr{,2}
}

View file

@ -1 +0,0 @@
python-pbr

View file

@ -0,0 +1,18 @@
# Template file for 'python3-pbr'
pkgname=python3-pbr
version=5.6.0
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="Python3 build reasonableness"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://docs.openstack.org/developer/pbr/"
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
checksum=42df03e7797b796625b1029c0400279c7c34fd7df24a7d7818a1abb5b38710dd
alternatives="pbr:pbr:/usr/bin/pbr3"
post_install() {
mv ${DESTDIR}/usr/bin/pbr{,3}
}