From 2644fa0bacf8df899f62a7a2a9199ab5bc36cf27 Mon Sep 17 00:00:00 2001 From: aurelien Date: Sun, 1 Jun 2014 00:18:43 +0200 Subject: glance --- pcr/glance/PKGBUILD | 76 +++++++++++++++++------------------------------------ 1 file changed, 24 insertions(+), 52 deletions(-) (limited to 'pcr') diff --git a/pcr/glance/PKGBUILD b/pcr/glance/PKGBUILD index 3dd349e8b..846d17f1d 100644 --- a/pcr/glance/PKGBUILD +++ b/pcr/glance/PKGBUILD @@ -1,62 +1,34 @@ -# Contributor (Arch): Josh Chase -# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres +# Contributor: Limao Luo +# Contributor: Josh Chase +# Maintainer : Parabola GNU / Linux-libre Aurélien DESBRIÈRES pkgname=glance -pkgver=2012.1.2 +_relname=icehouse +pkgver=2014.1.b2 pkgrel=1 -_ostackver=essex -_clientname=python-glanceclient -_clientver=0.5.1 -pkgdesc="OpenStack image service" -arch=('any') -license=('custom') -url="https://launchpad.net/$pkgname" -depends=('python2' - 'python2-httplib2' - 'python2-webob' - 'python2-eventlet' - 'python2-greenlet' - 'python-paste' - 'python-paste-deploy' - 'python-routes' - 'python2-sqlalchemy' - 'python2-migrate' - 'python2-passlib' - 'python2-lxml' - 'python-anyjson' - 'python-wsgiref' - 'python2-argparse' - 'python2-boto' - 'python-xattr' - 'python2-kombu' - 'python2-crypto' - 'python2-sendfile' - 'python2-iso8601') -makedepends=('python2-distribute') -source=("https://launchpad.net/$pkgname/$_ostackver/$pkgver/+download/$pkgname-$pkgver.tar.gz" - "http://pypi.python.org/packages/source/${_clientname:0:1}/$_clientname/$_clientname-$_clientver.tar.gz") +pkgdesc="OpenStack image registry and delivery service" +arch=(any) +url=https://launchpad.net/glance +license=(custom) +depends=(python2-jsonpointer python2-glanceclient python2-keystoneclient + python2-pyopenssl python2-warlock) +makedepends=(python2-setuptools) +source=($url/$_relname/$_relname-2/+download/$pkgname-$pkgver.tar.gz) -build() { - cd $srcdir - - find . -type f -exec sed -i -e 's|^#!/usr/bin/python$|#!/usr/bin/python2|' \ - -e 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' {} + - - cd $srcdir/$_clientname-$_clientver - python2 setup.py build +prepare() { + find $pkgname-$pkgver -type f -exec sed -ri 's:^#!/usr/bin/(env )?python$:&2:' '{}' \; +} - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py build +build() { + cd $pkgname-$pkgver/ + python2 setup.py build } package() { - cd $srcdir/$_clientname-$_clientver - python2 setup.py install --root=$pkgdir + cd $pkgname-$pkgver/ + python2 setup.py install --root="$pkgdir" --optimize=1 - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --root="$pkgdir" --optimize=1 - - install -dm600 "$pkgdir"/etc/$pkgname - install -Dm600 etc/* "$pkgdir"/etc/$pkgname/ - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -d "$pkgdir"/etc/ + cp -r etc/ "$pkgdir"/etc/$pkgname/ + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } -- cgit v1.2.3-54-g00ecf