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 23, 2024
1 parent 876aa86 commit 0b10570
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions pki.spec
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,7 @@ ExcludeArch: i686
# Java
################################################################################

%if 0%{?rhel}

%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+, otherwise use Java 17.
# 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 All @@ -83,8 +75,6 @@ ExcludeArch: i686
set_jvm;
echo $JAVA_HOME)

%endif

################################################################################
# Application Server
################################################################################
Expand Down

0 comments on commit 0b10570

Please sign in to comment.