37 lines
998 B
Bash
37 lines
998 B
Bash
# Template file for 'python-pbr'
|
|
pkgname=python-pbr
|
|
version=2.0.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="pbr-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="pbr"
|
|
short_desc="Python2 build reasonableness"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://docs.openstack.org/developer/pbr/"
|
|
license="Apache-2.0"
|
|
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
|
|
checksum=0ccd2db529afd070df815b1521f01401d43de03941170f8a800e7531faba265d
|
|
alternatives="pbr:pbr:/usr/bin/pbr2"
|
|
|
|
python3-pbr_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="pbr"
|
|
replaces="python3.4-pbr>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="pbr:pbr:/usr/bin/pbr3"
|
|
pkg_install() {
|
|
vmove usr/bin/pbr3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-pbr_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pbr>=${version}_${revision}"
|
|
}
|