diff --git a/libraries/configobj/README b/libraries/configobj/README index 218d6240a1..38f6ea522a 100644 --- a/libraries/configobj/README +++ b/libraries/configobj/README @@ -1,2 +1,7 @@ +configobj (configuration file python module) + A python module for ultra simple handling of configuration files. Also useful for human readable data persistence. Flexible and simple. + +Optional dependency: if python3 is installed, the configobj package will +contain the python3 module. diff --git a/libraries/configobj/configobj.SlackBuild b/libraries/configobj/configobj.SlackBuild index b6e12fbb28..155ef66a64 100644 --- a/libraries/configobj/configobj.SlackBuild +++ b/libraries/configobj/configobj.SlackBuild @@ -5,6 +5,8 @@ # Written by Luis Henrique # Modified by B. Watson + +# 20200117 bkw: update for v5.0.6 # 20140915 bkw: # - Took over maintenance # - Exclude __MACOSX dir from unzip command @@ -12,7 +14,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. PRGNAM=configobj -VERSION=${VERSION:-4.7.2} +VERSION=${VERSION:-5.0.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -38,19 +40,19 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -unzip $CWD/$PRGNAM-$VERSION.zip -x __MACOSX/\* +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ python setup.py install --root=$PKG +which python3 &> /dev/null && python3 setup.py install --root=$PKG + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION +[ -d docs ] && cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/libraries/configobj/configobj.info b/libraries/configobj/configobj.info index eff8829da0..ce83c43e7a 100644 --- a/libraries/configobj/configobj.info +++ b/libraries/configobj/configobj.info @@ -1,8 +1,8 @@ PRGNAM="configobj" -VERSION="4.7.2" -HOMEPAGE="http://www.voidspace.org.uk/python/modules.shtml#configobj" -DOWNLOAD="http://www.voidspace.org.uk/downloads/configobj-4.7.2.zip" -MD5SUM="51cee395cfbf831339b03f72706de18e" +VERSION="5.0.6" +HOMEPAGE="https://pypi.org/project/configobj/" +DOWNLOAD="https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz" +MD5SUM="e472a3a1c2a67bb0ec9b5d54c13a47d6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES=""