forked from pool/python-xhtml2pdf
Accepting request 1010934 from home:pgajdos:python
- version update to 0.2.6 * Drop python 2 support. * Remove most of python 2 code and cleanup * Update packages dependencies * Remove six dependency and update Readme * Set timeout in https options * Add new file manager approach using factory method, now new classes deal with different types of data * B64InlineURI, LocalProtocolURI, NetworkFileUri, LocalFileURI, BytesFileUri * Now getColor return None when None is passed ignoring default value, but return default if bool(data) == false * rtl languages reversed lines added as a ParaFrag (note: not fully supported yet) * Check if Paragraph has 'rtl' attribute (note: not fully supported yet) * Fix UnboundLocalError in reportlab_paragraph (#585) (#586) * Remove usage of getStringIO (#590) removed form reportlab * Change test for github workflow using only Linux * Add Python 3.9, 3.10 * Switch from PyPDF2 to PyPDF3 * Add SVG support * Update package information. * Allow call tests using make. - deleted patches - 590-rm-getStringIO.patch (upstreamed) OBS-URL: https://build.opensuse.org/request/show/1010934 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xhtml2pdf?expand=0&rev=21
This commit is contained in:
@@ -18,40 +18,35 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-xhtml2pdf
|
||||
Version: 0.2.5
|
||||
Version: 0.2.6
|
||||
Release: 0
|
||||
Summary: PDF Generator Using HTML and CSS
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/xhtml2pdf/xhtml2pdf
|
||||
Source: https://github.com/xhtml2pdf/xhtml2pdf/archive/%{version}.tar.gz#/xhtml2pdf-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM 590-rm-getStringIO.patch gh#xhtml2pdf/xhtml2pdf#589 mcepl@suse.com
|
||||
# Remove usage of getStringIO
|
||||
Patch0: 590-rm-getStringIO.patch
|
||||
Source: https://github.com/xhtml2pdf/xhtml2pdf/archive/refs/tags/v%{version}.tar.gz#/xhtml2pdf-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Pillow >= 7.0.2
|
||||
Requires: python-PyPDF2 >= 1.26
|
||||
Requires: python-PyPDF3 >= 1.0.5
|
||||
Requires: python-arabic-reshaper >= 2.1.0
|
||||
Requires: python-html5lib >= 1.0
|
||||
Requires: python-python-bidi >= 0.4.2
|
||||
Requires: python-reportlab >= 3.0
|
||||
Requires: python-setuptools
|
||||
Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Conflicts: python-pisa
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Pillow >= 7.0.2}
|
||||
BuildRequires: %{python_module PyPDF2 >= 1.26}
|
||||
BuildRequires: %{python_module PyPDF3 >= 1.0.5}
|
||||
BuildRequires: %{python_module arabic-reshaper >= 2.1.0}
|
||||
BuildRequires: %{python_module html5lib >= 1.0}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-bidi >= 0.4.2}
|
||||
BuildRequires: %{python_module reportlab >= 3.0}
|
||||
BuildRequires: %{python_module six}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
|
Reference in New Issue
Block a user