14
0
forked from pool/python-svglib

Accepting request 1201362 from devel:languages:python

- Update to 1.5.1:
  * Final fix to conversion from shorthand quadratic to cubic bézier.
  * Add support for ex units (assuming for em/2).
  * Add support for image/jpg embedded images (in addition to image/jpeg).
  * Avoid crash on @import rules in stylesheets. The rules are simply
    ignored.
  * Fix conversion from shorthand quadratic to cubic bézier.
  * Include tests/samples/others/*.svg in source distribution.
  * Render leading and trailing text content in text nodes.
  * Better integration with cssselect2 to support a wider range of CSS
    selectors.
  * Support mmult import from reportlab < 3.5.61.
  * Make zero-length Line, PolyLine and Polygon appear in PDFs when their
    stroke value is non-zero.
  * <symbol> nodes now only appears in documents when they are referenced,
    not on their initial appearance.
  * If only rx or ry is defined on a <rect>, the value is used for both.
  * Support non-prefixed href attribute added in SVG 2.
  * Fixed parsing of empty SVG style nodes.
  * Handle content of multiple SVG style nodes.
  * Better font caching for some font names.
  * Revert to scripts usage instead of console_scripts during setup.
  * dropped support for Python 3.6 and added official support for Python
    3.10.
  * improved support for scientific notation in paths
  * if some path has a color with alpha value, it also sets the default fill
    or stroke opacity of the resulting object.
  * matrix transforms on groups are combined with other transforms instead
    of replacing them.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1201362
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-svglib?expand=0&rev=3
This commit is contained in:
2024-09-16 15:43:22 +00:00
committed by Git OBS Bridge
4 changed files with 49 additions and 11 deletions

View File

@@ -1,3 +1,38 @@
-------------------------------------------------------------------
Mon Sep 16 06:40:32 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.5.1:
* Final fix to conversion from shorthand quadratic to cubic bézier.
* Add support for ex units (assuming for em/2).
* Add support for image/jpg embedded images (in addition to image/jpeg).
* Avoid crash on @import rules in stylesheets. The rules are simply
ignored.
* Fix conversion from shorthand quadratic to cubic bézier.
* Include tests/samples/others/*.svg in source distribution.
* Render leading and trailing text content in text nodes.
* Better integration with cssselect2 to support a wider range of CSS
selectors.
* Support mmult import from reportlab < 3.5.61.
* Make zero-length Line, PolyLine and Polygon appear in PDFs when their
stroke value is non-zero.
* <symbol> nodes now only appears in documents when they are referenced,
not on their initial appearance.
* If only rx or ry is defined on a <rect>, the value is used for both.
* Support non-prefixed href attribute added in SVG 2.
* Fixed parsing of empty SVG style nodes.
* Handle content of multiple SVG style nodes.
* Better font caching for some font names.
* Revert to scripts usage instead of console_scripts during setup.
* dropped support for Python 3.6 and added official support for Python
3.10.
* improved support for scientific notation in paths
* if some path has a color with alpha value, it also sets the default fill
or stroke opacity of the resulting object.
* matrix transforms on groups are combined with other transforms instead
of replacing them.
- Switch to pyproject macros.
- No more globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 22 17:25:10 UTC 2022 - Dirk Müller <dmueller@suse.com> Tue Feb 22 17:25:10 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-svglib # spec file for package python-svglib
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,16 @@
# #
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-svglib Name: python-svglib
Version: 1.1.0 Version: 1.5.1
Release: 0 Release: 0
Summary: Python library for reading and converting SVG Summary: Python library for reading and converting SVG
License: LGPL-3.0-only License: LGPL-3.0-only
URL: https://github.com/deeplook/svglib URL: https://github.com/deeplook/svglib
Source: https://files.pythonhosted.org/packages/source/s/svglib/svglib-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/svglib/svglib-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
@@ -41,7 +41,7 @@ Requires: python-lxml
Requires: python-reportlab Requires: python-reportlab
Requires: python-tinycss2 >= 0.6.0 Requires: python-tinycss2 >= 0.6.0
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -52,12 +52,14 @@ Pure Python library for reading and converting SVG.
%setup -q -n svglib-%{version} %setup -q -n svglib-%{version}
# Remove hashbang # Remove hashbang
sed -i '1{/^#!/d}' svglib/svglib.py sed -i '1{/^#!/d}' svglib/svglib.py
# Make tests a module
touch tests/__init__.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%{python_clone -a %{buildroot}%{_bindir}/svg2pdf} %{python_clone -a %{buildroot}%{_bindir}/svg2pdf}
%{python_clone -a %{buildroot}%{_mandir}/man1/svg2pdf.1} %{python_clone -a %{buildroot}%{_mandir}/man1/svg2pdf.1}
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -77,6 +79,7 @@ sed -i '1{/^#!/d}' svglib/svglib.py
%license LICENSE.txt %license LICENSE.txt
%python_alternative %{_bindir}/svg2pdf %python_alternative %{_bindir}/svg2pdf
%python_alternative %{_mandir}/man1/svg2pdf.1%{ext_man} %python_alternative %{_mandir}/man1/svg2pdf.1%{ext_man}
%{python_sitelib}/svglib*/ %{python_sitelib}/svglib
%{python_sitelib}/svglib-%{version}.dist-info
%changelog %changelog

View File

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

3
svglib-1.5.1.tar.gz Normal file
View File

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