%global pypi_name pyforgejo %global pypi_version 1.0.2 Name: python-%{pypi_name} Version: %{pypi_version} Release: 2%{?dist} Summary: A client library for accessing the Forgejo API License: MIT URL: https://codeberg.org/harabat/pyforgejo Source0: %{pypi_source %pypi_name} Patch0: httpx-pin.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description A client library for accessing the Forgejo API %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} A client library for accessing the Forgejo API %prep %autosetup -n %{pypi_name}-%{pypi_version} -p0 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %pypi_name %check %pyproject_check_import %files -n python3-%{pypi_name} %doc README.md %{python3_sitelib}/pyforgejo/ %{python3_sitelib}/pyforgejo-%{version}.dist-info/ %changelog * Thu Oct 24 2024 Gwyn Ciesla - 1.0.2-2 - Relax httpx pin * Wed Mar 06 2024 Gwyn Ciesla - 1.0.2-1 - Initial package.