File python-materialyoucolor.spec of Package python-materialyoucolor
#
# spec file for package python-materialyoucolor
#
# Copyright (c) 2025 SUSE LLC
#a
# 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
Name: python-materialyoucolor
Version: 2.0.10
Release: 0
Summary: Material You color algorithms for python
License: MIT
URL: https://github.com/T-Dynamos/materialyoucolor-python
Source: https://files.pythonhosted.org/packages/source/m/materialyoucolor/materialyoucolor-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
###BuildRequires: %%{python_module Pillow}
###BuildRequires: %%{python_module requests}
###BuildRequires: %%{python_module rich}
%python_subpackages
%description
Material You color generation algorithms in python.
It is built in reference with offical typescript implementation except its
color quantization part, which is based on c++ implementation thanks to
pybind.
%prep
%autosetup -p1 -n materialyoucolor-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%fdupes %{buildroot}%{$python_sitearch}/materialyoucolor/
%files %{python_files}
%license LICENSE
%{python_sitearch}/materialyoucolor/
%{python_sitearch}/materialyoucolor-%{version}.dist-info/
%changelog