python-rsa: 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 10:50:15 +02:00
parent ba0cda63e0
commit d6af10a6d3
2 changed files with 31 additions and 25 deletions

View file

@ -1,13 +1,12 @@
# Template file for 'python-rsa'
pkgname=python-rsa
version=3.4.2
revision=2
revision=3
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="rsa"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-pyasn1"
short_desc="Pure-Python RSA implementation (Python2)"
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
@ -17,32 +16,38 @@ distfiles="${PYPI_SITE}/r/rsa/rsa-${version}.tar.gz"
checksum=25df4e10c263fb88b5ace923dd84bf9aa7f5019687b5e55382ffcdb8bede9db5
alternatives="
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile2.7
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt2.7
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile2.7
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt2.7
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen2.7
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub2.7
rsa:pyrsa-sign:/usr/bin/pyrsa-sign2.7
rsa:pyrsa-verify:/usr/bin/pyrsa-verify2.7"
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile2
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt2
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile2
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt2
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen2
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub2
rsa:pyrsa-sign:/usr/bin/pyrsa-sign2
rsa:pyrsa-verify:/usr/bin/pyrsa-verify2"
python3.4-rsa_package() {
python3-rsa_package() {
alternatives="
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile3.4
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt3.4
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile3.4
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt3.4
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen3.4
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub3.4
rsa:pyrsa-sign:/usr/bin/pyrsa-sign3.4
rsa:pyrsa-verify:/usr/bin/pyrsa-verify3.4"
rsa:pyrsa-decrypt-bigfile:/usr/bin/pyrsa-decrypt-bigfile3
rsa:pyrsa-decrypt:/usr/bin/pyrsa-decrypt3
rsa:pyrsa-encrypt-bigfile:/usr/bin/pyrsa-encrypt-bigfile3
rsa:pyrsa-encrypt:/usr/bin/pyrsa-encrypt3
rsa:pyrsa-keygen:/usr/bin/pyrsa-keygen3
rsa:pyrsa-priv2pub:/usr/bin/pyrsa-priv2pub3
rsa:pyrsa-sign:/usr/bin/pyrsa-sign3
rsa:pyrsa-verify:/usr/bin/pyrsa-verify3"
noarch=yes
pycompile_version="3.4"
pycompile_module="rsa"
depends="python3.4-setuptools python3.4-pyasn1"
short_desc="${short_desc/Python2/Python3.4}"
replaces="python3.4-rsa>=0"
depends="python3-setuptools python3-pyasn1"
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*
}
}
python3.4-rsa_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-rsa>=${version}_${revision}"
}

1
srcpkgs/python3-rsa Symbolic link
View file

@ -0,0 +1 @@
python-rsa