python3.14-semantic_version/SPECS/python3.14-semantic_version.spec
2026-04-16 05:00:04 -04:00

74 lines
2.1 KiB
RPMSpec

## START: Set by rpmautospec
## (rpmautospec version 0.6.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 4;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%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
## START: Generated by rpmautospec
* Fri Nov 28 2025 Lukáš Zachar <lzachar@redhat.com> - 2.10.0-4
- Fix pytest in gating plan
* Fri Nov 28 2025 Lukáš Zachar <lzachar@redhat.com> - 2.10.0-3
- Add gating.yaml
* Fri Nov 28 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.10.0-2
- Convert from Fedora for the Python 3.14 stack in RHEL
* Fri Nov 28 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 2.10.0-1
- RHEL: Rename SPEC to python3.14-semantic_version.spec
## END: Generated by rpmautospec