diff options
author | aurelien <tek@localhost.localdomain> | 2012-11-24 09:24:52 +0100 |
---|---|---|
committer | aurelien <tek@localhost.localdomain> | 2012-11-24 09:24:52 +0100 |
commit | 0a9a064dde6943f5ce78d9eb03f403326cd5b4ef (patch) | |
tree | 950bd3f3cc003ab3cb8384d1a60476035f307a29 /pcr/glance/PKGBUILD | |
parent | 13e7da299d6c1d313b32309f5737d887212b7d4c (diff) | |
download | abslibre-0a9a064dde6943f5ce78d9eb03f403326cd5b4ef.tar.gz abslibre-0a9a064dde6943f5ce78d9eb03f403326cd5b4ef.tar.bz2 abslibre-0a9a064dde6943f5ce78d9eb03f403326cd5b4ef.zip |
glance nova python2-amqplib python2-carrot python2-daemon python2-eventlet python2-iso8601 python2-kombu python2-netaddr python2-passlib python2-pkgtools python2-sendfile python2-suds python2-webob pyt
hon-anyjson python-paste-deploy python-paste python-repoze.lru python-routes python-wsgiref python-xattr
Diffstat (limited to 'pcr/glance/PKGBUILD')
-rw-r--r-- | pcr/glance/PKGBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/pcr/glance/PKGBUILD b/pcr/glance/PKGBUILD new file mode 100644 index 000000000..a05e66686 --- /dev/null +++ b/pcr/glance/PKGBUILD @@ -0,0 +1,62 @@ +# Contributor: Josh Chase <jcjoshuachase@gmail.com> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +pkgname=glance +pkgver=2012.1.2 +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") + +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 + + cd "$srcdir/$pkgname-$pkgver" + python2 setup.py build +} + +package() { + cd $srcdir/$_clientname-$_clientver + python2 setup.py install --root=$pkgdir + + 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 +} |