python-backports.ssl_match_hostname: remove python3 flavor; we use Python 3.5 now.

This commit is contained in:
Alessio Sergi 2016-10-20 19:38:02 +02:00
parent 00ee2faf5f
commit 5f87264e40
3 changed files with 3 additions and 22 deletions

View file

@ -1,12 +1,12 @@
# Template file for 'python-backports.ssl_match_hostname' # Template file for 'python-backports.ssl_match_hostname'
pkgname=python-backports.ssl_match_hostname pkgname=python-backports.ssl_match_hostname
version=3.5.0.1 version=3.5.0.1
revision=2 revision=3
noarch=yes noarch=yes
wrksrc="backports.ssl_match_hostname-${version}" wrksrc="backports.ssl_match_hostname-${version}"
build_style=python-module build_style=python2-module
pycompile_module="backports" pycompile_module="backports"
hostmakedepends="python python3" hostmakedepends="python"
depends="python-backports" depends="python-backports"
short_desc="The ssl.match_hostname() function from Python 3.5" short_desc="The ssl.match_hostname() function from Python 3.5"
maintainer="Alessio Sergi <al3hex@gmail.com>" maintainer="Alessio Sergi <al3hex@gmail.com>"
@ -19,20 +19,3 @@ post_install() {
# namespace provided by python-backports package # namespace provided by python-backports package
rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py rm -f ${DESTDIR}/usr/lib/python*/site-packages/backports/__init__.py
} }
python3-backports.ssl_match_hostname_package() {
noarch=yes
depends="python3-backports"
pycompile_module="backports"
replaces="python3.4-backports.ssl_match_hostname>=0"
short_desc="${short_desc}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-backports.ssl_match_hostname_package() {
noarch=yes
build_style=meta
short_desc="${short_desc} (transitional dummy package)"
depends="python3-backports.ssl_match_hostname>=${version}_${revision}"
}

View file

@ -1 +0,0 @@
python-backports.ssl_match_hostname

View file

@ -1 +0,0 @@
python-backports.ssl_match_hostname