1
0
forked from pool/python-PyPDF2

Accepting request 489737 from home:simotek:branches:devel:languages:python

- Convert to single spec
- Update to version 1.26.0

OBS-URL: https://build.opensuse.org/request/show/489737
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyPDF2?expand=0&rev=6
This commit is contained in:
2017-04-21 11:20:22 +00:00
committed by Git OBS Bridge
parent f190fd47b4
commit 0471fd5ccb
4 changed files with 75 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aca40d5155524120fceaf2eb4ae054480b8a2b6ffcfa0a2e77e3e45666428c64
size 59891

3
PyPDF2-1.26.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e28f902f2f0a1603ea95ebe21dff311ef09be3d0f0ef29a3e44a932729564385
size 77556

View File

@@ -1,3 +1,60 @@
-------------------------------------------------------------------
Thu Apr 20 04:22:33 UTC 2017 - sflees@suse.de
- Convert to single spec
- Update to version 1.26.0
* NOTE: Active maintenance on PyPDF2 is resuming after a hiatus
* Fixed a bug where image resources where incorrectly overwritten
when merging pages
* Added dictionary for JavaScript actions to the root (louib)
* Added unit tests for the JS functionality (louib)
* Add more Python 3 compatibility when reading inline images (im2703
and (VyacheslavHashov)
* Return NullObject instead of raising error when failing to resolve
object (ctate)
* Don't output warning for non-zeroed xref table when strict=False
(BenRussert)
* Remove extraneous zeroes from output formatting (speedplane)
* Fix bug where reading an inline image would cut off prematurely in
certain cases (speedplane)
- Changes for 1.25
BUGFIXES:
* Added Python 3 algorithm for ASCII85Decode. Fixes issue when
reading reportlab-generated files with Py 3 (jerickbixly)
* Recognize more escape sequence which would otherwise throw an
exception (manuelzs, robertsoakes)
* Fixed overflow error in generic.py. Occurred
when reading a too-large int in Python 2 (by Raja Jamwal)
* Allow access to files which were encrypted with an empty
password. Previously threw a "File has not been decrypted"
exception (Elena Williams)
* Do not attempt to decode an empty data stream. Previously
would cause an error in decode algorithms (vladir)
* Fixed some type issues specific to Py 2 or Py 3
* Fix issue when stream data begins with whitespace (soloma83)
* Recognize abbreviated filter names (AlmightyOatmeal and
Matthew Weiss)
* Copy decryption key from PdfFileReader to PdfFileMerger.
Allows usage of PdfFileMerger with encrypted files (twolfson)
* Fixed bug which occurred when a NameObject is present at end
of a file stream. Threw a "Stream has ended unexpectedly"
exception (speedplane)
FEATURES:
* Initial work on a test suite; to be expanded in future.
Tests and Resources directory added, README updated (robertsoakes)
* Added document cloning methods to PdfFileWriter:
appendPagesFromReader, cloneReaderDocumentRoot, and
cloneDocumentFromReader. See official documentation (robertsoakes)
* Added method for writing to form fields: updatePageFormFieldValues.
This will be enhanced in the future. See official documentation
(robertsoakes)
* New addAttachment method. See documentation. Support for adding
and extracting embedded files to be enhanced in the future
(moshekaplan)
* Added methods to get page number of given PageObject or
Destination: getPageNumber and getDestinationPageNumber.
See documentation (mozbugbox)
-------------------------------------------------------------------
Mon May 11 18:00:56 UTC 2015 - benoit.monin@gmx.fr

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyPDF2
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,23 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyPDF2
Version: 1.24
Version: 1.26.0
Release: 0
Url: http://mstamy2.github.com/PyPDF2
Summary: PDF toolkit
License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/P/PyPDF2/PyPDF2-%{version}.tar.gz
Source: https://pypi.io/packages/source/P/PyPDF2/PyPDF2-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
A Pure-Python library built as a PDF toolkit. It is capable of:
@@ -54,15 +55,16 @@ It is therefore a useful tool for websites that manage or manipulate PDFs.
sed -i '/^#!/ d' PyPDF2/pagerange.py
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%fdupes %{buildroot}%{_prefix}
chmod a-x CHANGELOG LICENSE README.md
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG LICENSE README.md
%{python_sitelib}
%{python_sitelib}/*
%changelog