summaryrefslogtreecommitdiff
path: root/python/pyPdf
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyPdf')
-rw-r--r--python/pyPdf/README12
-rw-r--r--python/pyPdf/pyPdf.SlackBuild23
-rw-r--r--python/pyPdf/pyPdf.info6
3 files changed, 21 insertions, 20 deletions
diff --git a/python/pyPdf/README b/python/pyPdf/README
index 50e3c592a6..0fadcd804c 100644
--- a/python/pyPdf/README
+++ b/python/pyPdf/README
@@ -1,10 +1,10 @@
A Pure-Python library built as a PDF toolkit. It is capable of:
- * extracting document information (title, author, ...),
- * splitting documents page by page,
- * merging documents page by page,
- * cropping pages,
- * merging multiple pages into a single page,
- * encrypting and decrypting PDF files.
+ * extracting document information (title, author, ...)
+ * splitting documents page by page
+ * merging documents page by page
+ * cropping pages
+ * merging multiple pages into a single page
+ * encrypting and decrypting PDF files
By being Pure-Python, it should run on any Python platform without any
dependencies on external libraries. It can also work entirely on StringIO
diff --git a/python/pyPdf/pyPdf.SlackBuild b/python/pyPdf/pyPdf.SlackBuild
index 1f5f7149a5..505583998a 100644
--- a/python/pyPdf/pyPdf.SlackBuild
+++ b/python/pyPdf/pyPdf.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for pyPdf.
# Copyright 2009-2011 Marco Bonetti <sid77@slackware.it>
-# Copyright 2015 Brenton Earl <brent@exitstatusone.com>
+# Copyright 2015-2016 Brenton Earl <brent@exitstatusone.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pyPdf
-VERSION=1.25.1
+SRCNAM=pyPDF
+VERSION=${VERSION:-1.26.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -32,7 +33,7 @@ SRCDIRNAM=PyPDF2
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -44,6 +45,7 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="CHANGELOG LICENSE README.md"
+SAMPLES="Scripts/ Sample_Code/ Resources/"
set -e
@@ -51,23 +53,22 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCDIRNAM-$VERSION
-tar xvf $CWD/$SRCDIRNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCDIRNAM-$VERSION
-
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -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
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -ar $DOCS $SAMPLES $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/pyPdf/pyPdf.info b/python/pyPdf/pyPdf.info
index 79c1996f06..52ffc1d5c8 100644
--- a/python/pyPdf/pyPdf.info
+++ b/python/pyPdf/pyPdf.info
@@ -1,8 +1,8 @@
PRGNAM="pyPdf"
-VERSION="1.25.1"
+VERSION="1.26.0"
HOMEPAGE="https://mstamy2.github.io/PyPDF2/"
-DOWNLOAD="https://github.com/mstamy2/PyPDF2/archive/v1.25.1.tar.gz"
-MD5SUM="c129a049d6612ea9aa06aac7fe10252b"
+DOWNLOAD="https://github.com/mstamy2/PyPDF2/archive/1.26.0/pyPDF-1.26.0.tar.gz"
+MD5SUM="3959e3a15606e4b6c0405487cefb4e21"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""