Skip to content

Commit

Permalink
fixup! build: add python 3.13 support to spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitewarp committed Jan 3, 2025
1 parent 8666115 commit 456e06f
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions qpc.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
%global python_min_version 3.12
%global python_unsupported 3.14
%if 0%{?fedora} >= 41 || 0%{?rhel} >= 11
# Fedora 41 and RHEL 11+ (Python 3.13)
%global python3_pkgversion 3.13
%global __python3 /usr/bin/python3.13
%else
# older Fedora and RHEL with Python 3.12
%global python3_pkgversion 3.12
%global __python3 /usr/bin/python3.12
%endif

Name: qpc
Summary: command-line client interface for quipucords

Expand All @@ -13,16 +21,13 @@ Source0: %{url}/archive/%{version}.tar.gz

BuildArch: noarch

BuildRequires: python3 >= %{python_min_version}
BuildRequires: python3 < %{python_unsupported}
BuildRequires: python%{python3_version}-devel
BuildRequires: python%{python3_version}-setuptools
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools

Requires: python3 >= %{python_min_version}
Requires: python3 < %{python_unsupported}
Requires: python%{python3_version}-cryptography
Requires: python%{python3_version}-requests
Requires: python%{python3_version}-setuptools
Requires: python%{python3_pkgversion}
Requires: python%{python3_pkgversion}-cryptography
Requires: python%{python3_pkgversion}-requests
Requires: python%{python3_pkgversion}-setuptools

%description
qpc is the command-line client interface for the quipucords server.
Expand Down

0 comments on commit 456e06f

Please sign in to comment.