python-pbr: update to 1.9.0
This commit is contained in:
parent
6ea98160a1
commit
0564024fac
1 changed files with 6 additions and 21 deletions
|
@ -1,9 +1,10 @@
|
||||||
# Template file for 'python-pbr'
|
# Template file for 'python-pbr'
|
||||||
pkgname=python-pbr
|
pkgname=python-pbr
|
||||||
version=1.8.1
|
version=1.9.0
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="pbr-${version}"
|
wrksrc="pbr-${version}"
|
||||||
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
python_versions="2.7 3.4"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||||
depends="python"
|
depends="python"
|
||||||
|
@ -13,27 +14,11 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
homepage="https://pypi.python.org/pypi/pbr"
|
homepage="https://pypi.python.org/pypi/pbr"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pbr/pbr-${version}.tar.gz"
|
||||||
checksum=e2127626a91e6c885db89668976db31020f0af2da728924b56480fc7ccf09649
|
checksum=d7a1d4622210037f2d1cfc5b65c0a87a2fb04cc58c08c3fbaf7eabc7a1dc48fb
|
||||||
|
|
||||||
pre_build() {
|
post_install() {
|
||||||
cp -a ${wrksrc} /tmp/pbr-2.7
|
cp -f ${DESTDIR}/usr/bin/pbr{,3}
|
||||||
cp -a ${wrksrc} /tmp/pbr-3.4
|
replace_interpreter python ${DESTDIR}/usr/bin/pbr
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-pbr_package() {
|
python3.4-pbr_package() {
|
||||||
|
|
Loading…
Reference in a new issue