Date: Tuesday, January 16, 2018 @ 10:59:10 Author: foxxx0 Revision: 283232
upgpkg: python-pecan 1.2.1-4 fix conflicting files and check() (FS#56253) Modified: python-pecan/trunk/PKGBUILD ----------+ PKGBUILD | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-01-16 10:48:16 UTC (rev 283231) +++ PKGBUILD 2018-01-16 10:59:10 UTC (rev 283232) @@ -1,15 +1,15 @@ # Maintainer: Thore Bödecker <[email protected]> -# Contrbutor: Tim Meusel <[email protected]> +# Contributor: Tim Meusel <[email protected]> pkgbase='python-pecan' pkgname=('python2-pecan' 'python-pecan') pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' pkgver=1.2.1 -pkgrel=3 +pkgrel=4 arch=('any') url='https://github.com/pecan/pecan' license=('BSD') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' - 'python-tox' 'python-sphinx' 'python-webob' 'python-webtest' 'python-mako') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-sphinx' 'python2-sphinx' 'python-webob' 'python2-webob' 'python-mako' 'python2-mako' 'python-webtest' 'python2-webtest') +checkdepends=('python2-tox' 'python2-singledispatch' 'python2-waitress' 'python2-markupsafe' 'python2-six' 'python2-beautifulsoup4' 'python2-gunicorn' 'uwsgi-plugin-python2') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz") sha512sums=('eced82e4c3ceaaf9b2d6135da9e108b6334f56fc9e356ea05cfa7a7048c41eba019b87e1e793e310b95aa0740314aa6235ff24fc1735f222da741390c44a8735') @@ -27,7 +27,8 @@ check() { cd "${srcdir}/pecan-${pkgver}" - tox + # upstream tests only support python 2 + python2 setup.py test } package_python2-pecan() { @@ -39,6 +40,11 @@ cd docs PYTHONPATH="${PWD}/../" make man install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" + + # fix conflicting files + for file in gunicorn_pecan pecan; do + mv "${pkgdir}/usr/bin/${file}" "${pkgdir}/usr/bin/${file}2" + done } package_python-pecan() {
