|
|
|
@ -108,21 +108,22 @@ HDF4 java library
|
|
|
|
|
%patch11 -p1 -b .build
|
|
|
|
|
|
|
|
|
|
# Replace jars with system versions
|
|
|
|
|
find -name \*.jar -delete
|
|
|
|
|
# hamcrest-core is obsoleted in hamcrest-2.2
|
|
|
|
|
# Junit tests are failing with junit-4.13.1
|
|
|
|
|
%if 0%{?fedora} > 34
|
|
|
|
|
find . ! -name junit.jar -name "*.jar" -delete
|
|
|
|
|
ln -s %{_javadir}/hamcrest/hamcrest.jar java/lib/hamcrest-core.jar
|
|
|
|
|
%else
|
|
|
|
|
find . -name "*.jar" -delete
|
|
|
|
|
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
|
|
|
|
|
ln -s %{_javadir}/slf4j/simple.jar java/lib/ext/slf4j-simple-1.7.25.jar
|
|
|
|
|
|
|
|
|
|
# Fix test output
|
|
|
|
|
junit_ver=$(sed -n '/<version>/{s/^.*>\([0-9]\.[0-9.]*\)<.*/\1/;p;q}' /usr/share/maven-poms/junit.pom)
|
|
|
|
|
sed -i -e "s/JUnit version .*/JUnit version $junit_ver/" java/test/testfiles/JUnit-*.txt
|
|
|
|
|
%endif
|
|
|
|
|
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
|
|
|
|
|
ln -s %{_javadir}/slf4j/simple.jar java/lib/ext/slf4j-simple-1.7.25.jar
|
|
|
|
|
|
|
|
|
|
## Fix syntax error bacause 'CLASSPATH_ENV=$H4_CLASSPATH' line on epel6 builds
|
|
|
|
|
# Use only if java is disabled
|
|
|
|
@ -266,8 +267,10 @@ make -j1 -C build-static check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.15-6
|
|
|
|
|
* Wed Jul 28 2021 Antonio Trande <sagitter@fedoraproject.org> - 4.2.15-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
- Use bundled junit
|
|
|
|
|
- Fix hamcrest symlinks in Fedora 35+
|
|
|
|
|
|
|
|
|
|
* Sun May 30 2021 Orion Poplawski <orion@nwra.com> - 4.2.15-5
|
|
|
|
|
- Handle junit versions better
|
|
|
|
|