From 12b8e6a918d2994339749867e1d0f84628eff6a6 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 03:39:40 +0200 Subject: [PATCH] python-pbr: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-pbr/template | 27 ++++++++++++++++----------- srcpkgs/python3-pbr | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-pbr diff --git a/srcpkgs/python-pbr/template b/srcpkgs/python-pbr/template index f41101a85ee..1ad2f50f8e7 100644 --- a/srcpkgs/python-pbr/template +++ b/srcpkgs/python-pbr/template @@ -1,12 +1,11 @@ # Template file for 'python-pbr' pkgname=python-pbr version=1.10.0 -revision=1 +revision=2 noarch=yes wrksrc="pbr-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="pbr" short_desc="Python2 build reasonableness" @@ -15,17 +14,23 @@ homepage="https://pypi.python.org/pypi/pbr" license="Apache-2.0" distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz" checksum=186428c270309e6fdfe2d5ab0949ab21ae5f7dea831eab96701b86bd666af39c -alternatives="pbr:pbr:/usr/bin/pbr2.7" +alternatives="pbr:pbr:/usr/bin/pbr2" -python3.4-pbr_package() { +python3-pbr_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="pbr" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="pbr:pbr:/usr/bin/pbr3.4" + replaces="python3.4-pbr>=0" + short_desc="${short_desc/Python2/Python3}" + alternatives="pbr:pbr:/usr/bin/pbr3" pkg_install() { - vmove usr/bin/pbr3.4 - vmove usr/lib/python3.4 + vmove usr/bin/pbr3 + 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}" +} diff --git a/srcpkgs/python3-pbr b/srcpkgs/python3-pbr new file mode 120000 index 00000000000..7d5e74920c1 --- /dev/null +++ b/srcpkgs/python3-pbr @@ -0,0 +1 @@ +python-pbr \ No newline at end of file