Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rhel-10 and centos-stream-10 #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- centos-stream-8-x86_64
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- centos-stream-10-aarch64
- centos-stream-10-x86_64
- fedora-all-aarch64
- fedora-all-s390x
- fedora-all-x86_64
Expand Down
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