python-pbr: update to 0.10.8

This commit is contained in:
Alessio Sergi 2015-03-07 17:55:01 +01:00
parent 59bdde9774
commit cb532796ce

View file

@ -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 <al3hex@gmail.com>"
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() {