aboutsummaryrefslogtreecommitdiff
path: root/python/pkginfo
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2016-11-05 05:47:11 +0200
committerDavid Spencer <idlemoor@slackbuilds.org>2016-11-11 20:36:30 +0000
commit531d5ba42e3a3fbe4d8a91fed28bd398f4b43fc3 (patch)
treef1c349298c091b72d76b248d13cf4fc201fc5e2f /python/pkginfo
parentc72255fa9969cc95996fc6f37de6966f5140c075 (diff)
python/pkginfo: Updated for version 1.4.0.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'python/pkginfo')
-rw-r--r--python/pkginfo/pkginfo.SlackBuild7
-rw-r--r--python/pkginfo/pkginfo.info6
-rw-r--r--python/pkginfo/setup.patch19
3 files changed, 27 insertions, 5 deletions
diff --git a/python/pkginfo/pkginfo.SlackBuild b/python/pkginfo/pkginfo.SlackBuild
index 7953c09196cdd..f62c7663246a4 100644
--- a/python/pkginfo/pkginfo.SlackBuild
+++ b/python/pkginfo/pkginfo.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pkginfo
-VERSION=${VERSION:-1.3.2}
+VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,13 +69,16 @@ 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 {} \;
+# fix build
+patch -p1 < $CWD/setup.patch
+
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
-cp -a README.txt CHANGES.txt TODO.txt PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.txt PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/pkginfo/pkginfo.info b/python/pkginfo/pkginfo.info
index 048bfefd50dc8..a049f9f4cc1df 100644
--- a/python/pkginfo/pkginfo.info
+++ b/python/pkginfo/pkginfo.info
@@ -1,8 +1,8 @@
PRGNAM="pkginfo"
-VERSION="1.3.2"
+VERSION="1.4.0"
HOMEPAGE="http://pythonhosted.org/pkginfo/"
-DOWNLOAD="https://pypi.python.org/packages/bc/3e/046ec2439e233161f99d2f6cceb1ac49176612b6f6250cd6cb9919cda97a/pkginfo-1.3.2.tar.gz"
-MD5SUM="8db6cbdf1d810c7270c88992d196951f"
+DOWNLOAD="https://pypi.python.org/packages/d4/76/cf29c3b070bf95dfa8b59e23a0c19e42483a4d20987c74b30ed4df2ab911/pkginfo-1.4.0.tar.gz"
+MD5SUM="5c3711ac7d8b906ec1ea0e8a8f54ffc6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/python/pkginfo/setup.patch b/python/pkginfo/setup.patch
new file mode 100644
index 0000000000000..1c0a281ae6173
--- /dev/null
+++ b/python/pkginfo/setup.patch
@@ -0,0 +1,19 @@
+--- pkginfo-1.4.0/setup.orig.py 2016-11-05 05:43:07.149052800 +0200
++++ pkginfo-1.4.0/setup.py 2016-11-05 05:43:34.139715370 +0200
+@@ -16,14 +16,14 @@
+
+ here = os.path.abspath(os.path.dirname(__file__))
+ README = open(os.path.join(here, 'README.txt')).read()
+-CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
++# CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
+
+ setup(
+ name='pkginfo',
+ version='1.4.0',
+ description='Query metadatdata from sdists / bdists / installed packages.',
+ platforms=['Unix', 'Windows'],
+- long_description='\n\n'.join([README, CHANGES]),
++ long_description='\n\n'.join([README]),
+ keywords='distribution sdist installed metadata',
+ url='https://code.launchpad.net/~tseaver/pkginfo/trunk',
+ author='Tres Seaver, Agendaless Consulting',