From aed1f4ba8b9849fa597d68effe6983f432cb7ff2 Mon Sep 17 00:00:00 2001 From: Antonio Trande Date: Tue, 27 Jul 2021 18:35:36 +0200 Subject: [PATCH] Undo latest commit| Modify symlink of java/lib/hamcrest-core.jar --- hdf.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hdf.spec b/hdf.spec index 96ce410..a8d2ce0 100644 --- a/hdf.spec +++ b/hdf.spec @@ -40,7 +40,7 @@ BuildRequires: libtirpc-devel BuildRequires: gcc-gfortran, gcc BuildRequires: java-devel BuildRequires: javapackages-tools -BuildRequires: hamcrest hamcrest-core +BuildRequires: hamcrest BuildRequires: junit BuildRequires: slf4j BuildRequires: make @@ -109,7 +109,12 @@ HDF4 java library # Replace jars with system versions find -name \*.jar -delete +# hamcrest-core is obsoleted in hamcrest-2.2 +%if 0%{?fedora} > 34 +ln -s %{_javadir}/hamcrest/hamcrest.jar java/lib/hamcrest-core.jar +%else ln -s %{_javadir}/hamcrest/core.jar java/lib/hamcrest-core.jar +%endif ln -s %{_javadir}/junit.jar java/lib/junit.jar ln -s %{_javadir}/slf4j/api.jar java/lib/slf4j-api-1.7.25.jar ln -s %{_javadir}/slf4j/nop.jar java/lib/ext/slf4j-nop-1.7.25.jar