File python-skia-pathops.spec of Package python-skia-pathops
#
# spec file for package python-skia-pathops
#
# Copyright (c) 2022 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 http://bugs.opensuse.org/
#
%define skip_python2 1
%define pkgname skia-pathops
Name: python-%{pkgname}
Version: 0.7.4
Release: 0
Summary: Python bindings for the Skia library's Path Ops
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/fonttools/%{pkgname}
Source: %{pkgname}-%{version}.tar.xz
Source1: buildtools.tar.gz
Patch: skia-pathops-py3.patch
Patch1: skia-deps.patch
Patch2: skia-system-gn.patch
Patch3: skia-pathops-cython-3.0.patch
BuildRequires: python-rpm-macros
BuildRequires: fdupes
BuildRequires: git
BuildRequires: gn
BuildRequires: gcc-c++
BuildRequires: ninja
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module setuptools_git_ls_files}
%python_subpackages
%description
Python bindings for the Skia library's Path Ops.
%prep
%setup -q -n %{pkgname}-%{version}
%autopatch -p1
tar -xof %{S:1} -C src/cpp/skia-builder/skia/
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{python_sitearch}
%files %{python_files}
%license LICENSE
%{python_sitearch}/*
%changelog