Date: Saturday, September 28, 2019 @ 22:25:49 Author: jelle Revision: 512054
python2-swiftclient removal not used by anythig in our repos and EOL! Modified: python-swiftclient/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-09-28 22:11:10 UTC (rev 512053) +++ PKGBUILD 2019-09-28 22:25:49 UTC (rev 512054) @@ -1,8 +1,7 @@ # Maintainer: Felix Yan <[email protected]> # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com> -pkgbase=python-swiftclient -pkgname=(python-swiftclient python2-swiftclient) +pkgname=python-swiftclient pkgver=3.8.1 pkgrel=1 pkgdesc="An SDK for building applications to work with OpenStack" @@ -9,16 +8,13 @@ arch=('any') url="https://docs.openstack.org/python-swiftclient" license=('Apache') -makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python2-futures' - 'python-requests' 'python2-requests') -checkdepends=('python-stestr' 'python2-stestr' 'python-mock' 'python2-mock' - 'python-keystoneauth1' 'python2-keystoneauth1') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/python-swiftclient/archive/$pkgver.tar.gz") +depends=('python-six' 'python-requests') +makedepends=('python-setuptools' 'python-pbr' 'python-requests' ) +checkdepends=('python-stestr' 'python-mock' 'python-keystoneauth1') +source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/python-swiftclient/archive/$pkgver.tar.gz") sha512sums=('066e5b7bc04d19701faa06bb48b77ae0d4e1cefcb475b65a5bc85122aaff5ff4aa0a5e11bbf9fd81ffd006409792acbc804a9a659ae7e7f8a0ee15e5e52188f6') prepare() { - cp -a python-swiftclient-$pkgver{,-py2} - export PBR_VERSION=$pkgver } @@ -25,34 +21,16 @@ build() { cd "$srcdir"/python-swiftclient-$pkgver python setup.py build - - cd "$srcdir"/python-swiftclient-$pkgver-py2 - python2 setup.py build } check() { cd "$srcdir"/python-swiftclient-$pkgver stestr run - - cd "$srcdir"/python-swiftclient-$pkgver-py2 - PYTHON=python2 stestr2 run } -package_python-swiftclient() { - depends=('python-six' 'python-requests') - +package() { cd "$srcdir"/python-swiftclient-$pkgver python setup.py install --root="$pkgdir" --optimize=1 } -package_python2-swiftclient() { - depends=('python2-six' 'python2-futures' 'python2-requests') - - cd "$srcdir"/python-swiftclient-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - - mv "$pkgdir"/usr/bin/swift{,2} - mv "$pkgdir"/usr/share/man/man1/swift{,2}.1 -} - # vim:set ts=2 sw=2 et:
