Name: python-dep-logic Version: 0.5.1 Release: %autorelease Summary: Python dependency specifications supporting logical operations License: Apache-2.0 URL: https://github.com/pdm-project/dep-logic VCS: git:%{url}.git Source: %{url}/archive/%{version}/dep-logic-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # Tests BuildRequires: python3dist(pytest) %global _description %{expand: Python dependency specifications supporting logical operations.} %description %_description %package -n python3-dep-logic Summary: %{summary} %description -n python3-dep-logic %_description %prep %autosetup -p1 -n dep-logic-%{version} # Set version in pyproject.toml file # https://backend.pdm-project.org/metadata/ sed -i '/source = "scm"/a fallback_version = "%{version}"' pyproject.toml rm pdm.lock %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L dep_logic %check %pyproject_check_import %pytest %files -n python3-dep-logic -f %{pyproject_files} %doc README.md %license LICENSE %changelog %autochangelog