From e85b9416c808cadbcc11974c6ed41b7b31356b7a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 4 May 2014 20:44:34 +0000 Subject: pyopenssl: update to .14 --- abs/core/python_modules/pyopenssl/PKGBUILD | 52 ++++++++++++++++++++------- abs/core/python_modules/pyopenssl/__changelog | 1 + 2 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 abs/core/python_modules/pyopenssl/__changelog diff --git a/abs/core/python_modules/pyopenssl/PKGBUILD b/abs/core/python_modules/pyopenssl/PKGBUILD index a136830..63eeaaf 100644 --- a/abs/core/python_modules/pyopenssl/PKGBUILD +++ b/abs/core/python_modules/pyopenssl/PKGBUILD @@ -1,21 +1,49 @@ -# $Id: PKGBUILD 87790 2010-08-18 10:10:07Z ibiru $ +# $Id$ # Maintainer : Ionut Biru # Contributor: Sergej Pupykin -pkgname=pyopenssl -pkgver=0.10 -pkgrel=4 -pkgdesc="pyOpenSSL is a Python interface to the OpenSSL library" -arch=('i686' 'x86_64') -url="http://pyopenssl.sourceforge.net" -license=('LGPL') -depends=('python2' 'openssl') +pkgbase=pyopenssl +pkgname=('python2-pyopenssl') +pkgver=0.14 +pkgrel=3 +arch=('any') +url="http://pypi.python.org/pypi/pyOpenSSL" +license=('LGPL2.1') +makedepends=('python2-setuptools' 'openssl' 'python2-six' 'python2-cryptography') source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz) -md5sums=('34db8056ec53ce80c7f5fc58bee9f093') +md5sums=('8579ff3a1d858858acfba5f046a4ddf7') build() { - cd "${srcdir}/pyOpenSSL-${pkgver}" + cd "${srcdir}" + cp -a "pyOpenSSL-${pkgver}"{,-python2} + + #build python 3 module + cd "pyOpenSSL-${pkgver}" +# python setup.py build + + #build python 2 module + cd ../"pyOpenSSL-${pkgver}-python2" python2 setup.py build - python2 setup.py install --prefix="$pkgdir/usr" --optimize=1 } +#package_python-pyopenssl(){ +# pkgdesc="Python3 wrapper module around the OpenSSL library" +# depends=('python>=3.3' 'openssl' 'python-six' 'python-cryptography') +# replaces=('pyopenssl') +# provides=('pyopenssl') +# conflicts=('pyopenssl') + +# cd "${srcdir}/pyOpenSSL-${pkgver}" +# python setup.py install --root "${pkgdir}" --optimize=1 +#} + +package_python2-pyopenssl(){ + pkgdesc="Python2 wrapper module around the OpenSSL library" + depends=('python2>=2.7' 'openssl' 'python2-six' 'python2-cryptography') + replaces=('pyopenssl') + provides=('pyopenssl') + conflicts=('pyopenssl') + + cd "${srcdir}/pyOpenSSL-${pkgver}-python2" + python2 setup.py install --root "${pkgdir}" --optimize=1 +} diff --git a/abs/core/python_modules/pyopenssl/__changelog b/abs/core/python_modules/pyopenssl/__changelog new file mode 100644 index 0000000..488d3cf --- /dev/null +++ b/abs/core/python_modules/pyopenssl/__changelog @@ -0,0 +1 @@ +PKGBUILD: rm py 3 stuff -- cgit v0.12