%bcond test 1 %global pip_name sumup Name: python-%{pip_name} Version: 0.0.19 Release: 1%{?dist} Summary: SumUp API python bindings License: Apache-2.0 URL: https://github.com/sumup Source0: %{url}/%{pip_name}-py/archive/v%{version}/%{pip_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: The python bindings for the SumUp API.} %description %_description %package -n python3-%{pip_name} Summary: %{summary} %description -n python3-%{pip_name} %_description %prep %autosetup -n %{pip_name}-%{version} %generate_buildrequires %pyproject_buildrequires %{?with_test:-g test} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pip_name} %check %if %{with test} %pytest %endif %files -n python3-%{pip_name} -f %{pyproject_files} %doc *.md %changelog * Sun Feb 22 2026 frankb - 0.0.19-1 - Update to 0.0.19 * Mon Dec 29 2025 frankb - 0.0.18-1 - Update to 0.0.18 * Sun Dec 28 2025 frankb - 0.0.16-1 - Start