%global srcname svgelements Name: python-%{srcname} Version: 1.9.6 Release: %autorelease Summary: SVG elements parsing License: MIT URL: https://github.com/meerk40t/svgelements Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest # For tests BuildRequires: python3-scipy %description %{summary}. %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{_description} %prep %autosetup -p1 -n %{srcname}-%{version} # Drop the failing tests # https://github.com/meerk40t/svgelements/issues/263 pushd test rm -f test_cubic_bezier.py test_image.py test_write.py popd %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # drop tests, no need to package them, also not processed by wheel rm -rf %{buildroot}%{python3_sitelib}/test %pyproject_save_files -l svgelements %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %changelog %autochangelog