Skip to content

Commit 3ed666c

Browse files
authored
Merge pull request #5542 from henrywang/fix_copr_build
spec: Fix CentOS Stream 9 Copr build failure
2 parents b420a96 + 1b1cbac commit 3ed666c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packaging/rpm-ostree.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,13 @@ BuildRequires: jq
106106

107107
%global libsolv_version 0.7.21
108108
%global libmodulemd_version 2.13.0
109+
# librepo version differs across distros
110+
# Fedora / CS10 / RHEL10: librepo ≥ 1.18 is available
111+
%if 0%{?fedora} || 0%{?rhel} >= 10
109112
%global librepo_version 1.18.0
113+
%else
114+
%global librepo_version 1.14.0
115+
%endif
110116

111117
BuildRequires: cmake >= 3.5.0
112118
BuildRequires: gcc

0 commit comments

Comments
 (0)