[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon Aug 22 14:00:05 UTC 2016


    Date: Monday, August 22, 2016 @ 14:00:05
  Author: felixonmars
Revision: 187310

addpkg: python-osc-lib 1.0.2-1

Added:
  python-osc-lib/
  python-osc-lib/repos/
  python-osc-lib/trunk/
  python-osc-lib/trunk/PKGBUILD

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)

Added: python-osc-lib/trunk/PKGBUILD
===================================================================
--- python-osc-lib/trunk/PKGBUILD	                        (rev 0)
+++ python-osc-lib/trunk/PKGBUILD	2016-08-22 14:00:05 UTC (rev 187310)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-osc-lib
+pkgname=(python-osc-lib python2-osc-lib)
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="OpenStackClient Library"
+arch=('any')
+url="http://docs.openstack.org/developer/osc-lib"
+license=('Apache')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+             'python-babel' 'python2-babel' 'python-cliff' 'python2-cliff'
+             'python-keystoneauth1' 'python2-keystoneauth1' 'python-os-client-config'
+             'python2-os-client-config' 'python-oslo-i18n' 'python2-oslo-i18n' 'python-oslo-utils'
+             'python2-oslo-utils' 'python-simplejson' 'python2-simplejson' 'python-stevedore'
+             'python2-stevedore')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock'
+              'python2-requests-mock')
+options=('!emptydirs')
+source=("git+https://git.openstack.org/openstack/osc-lib#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a osc-lib{,-py2}
+}
+
+build() {
+  cd "$srcdir"/osc-lib
+  python setup.py build
+
+  cd "$srcdir"/osc-lib-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/osc-lib
+  python setup.py testr || warning "Tests failed"
+
+  cd "$srcdir"/osc-lib-py2
+  PYTHON=python2 python2 setup.py testr || warning "Tests failed"
+}
+
+package_python-osc-lib() {
+  depends=('python-six' 'python-pbr' 'python-babel' 'python-cliff' 'python-keystoneauth1'
+           'python-os-client-config' 'python-oslo-i18n' 'python-oslo-utils' 'python-stevedore'
+           'python-simplejson')
+
+  cd "$srcdir"/osc-lib
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-osc-lib() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-cliff' 'python2-keystoneauth1'
+           'python2-os-client-config' 'python2-oslo-i18n' 'python2-oslo-utils' 'python2-stevedore'
+           'python2-simplejson')
+
+  cd "$srcdir"/osc-lib-py2
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: python-osc-lib/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list