File python-colorthief.spec of Package python-coloutheif

# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
%define skip_python312 1
%define skip_python311 1
%define skip_python310 1
%global pypi_name colorthief
%global pypi_version 0.2.1

Name:           python-%{pypi_name}
Version:        %{pypi_version}
Release:        %autorelease
Summary:        Grabs the dominant color or a representative color palette from an image

# https://gitlab.com/fedora/legal/fedora-license-data/-/issues/382
# License file provided by Python module, see:
# rpm -q --licensefiles {python3_sitelib}/{name}-{version}.dist-info/LICENSE
License:        BSD-3-Clause
URL:            https://github.com/fengsp/color-thief-py.tar
Source0:        color-thief-py-%{version}.tar

BuildArch:      noarch

BuildRequires:  python3-devel >= 3.4
BuildRequires:  python3-build
BuildRequires:  python3-installer
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  python3-pip
BuildRequires:  systemd-rpm-macros

%global _description %{expand:
A Python module for grabbing the color palette from an image.}

%description %_description


%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name} %_description


%prep
%autosetup -n color-thief-py-%{pypi_version}

%build
%pyproject_wheel


%install
%pyproject_install


%files
%{python3_sitelib}/*
%license LICENSE
%doc README.rst


%changelog
openSUSE Build Service is sponsored by