forked from pool/python-weasyprint
* New features:
+ a4fc7a1: Support image-orientation
* Dependencies:
+ #1754: Pillow 9.1.0 is now needed
* Bug fixes:
+ #1864: Handle overflow for svg and symbol tags in SVG images
+ #1867: Remove duplicate compression of attachments
+ d0ad5c1: Override use tag children instead of drawing their references
+ #1874: Drawn underline and overline behind text
+ #1822, #1823: Fix vertical positioning for absolute replaced elements
+ #1807: Don’t crash when out-of-flow box is split in out-of-flow parent
+ #1806: Don’t crash when fixed elements aren’t displayed yet in
aborted line
+ #1809: Fix background drawing for out-of-the-page transformed boxes
+ #1764: Use reference instead of stream for annotation appearance stream
+ #1783: Fix multiple font weights for @font-face declarations
+ #1756: Fix rem font size for SVG images
+ #1755: Keep format when transposing images
+ #1753: Don’t use deprecated read_text function when files is available
+ #1741: Generate better manpage
+ #1747: Correctly set target counters in pages’ absolute elements
+ #1748: Always set font size when font is changed in line
+ #1739: Set baseline on all flex containers
+ #1740: Don’t crash when currentColor is set on root svg tag
+ #1718: Don’t crash with empty bitmap glyphs
+ #1736: Always use the font’s vector variant when possible
+ #1662: Use a stable key to store stream fonts
+ #1733: Don’t remove attachments when adding internal anchors
* Performance:
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-weasyprint?expand=0&rev=19
111 lines
3.6 KiB
RPMSpec
111 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package python-weasyprint
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-weasyprint
|
|
Version: 59.0
|
|
Release: 0
|
|
Summary: Python module to convert web documents to PDF
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/Kozea/WeasyPrint
|
|
Source: https://files.pythonhosted.org/packages/source/w/weasyprint/weasyprint-%{version}.tar.gz
|
|
Source100: python-weasyprint-rpmlintrc
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module flit-core}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 39.2.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
Requires: libgobject-2_0-0
|
|
Requires: pango
|
|
Requires: python-Pillow >= 9.1.0
|
|
Requires: python-Pyphen >= 0.9.1
|
|
Requires: python-base >= 3.7
|
|
Requires: python-cffi >= 0.6
|
|
Requires: python-cssselect2 >= 0.1
|
|
Requires: python-html5lib >= 1.1
|
|
Requires: python-pydyf >= 0.6.0
|
|
Requires: python-tinycss2 >= 1.1.0
|
|
# SECTION fonttools[woff]
|
|
Requires: python-FontTools
|
|
Requires: python-Brotli >= 1.0.1
|
|
Requires: python-zopfli >= 0.1.4
|
|
# /SECTION
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module FontTools}
|
|
BuildRequires: %{python_module Brotli >= 1.0.1}
|
|
BuildRequires: %{python_module Pillow >= 9.1.0}
|
|
BuildRequires: %{python_module Pyphen >= 0.9.1}
|
|
BuildRequires: %{python_module cffi >= 0.6}
|
|
BuildRequires: %{python_module cssselect2 >= 0.1}
|
|
BuildRequires: %{python_module html5lib >= 1.1}
|
|
BuildRequires: %{python_module pydyf >= 0.6.0}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module tinycss2 >= 1.1.0}
|
|
BuildRequires: %{python_module zopfli >= 0.1.4}
|
|
BuildRequires: dejavu-fonts
|
|
BuildRequires: gs
|
|
BuildRequires: libgobject-2_0-0
|
|
BuildRequires: pango
|
|
BuildRequires: xorg-x11-server
|
|
# /SECTION
|
|
Provides: python-WeasyPrint = %{version}-%{release}
|
|
Obsoletes: python-WeasyPrint < %{version}-%{release}
|
|
%python_subpackages
|
|
|
|
%description
|
|
WeasyPrint is a visual rendering engine for HTML and CSS that can
|
|
export to PDF. It aims to support web standards for printing.
|
|
|
|
It is based on various libraries but not on a full rendering engine
|
|
like WebKit or Gecko. The CSS layout engine is written in Python,
|
|
designed for pagination, and meant to be easy to hack on.
|
|
|
|
%prep
|
|
%setup -q -n weasyprint-%{version}
|
|
sed -i '/addopts/d' pyproject.toml
|
|
|
|
%build
|
|
export PYTHONPATH=$PWD
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%python_clone -a %{buildroot}%{_bindir}/weasyprint
|
|
|
|
%check
|
|
%pytest -k 'not test_linear_gradients and (5 or 12)' tests
|
|
|
|
%post
|
|
%python_install_alternative weasyprint
|
|
|
|
%postun
|
|
%python_uninstall_alternative weasyprint
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%python_alternative %{_bindir}/weasyprint
|
|
%{python_sitelib}/weasyprint
|
|
%{python_sitelib}/weasyprint-%{version}*-info
|
|
|
|
%changelog
|