[arch-commits] Commit in python-oslo-serialization/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Jul 5 07:42:00 UTC 2017
Date: Wednesday, July 5, 2017 @ 07:41:59
Author: felixonmars
Revision: 242359
upgpkg: python-oslo-serialization 2.19.0-1
Modified:
python-oslo-serialization/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-05 06:45:15 UTC (rev 242358)
+++ PKGBUILD 2017-07-05 07:41:59 UTC (rev 242359)
@@ -3,36 +3,38 @@
pkgbase=python-oslo-serialization
pkgname=(python-oslo-serialization python2-oslo-serialization)
-pkgver=2.18.0
+pkgver=2.19.0
pkgrel=1
pkgdesc="Oslo Serialization library"
arch=('any')
url="http://docs.openstack.org/developer/oslo.serialization"
license=('Apache')
-makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
- 'python-babel' 'python2-babel' 'python-msgpack' 'python2-msgpack'
- 'python-oslo-utils' 'python2-oslo-utils' 'python-pytz' 'python2-pytz')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-babel'
+ 'python2-babel' 'python-msgpack' 'python2-msgpack' 'python-oslo-utils'
+ 'python2-oslo-utils' 'python-pytz' 'python2-pytz')
checkdepends=('python-oslotest' 'python2-oslotest' 'python2-ipaddress')
-source=("git+https://git.openstack.org/openstack/oslo.serialization#tag=$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslo.serialization/archive/$pkgver.tar.gz")
+sha512sums=('7a9898ef0dafa18b472a540890a56d4a52b3e404d5e4e3ba7a487a5b7a61d7a88a3f63d9fd53c83c0a7826123c3592f3d09781561d96ec0485ebebe5477b8588')
prepare() {
- cp -a oslo.serialization{,-py2}
+ cp -a oslo.serialization-$pkgver{,-py2}
+
+ export PBR_VERSION=$pkgver
}
build() {
- cd "$srcdir"/oslo.serialization
+ cd "$srcdir"/oslo.serialization-$pkgver
python setup.py build
- cd "$srcdir"/oslo.serialization-py2
+ cd "$srcdir"/oslo.serialization-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/oslo.serialization
+ cd "$srcdir"/oslo.serialization-$pkgver
python setup.py testr
- cd "$srcdir"/oslo.serialization-py2
+ cd "$srcdir"/oslo.serialization-$pkgver-py2
PYTHON=python2 python2 setup.py testr
}
@@ -40,7 +42,7 @@
depends=('python-six' 'python-pbr' 'python-babel' 'python-msgpack' 'python-oslo-utils'
'python-pytz')
- cd "$srcdir"/oslo.serialization
+ cd "$srcdir"/oslo.serialization-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1
}
@@ -48,7 +50,7 @@
depends=('python2-six' 'python2-pbr' 'python2-babel' 'python2-msgpack' 'python2-oslo-utils'
'python2-pytz')
- cd "$srcdir"/oslo.serialization-py2
+ cd "$srcdir"/oslo.serialization-$pkgver-py2
python2 setup.py install --root="$pkgdir/" --optimize=1
}
More information about the arch-commits
mailing list