mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
python/pbr: Updated for version 3.1.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
498dfb8727
commit
4a0fcde6c6
4 changed files with 21 additions and 27 deletions
|
@ -1,16 +1,8 @@
|
||||||
pbr (manage setuptools packaging)
|
PBR is a library that injects some useful and sensible default
|
||||||
|
behaviors into your setuptools run.
|
||||||
|
|
||||||
A library for managing setuptools packaging in a consistent manner.
|
PBR is only mildly configurable. The basic idea is that there's a
|
||||||
|
decent way to run things and if you do, you should reap the rewards,
|
||||||
PBR is a library that injects some useful and sensible default behaviors
|
because then it's simple and repeatable. If you want to do things
|
||||||
into your setuptools run.
|
differently, cool! But you've already got the power of python at your
|
||||||
|
fingertips, so you don't really need PBR.
|
||||||
PBR reads and then filters the setup.cfg data through a setup hook to
|
|
||||||
fill in default values and provide more sensible behaviors, and then
|
|
||||||
feeds the results in as the arguments to a call to setup.py
|
|
||||||
|
|
||||||
PBR is only mildly configurable. The basic idea is that there's a decent
|
|
||||||
way to run things and if you do, you should reap the rewards, because
|
|
||||||
then it's simple and repeatable. If you want to do things differently,
|
|
||||||
cool! But you've already got the power of python at your fingertips,
|
|
||||||
so you don't really need PBR.
|
|
||||||
|
|
|
@ -23,13 +23,13 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=pbr
|
PRGNAM=pbr
|
||||||
VERSION=${VERSION:-1.8.1}
|
VERSION=${VERSION:-3.1.1}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i586 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
|
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
@ -67,15 +67,17 @@ find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
python setup.py install --root=$PKG
|
python setup.py install --root=$PKG
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a AUTHORS ChangeLog PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a \
|
||||||
|
AUTHORS ChangeLog PKG-INFO \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="pbr"
|
PRGNAM="pbr"
|
||||||
VERSION="1.8.1"
|
VERSION="3.1.1"
|
||||||
HOMEPAGE="https://pypi.python.org/pypi/pbr"
|
HOMEPAGE="https://pypi.python.org/pypi/pbr"
|
||||||
DOWNLOAD="https://pypi.python.org/packages/source/p/pbr/pbr-1.8.1.tar.gz"
|
DOWNLOAD="https://pypi.python.org/packages/d5/d6/f2bf137d71e4f213b575faa9eb426a8775732432edb67588a8ee836ecb80/pbr-3.1.1.tar.gz"
|
||||||
MD5SUM="c8f9285e1a4ca6f9654c529b158baa3a"
|
MD5SUM="4e82c2e07af544c56a5b71c801525b00"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
pbr: pbr (manage setuptools packaging)
|
pbr: pbr (managing setuptools packaging in python)
|
||||||
pbr:
|
pbr:
|
||||||
pbr: A library for managing setuptools packaging in a consistent manner.
|
pbr: A library for managing setuptools packaging in a consistent manner.
|
||||||
pbr:
|
pbr:
|
||||||
|
|
Loading…
Reference in a new issue