Skip to content

Commit

Permalink
Use Java 21 on RHEL 10
Browse files Browse the repository at this point in the history
  • Loading branch information
gnu-andrew authored and edewata committed Aug 28, 2024
1 parent 0f352ec commit 848846d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jss.spec
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ ExcludeArch: i686
# Java
################################################################################

%if 0%{?rhel}
%if 0%{?rhel} && 0%{?rhel} <= 9

%define java_devel java-17-openjdk-devel
%define java_headless java-17-openjdk-headless
%define java_home %{_jvmdir}/jre-17-openjdk

%else

# Use Java 21 on Fedora 40+
# Use Java 21 on Fedora 40+ and RHEL 10, otherwise use Java 17.
%global java_devel java-devel >= 1:17
%global java_headless java-headless >= 1:17

Expand Down

0 comments on commit 848846d

Please sign in to comment.