forked from pool/python-CairoSVG
- Update to 2.3.0:
* Drop Python 3.4 support * Make text selectable on generated PDF files * Don't inherit dx and dy attributes * Fix support of alignment-baseline="hanging" * Fix backslashes in docstrings and comments * Fix local anchors with files with no given URL * Close VERSION's file descriptor * Fix T commands used with previous relative commands in paths * Use real functions for svg2* commands, improving IDE integration * Handle image-rendering property * Fix crash with some text samples * Fix position of embedded svg tags with a viewbox not at position (0, 0) * Add output-width and output-height options * Handle references to inner document tags defined after the anchor * Fix offsets for texts on paths - Run tests manualy reducing the test dependencies a bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CairoSVG?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
29e5250d44
commit
ac9e3412a4
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-CairoSVG
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -17,39 +17,32 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python2 1
|
||||
Name: python-CairoSVG
|
||||
Version: 2.1.3
|
||||
Version: 2.3.0
|
||||
Release: 0
|
||||
Summary: A Python SVG converter based on Cairo
|
||||
License: LGPL-3.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
Url: http://www.cairosvg.org/
|
||||
URL: http://www.cairosvg.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/C/CairoSVG/CairoSVG-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module cairocffi}
|
||||
BuildRequires: %{python_module cssselect2}
|
||||
BuildRequires: %{python_module defusedxml}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module tinycss2}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest-flake8}
|
||||
BuildRequires: %{python_module pytest-isort}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
Requires: python-Pillow
|
||||
Requires: python-cairocffi
|
||||
Requires: python-cssselect2
|
||||
Requires: python-defusedxml
|
||||
Requires: python-tinycss2
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -60,6 +53,11 @@ For further information, please visit the CairoSVG website, http://www.cairosvg.
|
||||
|
||||
%prep
|
||||
%setup -q -n CairoSVG-%{version}
|
||||
# remove needless pytest dependencies
|
||||
sed -i setup.cfg \
|
||||
-e '/pytest-runner/d' \
|
||||
-e '/--flake8/d' \
|
||||
-e '/--isort/d'
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -70,7 +68,7 @@ For further information, please visit the CairoSVG website, http://www.cairosvg.
|
||||
%python_clone -a %{buildroot}/%{_bindir}/cairosvg
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
||||
|
||||
%post
|
||||
%python_install_alternative cairosvg
|
||||
|
||||
Reference in New Issue
Block a user