From b50f5bd6da084acbd6f0711e5a1bf58bb142a737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20R=2E=20Pietraszczyk?= Date: Sat, 21 Sep 2024 20:50:32 +0200 Subject: Spec file fix --- desktop/samegame/RPM/samegame.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'desktop') 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 -- cgit v1.2.3