[arch-commits] Commit in python-oslo-i18n/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Jul 18 02:56:47 UTC 2018


    Date: Wednesday, July 18, 2018 @ 02:56:46
  Author: felixonmars
Revision: 361552

archrelease: copy trunk to community-staging-any

Added:
  python-oslo-i18n/repos/community-staging-any/
  python-oslo-i18n/repos/community-staging-any/PKGBUILD
    (from rev 361551, python-oslo-i18n/trunk/PKGBUILD)

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

Copied: python-oslo-i18n/repos/community-staging-any/PKGBUILD (from rev 361551, python-oslo-i18n/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-18 02:56:46 UTC (rev 361552)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-oslo-i18n
+pkgname=(python-oslo-i18n python2-oslo-i18n)
+pkgver=3.20.0
+pkgrel=2
+pkgdesc="Oslo i18n library"
+arch=('any')
+url="https://pypi.python.org/pypi/oslo.i18n/$pkgver"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-babel'
+             'python2-babel')
+checkdepends=('python-mock' 'python2-mock' 'python-oslotest' 'python2-oslotest' 'python-oslo-config'
+              'python2-oslo-config' 'python-testrepository' 'python2-testrepository')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.i18n/archive/$pkgver.tar.gz")
+sha512sums=('d639970e657340db7df50e884ffa69d02168875b5085d056ab4112523877ac93ca55cc5c14c73f3bff1d68fb2ecd581d91a30437acec51678ff3b47e6c8716ce')
+
+prepare() {
+  cp -a oslo.i18n-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/oslo.i18n-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/oslo.i18n-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/oslo.i18n-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/oslo.i18n-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-oslo-i18n() {
+  depends=('python-six' 'python-pbr' 'python-babel')
+
+  cd "$srcdir"/oslo.i18n-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-oslo-i18n() {
+  depends=('python2-six' 'python2-pbr' 'python2-babel')
+
+  cd "$srcdir"/oslo.i18n-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list