python-pbr: update to 1.9.0
This commit is contained in:
parent
6ea98160a1
commit
0564024fac
|
@ -1,9 +1,10 @@
|
|||
# Template file for 'python-pbr'
|
||||
pkgname=python-pbr
|
||||
version=1.8.1
|
||||
version=1.9.0
|
||||
revision=1
|
||||
noarch=yes
|
||||
wrksrc="pbr-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
depends="python"
|
||||
|
@ -13,27 +14,11 @@ 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=e2127626a91e6c885db89668976db31020f0af2da728924b56480fc7ccf09649
|
||||
checksum=d7a1d4622210037f2d1cfc5b65c0a87a2fb04cc58c08c3fbaf7eabc7a1dc48fb
|
||||
|
||||
pre_build() {
|
||||
cp -a ${wrksrc} /tmp/pbr-2.7
|
||||
cp -a ${wrksrc} /tmp/pbr-3.4
|
||||
mv /tmp/pbr-{2.7,3.4} ${wrksrc}
|
||||
|
||||
cd pbr-3.4
|
||||
sed -i '/console_scripts =/{n;s,pbr =,pbr3 =,}' setup.cfg
|
||||
}
|
||||
do_build() {
|
||||
for pyver in $python_versions; do
|
||||
cd ${wrksrc}/pbr-${pyver}
|
||||
python${pyver} setup.py build
|
||||
done
|
||||
}
|
||||
do_install() {
|
||||
for pyver in $python_versions; do
|
||||
cd ${wrksrc}/pbr-${pyver}
|
||||
python${pyver} setup.py install --root=${DESTDIR}
|
||||
done
|
||||
post_install() {
|
||||
cp -f ${DESTDIR}/usr/bin/pbr{,3}
|
||||
replace_interpreter python ${DESTDIR}/usr/bin/pbr
|
||||
}
|
||||
|
||||
python3.4-pbr_package() {
|
||||
|
|
Loading…
Reference in New Issue