Date: Tuesday, June 6, 2017 @ 03:51:11 Author: felixonmars Revision: 234443
upgpkg: python-cinderclient 2.2.0-1 Modified: python-cinderclient/trunk/PKGBUILD ----------+ PKGBUILD | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-06-06 03:49:12 UTC (rev 234442) +++ PKGBUILD 2017-06-06 03:51:11 UTC (rev 234443) @@ -4,39 +4,41 @@ pkgbase=python-cinderclient pkgname=(python-cinderclient python2-cinderclient) -pkgver=2.1.0 +pkgver=2.2.0 pkgrel=1 pkgdesc="OpenStack Block Storage API Client Library" arch=('any') url="http://docs.openstack.org/developer/python-cinderclient" license=('Apache') -makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' - 'python-babel' 'python2-babel' 'python-prettytable' 'python2-prettytable' - 'python-keystoneclient' 'python2-keystoneclient' 'python-requests' - 'python2-requests' 'python-oslo-utils' 'python2-oslo-utils') -checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock' - 'python2-requests-mock' 'python-ddt' 'python2-ddt') -source=("git+https://git.openstack.org/openstack/python-cinderclient#tag=$pkgver") -sha512sums=('SKIP') +makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-babel' + 'python2-babel' 'python-prettytable' 'python2-prettytable' 'python-keystoneclient' + 'python2-keystoneclient' 'python-requests' 'python2-requests' 'python-oslo-utils' + 'python2-oslo-utils') +checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock' 'python2-requests-mock' + 'python-ddt' 'python2-ddt') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/python-cinderclient/archive/$pkgver.tar.gz") +sha512sums=('f75a419fe295e595f3d0d47aac0217ea56934841e1a5db73ab9593a7468896fa16b4362efa02067e4d9c549be2b5b9da0795e8bf28cbce66d053df5c7818462a') prepare() { - sed -i '/simplejson/d' python-cinderclient/requirements.txt - cp -a python-cinderclient{,-py2} + sed -i '/simplejson/d' python-cinderclient-$pkgver/requirements.txt + cp -a python-cinderclient-$pkgver{,-py2} + + export PBR_VERSION=$pkgver } build() { - cd "$srcdir"/python-cinderclient + cd "$srcdir"/python-cinderclient-$pkgver python setup.py build - cd "$srcdir"/python-cinderclient-py2 + cd "$srcdir"/python-cinderclient-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir"/python-cinderclient + cd "$srcdir"/python-cinderclient-$pkgver python setup.py testr - cd "$srcdir"/python-cinderclient-py2 + cd "$srcdir"/python-cinderclient-$pkgver-py2 PYTHON=python2 python2 setup.py testr } @@ -44,16 +46,16 @@ depends=('python-six' 'python-pbr' 'python-babel' 'python-prettytable' 'python-keystoneclient' 'python-requests' 'python-oslo-utils') - cd "$srcdir"/python-cinderclient - python setup.py install --root="$pkgdir/" --optimize=1 + cd "$srcdir"/python-cinderclient-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 } package_python2-cinderclient() { - depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-prettytable' 'python2-keystoneclient' - 'python2-requests' 'python2-oslo-utils') + depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-prettytable' + 'python2-keystoneclient' 'python2-requests' 'python2-oslo-utils') - cd "$srcdir"/python-cinderclient-py2 - python2 setup.py install --root="$pkgdir/" --optimize=1 + cd "$srcdir"/python-cinderclient-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 mv "$pkgdir"/usr/bin/cinder{,2} }