summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/samegame/RPM/samegame.spec15
1 files changed, 11 insertions, 4 deletions
diff --git a/desktop/samegame/RPM/samegame.spec b/desktop/samegame/RPM/samegame.spec
index b3a1dbf..8dc2bbc 100644
--- a/desktop/samegame/RPM/samegame.spec
+++ b/desktop/samegame/RPM/samegame.spec
@@ -23,13 +23,20 @@ Summary: My implementation Same Game
License: GPL
URL: https://pietraszczyk.smallhost.pl
Source0: %{name}-%{unmangled_version}.tar.gz
-%if 0%{?suse_version}==1530
+
+%if 0%{?suse_version} > 1600
+BuildRequires: java-21-openjdk, ant
+Requires: java-21-openjdk
+%endif
+%if 0%{?sle_version} >= 150400 && 0%{?is_opensuse}
BuildRequires: java-11-openjdk, ant
Requires: java-11-openjdk
-%else
-BuildRequires: java-11-openjdk, ant
-Requires: java-11-openjdk
%endif
+%if 0%{?fedora} >= 37
+BuildRequires: java-latest-openjdk, ant
+Requires: java-latest-openjdk
+%endif
+
BuildArch: noarch
%description