Skip to content

Commit

Permalink
2.4.0-1
Browse files Browse the repository at this point in the history
  • Loading branch information
carl.george committed Jul 10, 2015
0 parents commit ea62f7a
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pkgbase = python-swiftclient
pkgdesc = OpenStack Object Storage API Client Library
pkgver = 2.4.0
pkgrel = 1
url = https://github.com/openstack/python-swiftclient
arch = any
license = Apache
makedepends = python-pbr>=0.11
source = https://pypi.python.org/packages/source/p/python-swiftclient/python-swiftclient-2.4.0.tar.gz
sha256sums = e865553b3afc63a9952cfa30f155a604564cae31a40275fa2ce94c80d7affd4b

pkgname = python-swiftclient
depends = python-requests>=1.1
depends = python-simplejson>=2.0.9
depends = python-six>=1.5.2

51 changes: 51 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Maintainer: Carl George < arch at cgtx dot us >

_name="python-swiftclient"
_module="${_name#python-}"
_cmd="${_module%client}"

#pkgname=("python-${_module}" "python2-${_module}")
pkgname="python-${_module}"
pkgver="2.4.0"
pkgrel="1"
pkgdesc="OpenStack Object Storage API Client Library"
arch=("any")
url="https://github.com/openstack/${_name}"
license=("Apache")
#makedepends=("python-pbr>=0.11" "python2-pbr>=0.11")
makedepends=("python-pbr>=0.11")
source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('e865553b3afc63a9952cfa30f155a604564cae31a40275fa2ce94c80d7affd4b')

prepare() {
#cp -a "${srcdir}/${_name}-${pkgver}" "${srcdir}/${_name}-${pkgver}-python2"
# futures is only needed for python 2
cd "${srcdir}/${_name}-${pkgver}"
sed -ri '/futures/d' requirements.txt
}

build() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py build
#cd "${srcdir}/${_name}-${pkgver}-python2"
#python2 setup.py build
}

package_python-swiftclient() {
depends=("python-requests>=1.1"
"python-simplejson>=2.0.9"
"python-six>=1.5.2")
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
}

#package_python2-swiftclient() {
# depends=("python2-futures>=2.1.3"
# "python-requests>=1.1"
# "python-simplejson>=2.0.9"
# "python-six>=1.5.2")
# cd "${srcdir}/${_name}-${pkgver}-python2"
# python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
# mv "${pkgdir}/usr/bin/${_cmd}" "${pkgdir}/usr/bin/${_cmd}2"
# mv "${pkgdir}/usr/share/man/man1/${_cmd}.1" "${pkgdir}/usr/share/man/man1/${_cmd}2.1"
#}

0 comments on commit ea62f7a

Please sign in to comment.