%global python3_pkgversion 3.14 Name: python%{python3_pkgversion}-semantic_version Version: 2.10.0 Release: %autorelease Summary: Library implementing the 'SemVer' scheme License: BSD-2-Clause URL: https://github.com/rbarrois/python-semanticversion Source: %{url}/archive/%{version}/python-semanticversion-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools # Test dependencies manually cherry-picked from the [dev] extra # Upstream uses nose2, but pytest works as well BuildRequires: python%{python3_pkgversion}-pytest %if %{undefined rhel} || %{defined epel} # Optional test dependency BuildRequires: python3-django %endif %global _description %{expand: This small python library provides a few tools to handle semantic versioning in Python.} %description %{_description} %prep %autosetup -p1 -n python-semanticversion-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l semantic_version %check %pytest %files -n python%{python3_pkgversion}-semantic_version -f %{pyproject_files} %doc README.rst ChangeLog CREDITS %changelog %autochangelog