wok annotate python-restclient/receipt @ rev 24288
fail2ban: add log4j-jndi.conf
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 13 18:29:05 2022 +0000 (2022-01-13) |
parents | 89d3440a509c |
children | 076f424196b2 |
rev | line source |
---|---|
claudinei@3812 | 1 # SliTaz package receipt. |
claudinei@3812 | 2 |
claudinei@3812 | 3 PACKAGE="python-restclient" |
Hans-G?nter@23554 | 4 VERSION="1.3.3" |
claudinei@3812 | 5 CATEGORY="development" |
Hans-G?nter@23554 | 6 SHORT_DESC="A simple REST client for python." |
claudinei@3812 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15376 | 8 LICENSE="MIT" |
Hans-G?nter@23554 | 9 WEB_SITE="https://pypi.org/project/py-restclient/" |
Hans-G?nter@23554 | 10 |
Hans-G?nter@23554 | 11 SOURCE="py-restclient" |
Hans-G?nter@23554 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23554 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
claudinei@3812 | 14 |
pascal@15376 | 15 DEPENDS="python python-httplib2" |
pascal@21582 | 16 BUILD_DEPENDS="python python-dev python-setuptools" |
pascal@15376 | 17 |
pascal@24288 | 18 current_version() |
pascal@24288 | 19 { |
pascal@24288 | 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' |
pascal@24288 | 21 } |
pascal@24288 | 22 |
pascal@24288 | 23 # Rules to configure and make the package. |
claudinei@3812 | 24 # Rules to configure and make the package. |
claudinei@3812 | 25 compile_rules() |
claudinei@3812 | 26 { |
pascal@14355 | 27 python setup.py install --root=$DESTDIR |
claudinei@3812 | 28 } |
claudinei@3812 | 29 |
claudinei@3812 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3812 | 31 genpkg_rules() |
claudinei@3812 | 32 { |
pascal@6594 | 33 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
Hans-G?nter@23554 | 34 |
claudinei@3812 | 35 mkdir -p $fs/usr |
Hans-G?nter@23554 | 36 rm -f $install/usr/lib/$PYTHON_LIB/site-packages/tests/* |
Hans-G?nter@23554 | 37 rmdir $install/usr/lib/$PYTHON_LIB/site-packages/tests |
Hans-G?nter@23554 | 38 cp -a $install/usr $fs |
claudinei@3812 | 39 } |