wok-next diff python-libvirt/receipt @ rev 21247
updated cyrus-imapd (2.4.17 -> 3.0.12)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 05 16:28:27 2019 +0100 (2019-12-05) |
parents | bc5c682688b0 |
children |
line diff
1.1 --- a/python-libvirt/receipt Wed Aug 22 15:44:03 2018 +0300 1.2 +++ b/python-libvirt/receipt Thu Dec 05 16:28:27 2019 +0100 1.3 @@ -1,25 +1,34 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 +ORIGIN="libvirt-python" 1.7 PACKAGE="python-libvirt" 1.8 -VERSION="latest" 1.9 +VERSION="4.7.0" 1.10 CATEGORY="python" 1.11 SHORT_DESC="Python bindings for libvirt" 1.12 MAINTAINER="al.bobylev@gmail.com" 1.13 LICENSE="GPL2 LGPL2.1" 1.14 -WEB_SITE="https://pypi.org/project/libvirt-python/" 1.15 +#WEB_SITE="https://pypi.org/project/$ORIGIN/" # not in hurry: 4.6.0 1.16 +WEB_SITE="https://libvirt.org/" 1.17 +#HOST_ARCH 1.18 REPOLOGY="python:libvirt-python" 1.19 1.20 -BUILD_DEPENDS="libvirt-dev python-dev" 1.21 +TARBALL="$ORIGIN-$VERSION.tar.gz" 1.22 +WGET_URL="https://libvirt.org/sources/python/$TARBALL" 1.23 + 1.24 +BUILD_DEPENDS="python-dev python3-dev libvirt-dev" 1.25 +SPLIT="${PACKAGE/python/python3}:3" 1.26 1.27 # Python packages name should start with "python-", but "python-libvirt-python" 1.28 # is pretty ugly name, so strip it to "python-libvirt" 1.29 1.30 compile_rules() { 1.31 - pip install --no-compile --root=$DESTDIR libvirt-python 1.32 +# pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.33 + 1.34 + python$SET -B setup.py install --root=$install 1.35 } 1.36 1.37 genpkg_rules() { 1.38 - VERSION=$(sed -n '/^Successfully installed/ s|.*libvirt-python-||p' $LOGS/$PACKAGE.log) 1.39 copy @std 1.40 - DEPENDS="libvirt python" 1.41 + py=${PACKAGE%%-*} # python/python3 1.42 + DEPENDS="$py libvirt" 1.43 }