summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-08-12 17:26:07 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-08-12 17:26:07 -0500
commit4306f5b2115c56dacb67dbeaa64a9f5f0d09ab3b (patch)
treef40be5d27ec7559ff3d5c2e5506d3b14b43a6bdb
parentc7962d2c3a749df65816420e160aac4e47f9f01b (diff)
downloadabslibre-4306f5b2115c56dacb67dbeaa64a9f5f0d09ab3b.tar.gz
abslibre-4306f5b2115c56dacb67dbeaa64a9f5f0d09ab3b.tar.bz2
abslibre-4306f5b2115c56dacb67dbeaa64a9f5f0d09ab3b.zip
python-oslo-i18n-2.3.0-1: updating version
-rw-r--r--pcr/python-oslo-i18n/PKGBUILD53
1 files changed, 25 insertions, 28 deletions
diff --git a/pcr/python-oslo-i18n/PKGBUILD b/pcr/python-oslo-i18n/PKGBUILD
index c57773d59..6a084f6d0 100644
--- a/pcr/python-oslo-i18n/PKGBUILD
+++ b/pcr/python-oslo-i18n/PKGBUILD
@@ -1,37 +1,34 @@
-# Maintainer (Arch): Troy C < rstrox -ta yahoo -tod com >
+# Maintainer (Arch): Carl George < arch at cgtx dot us >
+# Contributor (Arch): Troy C < rstrox -ta yahoo -tod com >
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
-pkgname=('python-oslo-i18n' 'python2-oslo-i18n')
-pkgver=1.6.0
-pkgrel=1
-pkgdesc="OpenStack Common Libraries - Internationalization and translation library"
-arch=('any')
-url="https://github.com/openstack/oslo.i18n"
-license=('GPL')
-provides=("$pkgname=$pkgver")
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr>=0.8' 'python2-pbr>=0.8')
-source=("https://pypi.python.org/packages/source/o/oslo.i18n/oslo.i18n-$pkgver.tar.gz")
-md5sums=('c109e20b99bb0ec8d85a583bf503e6a5')
-
-build() {
- cd "$srcdir/oslo.i18n-$pkgver"
- python setup.py build
- python2 setup.py build
- echo ${pkgver} > versioninfo
+_name="oslo.i18n"
+_module="${_name/./-}"
+
+pkgname=("python-${_module}" "python2-${_module}")
+pkgver="2.3.0"
+pkgrel="1"
+pkgdesc="Oslo i18n library"
+arch=("any")
+url="https://github.com/openstack/${_name}"
+license=("Apache")
+makedepends=("python-pbr>=1.3" "python2-pbr>=1.3" "git")
+source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('9cd35cd12104672e4675465d59badf9b1d1c1bfc54ceef57d076d4fa8a12afc6')
+
+prepare() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ sed -ri '/pbr/d' requirements.txt
}
package_python-oslo-i18n() {
-
- depends=('python' 'python-babel>=1.3' 'python-six>=1.9.0' 'python-pbr>=0.8')
-
- cd "$srcdir/oslo.i18n-$pkgver"
- python setup.py install --root=${pkgdir}
+ depends=("python-babel>=1.3" "python-six>=1.9.0")
+ cd "${srcdir}/${_name}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
}
package_python2-oslo-i18n() {
-
- depends=('python2' 'python2-babel>=1.3' 'python2-six>=1.9.0' 'python2-pbr>=0.8')
-
- cd "$srcdir/oslo.i18n-$pkgver"
- python2 setup.py install --root=${pkgdir}
+ depends=("python2-babel>=1.3" "python2-six>=1.9.0")
+ cd "${srcdir}/${_name}-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
}