%global pypi_name girder_client Name: python-girder-client Version: 5.0.18 Release: 1%{?dist} Summary: Python client and CLI for a Girder data-management server License: Apache-2.0 URL: https://github.com/girder/girder Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %global _description %{expand: girder-client talks to a Girder server, the data-management platform Kitware built for scientific image data, offering both a Python API and the girder-cli command for uploading, downloading and synchronising folder hierarchies. MONAI Label uses it to fetch datasets from a Girder-backed store.} %description %{_description} %package -n python3-girder-client Summary: %{summary} %description -n python3-girder-client %{_description} %prep %autosetup -n %{pypi_name}-%{version} # setuptools-scm with fallback_version = "0.0.0": with no .git present it does # not fail, it silently builds a wheel called 0.0.0, and the resulting rpm # would carry a version unrelated to its own NVR. Pin it to %%{version} # explicitly in each phase that invokes the backend. %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_wheel %install export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import # No %%license: the sdist ships no licence file, only the Apache-2.0 # declaration in setup.cfg. Nothing to install rather than an omission. %files -n python3-girder-client -f %{pyproject_files} %doc README.rst %{_bindir}/girder-cli %{_bindir}/girder-client %changelog * Tue Sep 15 2026 Morgan Hough - 5.0.18-1 - Initial package: girder_client 5.0.18. - MONAI Label dependency. All four of its own dependencies (click, diskcache, requests, requests-toolbelt) are already in Fedora. - Uses setuptools-scm with fallback_version = "0.0.0", so the build exports SETUPTOOLS_SCM_PRETEND_VERSION: without it the wheel builds as 0.0.0 rather than failing, and the version silently disagrees with the NVR. - Upstream sdist contains no LICENSE file, so no %%license entry.