python-pbr: update to 0.10.4

This commit is contained in:
Alessio Sergi 2014-12-20 18:10:04 +01:00
parent 4426942bc2
commit a42aa19e51
1 changed files with 31 additions and 4 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-pbr'
pkgname=python-pbr
version=0.10.2
version=0.10.4
revision=1
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.4-setuptools python-pip python3.4-pip"
depends="python-pip"
pycompile_module="pbr"
short_desc="Python2 build reasonableness"
@ -14,7 +13,34 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://pypi.python.org/pypi/pbr"
license="Apache-2.0"
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
checksum=f16f31839b293b3cf48ed3b34768b647743c3435e218c90d59ca9d1d27455bf8
checksum=765a37d1f185ba0af18e11dfc94e9d1814d2607ef80151ad725ce6d03122a0d5
post_extract() {
cp -a ${wrksrc} /tmp/python2.7-build
cp -a ${wrksrc} /tmp/python3.4-build
mv /tmp/python{2.7,3.4}-build ${wrksrc}
}
pre_build() {
cd ${wrksrc}/python3.4-build
sed -i 's,pbr =,pbr3 =,' setup.cfg
}
do_build() {
cd ${wrksrc}/python2.7-build
python setup.py build
cd ${wrksrc}/python3.4-build
python3.4 setup.py build
}
do_install() {
cd ${wrksrc}/python2.7-build
python setup.py install --root=${DESTDIR}
cd ${wrksrc}/python3.4-build
python3.4 setup.py install --root=${DESTDIR}
}
python3.4-pbr_package() {
noarch=yes
@ -23,6 +49,7 @@ python3.4-pbr_package() {
pycompile_module="pbr"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/pbr3
vmove usr/lib/python3.4
}
}