python/python-oauth: Renamed python2-oauth.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e808233762
commit
fd743313af
|
@ -21,7 +21,7 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=python-oauth
|
PRGNAM=python2-oauth
|
||||||
VERSION=${VERSION:-1.0.1}
|
VERSION=${VERSION:-1.0.1}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
@ -30,7 +30,7 @@ SRCNAM=oauth
|
||||||
|
|
||||||
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
|
||||||
|
@ -41,8 +41,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"
|
||||||
|
@ -70,7 +70,7 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
python setup.py install --root=$PKG
|
python2 setup.py install --root=$PKG
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | 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
|
|
@ -1,4 +1,4 @@
|
||||||
PRGNAM="python-oauth"
|
PRGNAM="python2-oauth"
|
||||||
VERSION="1.0.1"
|
VERSION="1.0.1"
|
||||||
HOMEPAGE="http://code.google.com/p/oauth/"
|
HOMEPAGE="http://code.google.com/p/oauth/"
|
||||||
DOWNLOAD="https://pypi.python.org/packages/source/o/oauth/oauth-1.0.1.tar.gz"
|
DOWNLOAD="https://pypi.python.org/packages/source/o/oauth/oauth-1.0.1.tar.gz"
|
|
@ -6,14 +6,14 @@
|
||||||
# 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------------------------------------------------------|
|
||||||
python-oauth: python-oauth (open protocol to allow API authentication)
|
python2-oauth: python2-oauth (open protocol to allow API authentication)
|
||||||
python-oauth:
|
python2-oauth:
|
||||||
python-oauth: An open protocol to allow API authentication from desktop and
|
python2-oauth: An open protocol to allow API authentication from desktop and
|
||||||
python-oauth: web applications.
|
python2-oauth: web applications.
|
||||||
python-oauth:
|
python2-oauth:
|
||||||
python-oauth:
|
python2-oauth:
|
||||||
python-oauth:
|
python2-oauth:
|
||||||
python-oauth:
|
python2-oauth:
|
||||||
python-oauth:
|
python2-oauth:
|
||||||
python-oauth:
|
python2-oauth:
|
||||||
python-oauth:
|
python2-oauth:
|
Loading…
Reference in New Issue