Name: python-pdm-backend Version: 2.4.5 Release: %autorelease Summary: The build backend used by PDM that supports latest packaging standards License: MIT URL: https://github.com/pdm-project/pdm-backend VCS: git:%{url}.git Source: %{url}/archive/%{version}/pdm-backend-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Test dependencies BuildRequires: gcc BuildRequires: git BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-gitconfig) BuildRequires: python3dist(pytest-xdist) BuildRequires: python3dist(setuptools) %global _description %{expand: This is the backend for PDM projects that is fully-compatible with PEP 517 spec, but you can also use it alone. It reads the metadata of PEP 621 format and converts it to Core metadata.} %description %_description %package -n python3-pdm-backend Summary: %{summary} %description -n python3-pdm-backend %_description %prep %autosetup -p1 -n pdm-backend-%{version} # Set version in pyproject.toml file # https://backend.pdm-project.org/metadata/ sed -i '/source = "scm"/a fallback_version = "%{version}"' pyproject.toml %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L pdm %check %pyproject_check_import %pytest %files -n python3-pdm-backend -f %{pyproject_files} %license LICENSE %changelog %autochangelog