From 00097492cdbdade6bb97bc8b70e3eb09154888a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20R=2E=20Pietraszczyk?= Date: Sat, 21 Sep 2024 21:00:34 +0200 Subject: Spec file fix --- RPM/kopieckreta.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'RPM') diff --git a/RPM/kopieckreta.spec b/RPM/kopieckreta.spec index 0daa38a..23f3487 100644 --- a/RPM/kopieckreta.spec +++ b/RPM/kopieckreta.spec @@ -15,21 +15,28 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define unmangled_version 0.230924-3 +%define unmangled_version 0.230924-4 Name: kopieckreta Version: 0.230924 -Release: 3 +Release: 4 Summary: My version of the Pyramid of Words 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