Enforce minimum libdnf5 version in specfile; docs
All checks were successful
builds.sr.ht/main Job completed
builds.sr.ht/mockbuild Job completed
builds.sr.ht/test Job completed
builds.sr.ht/epel9 Job completed

This commit is contained in:
Maxwell G 2026-07-12 19:10:44 -05:00
commit cb9043e553
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8
2 changed files with 5 additions and 3 deletions

View file

@ -44,7 +44,7 @@ The following additional system package is required for the dnf backend:
The following additional system packages are required for the libdnf5 backend:
- python3-libdnf5
- python3-libdnf5 (>= `5.2.0`)
The following additional system packages are always required:

View file

@ -4,7 +4,8 @@
# SPDX-License-Identifier: MIT
# License text: https://spdx.org/licenses/MIT.html
%bcond libdnf5 %[0%{?fedora} >= 38]
%bcond libdnf5 %[ %{undefined rhel} || 0%{?rhel} >= 11 ]
%define min_libdnf5_version 5.2.0
Name: fedrq
Version: 1.6.0
@ -29,13 +30,14 @@ BuildRequires: distribution-gpg-keys
BuildRequires: python3-argcomplete
BuildRequires: python3-dnf
%if %{with libdnf5}
BuildRequires: python3-libdnf5
BuildRequires: python3-libdnf5 >= %{min_libdnf5_version}
%endif
# Manpage
BuildRequires: scdoc
Requires: (python3-dnf or python3-libdnf5)
Suggests: (python3-libdnf5 if dnf5)
Requires: (python3-libdnf5 >= %{min_libdnf5_version} if python3-libdnf5)
Requires: distribution-gpg-keys
Recommends: fedora-repos-rawhide
Recommends: python3-argcomplete