python-pbr: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
1d32580ab5
commit
12b8e6a918
2 changed files with 17 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-pbr'
|
# Template file for 'python-pbr'
|
||||||
pkgname=python-pbr
|
pkgname=python-pbr
|
||||||
version=1.10.0
|
version=1.10.0
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="pbr-${version}"
|
wrksrc="pbr-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
||||||
depends="python"
|
depends="python"
|
||||||
pycompile_module="pbr"
|
pycompile_module="pbr"
|
||||||
short_desc="Python2 build reasonableness"
|
short_desc="Python2 build reasonableness"
|
||||||
|
@ -15,17 +14,23 @@ homepage="https://pypi.python.org/pypi/pbr"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
|
||||||
checksum=186428c270309e6fdfe2d5ab0949ab21ae5f7dea831eab96701b86bd666af39c
|
checksum=186428c270309e6fdfe2d5ab0949ab21ae5f7dea831eab96701b86bd666af39c
|
||||||
alternatives="pbr:pbr:/usr/bin/pbr2.7"
|
alternatives="pbr:pbr:/usr/bin/pbr2"
|
||||||
|
|
||||||
python3.4-pbr_package() {
|
python3-pbr_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4"
|
depends="python3"
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="pbr"
|
pycompile_module="pbr"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-pbr>=0"
|
||||||
alternatives="pbr:pbr:/usr/bin/pbr3.4"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="pbr:pbr:/usr/bin/pbr3"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pbr3.4
|
vmove usr/bin/pbr3
|
||||||
vmove usr/lib/python3.4
|
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}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-pbr
Symbolic link
1
srcpkgs/python3-pbr
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-pbr
|
Loading…
Add table
Add a link
Reference in a new issue