Skip to content

Commit

Permalink
Add support for rhel-10 and centos-stream-10
Browse files Browse the repository at this point in the history
Signed-off-by: Don Zickus <[email protected]>
  • Loading branch information
dzickusrh committed Sep 6, 2024
1 parent 3232896 commit 3ba4712
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions restraint.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
%global with_selinux_policy 0
%endif

%if 0%{?with_static:1} && 0%{?fedora} >= 40
%if 0%{?with_static:1}
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
%global build_type_safety_c 2
%endif
%endif

Name: restraint
Version: 0.4.5
Expand Down Expand Up @@ -115,7 +117,7 @@ BuildRequires: tar
%{?with_static:BuildRequires: cmake}
# libselinux Requires.private
%{?with_static:BuildRequires: libsepol-static}
%if 0%{?rhel} < 8 || 0%{?centos}
%if 0%{?rhel} < 8 || 0%{?centos} < 10
%{?with_static:BuildRequires: pcre-static}
%else
%{?with_static:BuildRequires: pcre2-static}
Expand Down

0 comments on commit 3ba4712

Please sign in to comment.