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 3485ec3 commit fa9cd5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldapjdk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ ExclusiveArch: %{java_arches} noarch
# 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+, 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 Down

0 comments on commit fa9cd5e

Please sign in to comment.