File python-PyMatting.spec of Package python-PyMatting
#
# spec file for package python-PyMatting
#
# Copyright (c) 2025 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-PyMatting
Version: 1.1.13
Release: 0
Summary: A Python Library for Alpha Matting
License: MIT
Group: Development/Languages/Python
URL: https://pymatting.github.io/
Source0: pymatting-%{version}.tar.gz
Source1: data-%{version}.tar.xz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module numpy >= 2.0}
BuildRequires: %{python_module numba}
BuildRequires: %{python_module PIL}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module pybind11 >= 2.12}
Requires: python-PyMatting
Requires: python-numba
Requires: python-numpy >= 2.0
Requires: python-Pillow
Requires: python-scipy
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
We introduce the PyMatting package for Python which implements various methods to
solve the alpha matting problem.
%prep
%autosetup -p1 -n pymatting-%{version}
tar xvf %{SOURCE1}
%build
%python_build
%install
%python_install
%check
%pytest
%files %{python_files}
%license LICENSE.md
%doc README.md
%{python_sitelib}/pymatting
%{python_sitelib}/PyMatting-%{version}*info
%changelog