mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
python/google-api-python-client: Updated for version 1.5.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
092e27b0c0
commit
4eb0d1fc1c
4 changed files with 41 additions and 49 deletions
|
@ -1,7 +1 @@
|
||||||
google-api-python-client (Google APIs Client for Python)
|
This is the Python client library for Google's discovery based APIs.
|
||||||
|
|
||||||
Written by Google, this is a small, flexible, and powerful Python
|
|
||||||
client library for accessing Google APIs. The library supports these
|
|
||||||
Python environments: Google App Engine and Supported APIs
|
|
||||||
This project is also the home of oauth2client, a Python client
|
|
||||||
library for OAuth 2.0.
|
|
||||||
|
|
|
@ -1,29 +1,32 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for google-api-python-client
|
# Slackware build script for "google-api-python-client"
|
||||||
|
|
||||||
# Copyright 2011 Vincent Batts, Vienna, VA. USA
|
# Copyright 2011-2015 Vincent Batts, Vienna, VA. USA
|
||||||
|
# Copyright 2015 Marcel Saegebarth <marc@mos6581.de>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# permitted provided that the following conditions are met:
|
# modification, are permitted provided that the following conditions are
|
||||||
|
# met:
|
||||||
#
|
#
|
||||||
# 1. Redistributions of this script must retain the above copyright
|
# * Redistributions of source code must retain the above copyright
|
||||||
# notice, this list of conditions and the following disclaimer.
|
# notice, this list of conditions and the following disclaimer.
|
||||||
#
|
#
|
||||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=google-api-python-client
|
PRGNAM=google-api-python-client
|
||||||
VERSION=${VERSION:-1.0beta2}
|
VERSION=${VERSION:-1.4.2}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -60,24 +63,19 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-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" | grep ELF \
|
|
||||||
| 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 \
|
cp -a CHANGELOG LICENSE README.md samples/ docs/ $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
README samples/ docs/ \
|
|
||||||
$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
|
||||||
|
|
||||||
find $PKG/usr/doc/$PRGNAM-$VERSION -type d -exec chmod 0755 {} \;
|
find $PKG/usr/doc/$PRGNAM-$VERSION -type d -exec chmod 0755 {} \;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="google-api-python-client"
|
PRGNAM="google-api-python-client"
|
||||||
VERSION="1.0beta2"
|
VERSION="1.4.2"
|
||||||
HOMEPAGE="https://google-api-python-client.googlecode.com/"
|
HOMEPAGE="https://github.com/google/google-api-python-client/"
|
||||||
DOWNLOAD="http://google-api-python-client.googlecode.com/files/google-api-python-client-1.0beta2.tar.gz"
|
DOWNLOAD="https://github.com/google/google-api-python-client/archive/v1.4.2.tar.gz"
|
||||||
MD5SUM="0998bcec19f69c7130a36d0c1a91b100"
|
MD5SUM="93a9cb70135fb941197bcd6d4136fb67"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES="httplib2 python-uri-templates python-oauth2client"
|
||||||
MAINTAINER="Vincent Batts"
|
MAINTAINER="Marcel Saegebarth"
|
||||||
EMAIL="vbatts@hashbangbash.com"
|
EMAIL="marc@mos6581.de"
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
google-api-python-client: google-api-python-client (Google APIs Client for Python)
|
google-api-python-client: google-api-python-client (Google APIs Client for Python)
|
||||||
google-api-python-client:
|
google-api-python-client:
|
||||||
google-api-python-client: Written by Google, this is a small, flexible, and powerful Python
|
google-api-python-client: This is the Python client library for Google's discovery based APIs.
|
||||||
google-api-python-client: client library for accessing Google APIs. The library supports these
|
google-api-python-client:
|
||||||
google-api-python-client: Python environments:
|
google-api-python-client: Homepage: https://github.com/google/google-api-python-client/
|
||||||
google-api-python-client: Google App Engine
|
google-api-python-client:
|
||||||
google-api-python-client: Supported APIs
|
google-api-python-client:
|
||||||
google-api-python-client: This project is also the home of oauth2client, a Python client
|
google-api-python-client:
|
||||||
google-api-python-client: library for OAuth 2.0.
|
google-api-python-client:
|
||||||
google-api-python-client:
|
google-api-python-client:
|
||||||
google-api-python-client:
|
google-api-python-client:
|
||||||
|
|
Loading…
Reference in a new issue