%global pypi_name colorthief %global pypi_version 0.2.1 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: Grabs the dominant color or a representative color palette from an image # License is not clear # https://github.com/fengsp/color-thief-py/blob/master/LICENSE License: BSD URL: https://github.com/fengsp/color-thief-py Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %global _description %{expand: A Python module for grabbing the color palette from an image.} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3dist(pillow) %description -n python3-%{pypi_name} %_description %prep %autosetup -n %{pypi_name}-%{pypi_version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog * Sun Oct 15 2023 Artem Polishchuk - 0.2.1-1 - Initial package