From cb532796ce629fdf14b894753d20427322eb12aa Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sat, 7 Mar 2015 17:55:01 +0100 Subject: [PATCH] python-pbr: update to 0.10.8 --- srcpkgs/python-pbr/template | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/srcpkgs/python-pbr/template b/srcpkgs/python-pbr/template index d4fbfefde9..c03c0263a7 100644 --- a/srcpkgs/python-pbr/template +++ b/srcpkgs/python-pbr/template @@ -1,7 +1,7 @@ # Template file for 'python-pbr' pkgname=python-pbr -version=0.10.7 -revision=2 +version=0.10.8 +revision=1 noarch=yes wrksrc="pbr-${version}" python_versions="2.7 3.4" @@ -13,33 +13,27 @@ maintainer="Alessio Sergi " homepage="https://pypi.python.org/pypi/pbr" license="Apache-2.0" distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz" -checksum=3219912992192c68d21885409ff853ab97b19559c6b5f9f76fd84f06b00f7a27 +checksum=a741650c697abe9dd3da00039a57a45a15a6eed017a16f6b7e4c0161fae2b4b2 -post_extract() { +pre_build() { cp -a ${wrksrc} /tmp/pbr-2.7 cp -a ${wrksrc} /tmp/pbr-3.4 mv /tmp/pbr-{2.7,3.4} ${wrksrc} -} -pre_build() { - cd ${wrksrc}/pbr-3.4 + cd pbr-3.4 sed -i '/console_scripts =/{n;s,pbr =,pbr3 =,}' setup.cfg } - do_build() { - cd ${wrksrc}/pbr-2.7 - python setup.py build - - cd ${wrksrc}/pbr-3.4 - python3.4 setup.py build + for pyver in $python_versions; do + cd ${wrksrc}/pbr-${pyver} + python${pyver} setup.py build + done } - do_install() { - cd ${wrksrc}/pbr-2.7 - python setup.py install --root=${DESTDIR} - - cd ${wrksrc}/pbr-3.4 - python3.4 setup.py install --root=${DESTDIR} + for pyver in $python_versions; do + cd ${wrksrc}/pbr-${pyver} + python${pyver} setup.py install --root=${DESTDIR} + done } python3.4-pbr_package() {