python3.14-semantic_version/python3.14-semantic_version.spec
Tomáš Hrnčiar a210c5e995 Convert from Fedora for the Python 3.14 stack in RHEL
Fedora contributions by:
    Davide Cavalca <dcavalca@fedoraproject.org>
    Dennis Gilmore <dennis@ausil.us>
    Haïkel Guémar <hguemar@fedoraproject.org>
    Igor Gnatenko <ignatenko@redhat.com>
    Javier Peña <jpena@redhat.com>
    Lukas Zachar <lzachar@redhat.com>
    Miro Hrončok <mhroncok@redhat.com>
    Miroslav Suchý <msuchy@redhat.com>
    Petr Viktorin <pviktori@redat.com>
2025-11-28 10:10:12 +01:00

52 lines
1.3 KiB
RPMSpec

%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