python-lockfile: 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 09:35:09 +02:00
parent 0df41ba6c7
commit 5a3479b317
2 changed files with 15 additions and 9 deletions

View file

@ -1,13 +1,12 @@
# Template file for 'python-lockfile' # Template file for 'python-lockfile'
pkgname=python-lockfile pkgname=python-lockfile
version=0.12.2 version=0.12.2
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="lockfile-${version}" wrksrc="lockfile-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4" hostmakedepends="python-setuptools python3-setuptools python-pbr python3-pbr"
hostmakedepends="python-setuptools python3.4-setuptools python-pbr python3.4-pbr" makedepends="python-pbr python3-pbr"
makedepends="python-pbr python3.4-pbr"
depends="python" depends="python"
pycompile_module="lockfile" pycompile_module="lockfile"
short_desc="Platform-independent file locking module (Python2)" short_desc="Platform-independent file locking module (Python2)"
@ -21,14 +20,20 @@ post_install() {
vlicense LICENSE vlicense LICENSE
} }
python3.4-lockfile_package() { python3-lockfile_package() {
noarch=yes noarch=yes
pycompile_version="3.4" replaces="python3.4-lockfile>=0"
pycompile_module="lockfile" pycompile_module="lockfile"
depends="python3.4" depends="python3"
short_desc="${short_desc/Python2/Python3.4}" short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3*
vlicense LICENSE vlicense LICENSE
} }
} }
python3.4-lockfile_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-lockfile>=${version}_${revision}"
}

1
srcpkgs/python3-lockfile Symbolic link
View file

@ -0,0 +1 @@
python-lockfile