forked from pool/python-pdfrw
- Update to version 0.4
* Python 3.6 added to test matrix
* Proper unicode support for text strings in PDFs added
* buildxobj fixes allow better support creating form XObjects
out of compressed pages in some cases
* Compression fixes for Python 3+
* New subset_booklets.py example
* Bug with non-compressed indices into compressed object streams fixed
* Bug with distinguishing compressed object stream first objects fixed
* Better error reporting added for some invalid PDFs (e.g. when reading
past the end of file)
* Better scrubbing of old bookmark information when writing PDFs, to
remove dangling references
* Refactoring of pdfwriter, including updating API, to allow future
enhancements for things like incremental writing
* Minor tokenizer speedup
* Some flate decompressor bugs fixed
* Compression and decompression tests added
* Tests for new unicode handling added
* PdfReader.readpages() recursion error (issue #92) fixed.
* Initial crypt filter support added
- Update to version 0.3
* Python 3.5 added to test matrix
* Better support under Python 3.x for in-memory PDF file-like objects
* Some pagemerge and Unicode patches added
* Changes to logging allow better coexistence with other packages
* Fix for "from pdfrw import \*"
* New fancy_watermark.py example shows off capabilities of pagemerge.py
* metadata.py example renamed to cat.py
- Update to version 0.2
* Several bugs have been fixed
* New regression test functionally tests core with dozens of
PDFs, and also tests examples.
* Core has been ported and tested on Python3 by round-tripping
several difficult files and observing binary matching results
across the different Python versions.
* Still only minimal support for compression and no support
for encryption or newer PDF features. (pdftk is useful
to put PDFs in a form that pdfrw can use.)
- singlespec auto-conversion
- Fix building on SLES 11
- Fix name in the header.
- Inital commit, package required by python-rst2pdf on runtime.
OBS-URL: https://build.opensuse.org/request/show/535002
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdfrw?expand=0&rev=4
65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-pdfrw
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
# Tests require external files
|
|
%bcond_with test
|
|
Name: python-pdfrw
|
|
Version: 0.4
|
|
Release: 0
|
|
Summary: PDF file reader/writer library
|
|
License: MIT
|
|
Group: Development/Libraries/Python
|
|
Url: https://code.google.com/p/pdfrw/
|
|
Source: https://files.pythonhosted.org/packages/source/p/pdfrw/pdfrw-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
%if %{with test}
|
|
BuildRequires: %{python_module pytest}
|
|
%endif
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
pdfrw is a Python library and utility that reads and writes PDF files.
|
|
|
|
%prep
|
|
%setup -q -n pdfrw-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{python_sitelib}
|
|
|
|
%if %{with test}
|
|
%check
|
|
%python_expand py.test-%{$python_bin_suffix}
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root)
|
|
%doc LICENSE.txt README.rst
|
|
%{python_sitelib}/pdfrw/
|
|
%{python_sitelib}/pdfrw-%{version}-py*.egg-info
|
|
|
|
%changelog
|