python-Pyro4: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 00:42:09 +02:00
parent 0d2d9b7637
commit 3a09d3ceb0
2 changed files with 27 additions and 21 deletions

View file

@ -1,13 +1,12 @@
# Template file for 'python-Pyro4'
pkgname=python-Pyro4
version=4.48
revision=1
revision=2
wrksrc="${pkgname#*-}-${version}"
noarch=yes
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="Pyro4"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-serpent python-selectors34"
short_desc="Distributed Object Middleware (IPC/RPC) for Python2"
maintainer="pulux <pulux@pf4sh.de>"
@ -17,33 +16,39 @@ distfiles="${PYPI_SITE}/P/Pyro4/Pyro4-${version}.tar.gz"
checksum=3115def913cf6035000047bb270efefb55a25449a17ed392afde6fd531c82fd2
alternatives="
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config2.7
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver2.7
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway2.7
pyro4:pyro4-ns:/usr/bin/pyro4-ns2.7
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc2.7
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver2.7"
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config2
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver2
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway2
pyro4:pyro4-ns:/usr/bin/pyro4-ns2
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc2
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver2"
post_install() {
vlicense LICENSE
}
python3.4-Pyro4_package() {
python3-Pyro4_package() {
alternatives="
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config3.4
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver3.4
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway3.4
pyro4:pyro4-ns:/usr/bin/pyro4-ns3.4
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc3.4
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver3.4"
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config3
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver3
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway3
pyro4:pyro4-ns:/usr/bin/pyro4-ns3
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc3
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver3"
noarch=yes
depends="python-setuptools python3.4-serpent"
pycompile_version="3.4"
depends="python3-setuptools python3-serpent"
replaces="python3.4-Pyro4>=0"
pycompile_module="Pyro4"
short_desc="${short_desc/Python2/Python3.4}"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-Pyro4_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-Pyro4>=${version}_${revision}"
}

1
srcpkgs/python3-Pyro4 Symbolic link
View file

@ -0,0 +1 @@
python-Pyro4