summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-04-30 07:56:44 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-04-30 07:56:44 -0500
commit529196acd945b20ef561eba11c42ae0f23508cc2 (patch)
tree1a8004a68fa2f82e9b3e03219dbd0d07662c873a
parent277192ce580725cd8868923e726ee9145b8f7590 (diff)
downloadabslibre-529196acd945b20ef561eba11c42ae0f23508cc2.tar.gz
abslibre-529196acd945b20ef561eba11c42ae0f23508cc2.tar.bz2
abslibre-529196acd945b20ef561eba11c42ae0f23508cc2.zip
python2-novaclient-2.24.1-1: updating version
-rw-r--r--pcr/python-novaclient/PKGBUILD64
-rw-r--r--pcr/python2-novaclient/PKGBUILD29
2 files changed, 64 insertions, 29 deletions
diff --git a/pcr/python-novaclient/PKGBUILD b/pcr/python-novaclient/PKGBUILD
new file mode 100644
index 000000000..f2437f34f
--- /dev/null
+++ b/pcr/python-novaclient/PKGBUILD
@@ -0,0 +1,64 @@
+# Contributor (Arch) : Carl George < arch at cgtx dot us >
+# Contributor (Arch) : Troy C < rstrox -ta yahoo -tod com >
+# Maintainer (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+_name="python-novaclient"
+_module="${_name#python-}"
+_cmd="${_module%client}"
+
+pkgname=("python-${_module}" "python2-${_module}")
+pkgver="2.24.1"
+pkgrel="1"
+pkgdesc="Client library for OpenStack Compute API"
+arch=("any")
+url="https://github.com/openstack/${_name}"
+license=("Apache")
+makedepends=("python-pbr>=0.6"
+ "python-pip"
+ "python-setuptools"
+ "python2-pbr>=0.6"
+ "python2-pip"
+ "python2-setuptools")
+source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('ba5bc2a270cdc0ef59a0adc198f9e8b633c2eb81cbd751551fec359acdc0cc8b')
+
+prepare() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ sed -ri '/argparse|pbr/d' requirements.txt
+}
+
+package_python-novaclient() {
+ depends=("python-babel>=1.3"
+ "python-iso8601>=0.1.9"
+ "python-keystoneclient>=1.1.0"
+ "python-oslo-i18n>=1.5.0"
+ "python-oslo-serialization>=1.4.0"
+ "python-oslo-utils>=1.4.0"
+ "python-pbr>=0.6"
+ "python-prettytable>=0.7"
+ "python-requests>=2.2.0"
+ "python-simplejson>=2.2.0"
+ "python-six>=1.9.0")
+ cd "${srcdir}/${_name}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -Dm644 "tools/${_cmd}.bash_completion" "${pkgdir}/usr/share/bash-completion/completions/${_cmd}"
+}
+
+package_python2-novaclient() {
+ depends=("python2-babel>=1.3"
+ "python2-iso8601>=0.1.9"
+ "python2-keystoneclient>=1.1.0"
+ "python2-oslo-i18n>=1.5.0"
+ "python2-oslo-serialization>=1.4.0"
+ "python2-oslo-utils>=1.4.0"
+ "python2-pbr>=0.6"
+ "python2-prettytable>=0.7"
+ "python2-requests>=2.2.0"
+ "python2-simplejson>=2.2.0"
+ "python2-six>=1.9.0")
+ cd "${srcdir}/${_name}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ mv "${pkgdir}/usr/bin/${_cmd}" "${pkgdir}/usr/bin/${_cmd}2"
+ install -Dm644 "tools/${_cmd}.bash_completion" "${pkgdir}/usr/share/bash-completion/completions/${_cmd}2"
+ sed -i '/complete -F/ s/$/2/' "${pkgdir}/usr/share/bash-completion/completions/${_cmd}2"
+}
diff --git a/pcr/python2-novaclient/PKGBUILD b/pcr/python2-novaclient/PKGBUILD
deleted file mode 100644
index e6e09952c..000000000
--- a/pcr/python2-novaclient/PKGBUILD
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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}
-}