diff --git a/python/ipython/ipython.SlackBuild b/python/ipython/ipython.SlackBuild index 4af705431e..c2e72529af 100644 --- a/python/ipython/ipython.SlackBuild +++ b/python/ipython/ipython.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=ipython VERSION=${VERSION:-5.8.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -57,12 +57,15 @@ 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" +python2 setup.py install --root="$PKG" +rm $PKG/usr/bin/ipython +rm $PKG/usr/bin/iptest* 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 -mv $PKG/usr/share/man $PKG/usr +mkdir -p $PKG/usr/man/man1 +mv $PKG/usr/share/man/man1/$PRGNAM.1 $PKG/usr/man/man1/${PRGNAM}2.1 find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done