summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/python2-novaclient/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/pcr/python2-novaclient/PKGBUILD b/pcr/python2-novaclient/PKGBUILD
new file mode 100644
index 000000000..e6e09952c
--- /dev/null
+++ b/pcr/python2-novaclient/PKGBUILD
@@ -0,0 +1,29 @@
+# Contributor (Arch) : Troy C < rstrox -ta yahoo -tod com >
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+pkgname=python2-novaclient
+pkgver=2.17.0
+pkgrel=3
+pkgdesc="Client library for OpenStack Nova API."
+arch=('any')
+url="https://github.com/openstack/python-novaclient"
+license=('GPL')
+depends=('python2' 'python2-pip' 'python2-babel' 'python2-setuptools' 'python2-iso8601' 'python2-prettytable' 'python2-simplejson'
+'python2-requests' 'python2-pbr>=0.6' 'python2-six')
+optdepends=('bash-completion: for command line completion')
+makedepends=('python2-setuptools')
+provides=("$pkgname=$pkgver")
+source=("http://pypi.python.org/packages/source/p/python-novaclient/python-novaclient-$pkgver.tar.gz")
+
+build() {
+ cd "$srcdir/python-novaclient-$pkgver"
+ python2 setup.py build
+ echo ${pkgver} > versioninfo
+}
+
+package() {
+ cd "$srcdir/python-novaclient-$pkgver"
+ install -D -m644 versioninfo ${pkgdir}/usr/lib/python2.7/site-packages/novaclient/versioninfo
+ install -D -m644 tools/nova.bash_completion ${pkgdir}/etc/bash_completion.d/novaclient
+ python2 setup.py install --root=${pkgdir}
+}