# # spec file for package python-svgelements # # Copyright (c) 2024 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-svgelements Version: 1.9.6 Release: 0 Summary: SVG Parsing for Elements, Paths, and other SVG Objects License: MIT URL: https://github.com/meerk40t/svgelements Source: https://github.com/meerk40t/svgelements/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM Patch0: https://github.com/meerk40t/svgelements/commit/23da98941a94cf1afed39c10750222ccfee73c9f.patch BuildRequires: python-rpm-macros BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} # TESTS BuildRequires: %{python_module Pillow} BuildRequires: %{python_module numpy} BuildRequires: %{python_module scipy} # TESTS BuildArch: noarch %python_subpackages %description This library does high fidelity SVG parsing and geometric rendering. The goal is to successfully and correctly process SVG for use with any scripts that may need or want to use SVG files as geometric data. %prep %autosetup -p1 -n svgelements-%{version} %build %pyproject_wheel %install %pyproject_install %python_expand rm -r %{buildroot}/%{$python_sitelib}/test %check %pyunittest -v %files %{python_files} %license LICENSE %doc README.md %{python_sitelib}/svgelements %{python_sitelib}/svgelements-%{version}.dist-info %changelog