aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/python-prometheus_client/python-prometheus_client.SlackBuild12
-rw-r--r--python/python-prometheus_client/python-prometheus_client.info8
2 files changed, 10 insertions, 10 deletions
diff --git a/python/python-prometheus_client/python-prometheus_client.SlackBuild b/python/python-prometheus_client/python-prometheus_client.SlackBuild
index 058941a232f4..12b03ecb15eb 100644
--- a/python/python-prometheus_client/python-prometheus_client.SlackBuild
+++ b/python/python-prometheus_client/python-prometheus_client.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=python-prometheus_client
SRCNAM=client_python
-VERSION=${VERSION:-0.3.1}
+VERSION=${VERSION:-0.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,16 +70,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-python setup.py install --root=$PKG
-if $(python3 -c 'import sys' 2>/dev/null); then
- python3 setup.py install --root=$PKG
-fi
+python2 setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ LICENSE README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/python-prometheus_client/python-prometheus_client.info b/python/python-prometheus_client/python-prometheus_client.info
index 2edf1c0fd14c..41f47412a2a2 100644
--- a/python/python-prometheus_client/python-prometheus_client.info
+++ b/python/python-prometheus_client/python-prometheus_client.info
@@ -1,10 +1,10 @@
PRGNAM="python-prometheus_client"
-VERSION="0.3.1"
+VERSION="0.4.0"
HOMEPAGE="https://prometheus.io/"
-DOWNLOAD="https://github.com/prometheus/client_python/archive/v0.3.1/client_python-0.3.1.tar.gz"
-MD5SUM="7ea7dee12c8607e9ef1a79d86cf4c684"
+DOWNLOAD="https://github.com/prometheus/client_python/archive/v0.4.0/client_python-0.4.0.tar.gz"
+MD5SUM="968bc63ac7874eba87a007ce50594561"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3"
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"