diff --git a/jsch.changes b/jsch.changes index 17acfec..000aeea 100644 --- a/jsch.changes +++ b/jsch.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Apr 29 12:18:36 UTC 2024 - Fridrich Strba + +- The binaries are compatible with java 1.8 + +------------------------------------------------------------------- +Wed Feb 21 10:47:53 UTC 2024 - Gus Kenion + +- Use %patch -P N instead of deprecated %patchN. + ------------------------------------------------------------------- Wed Dec 20 12:47:08 UTC 2023 - Gus Kenion diff --git a/jsch.spec b/jsch.spec index 821aafa..53dd0b6 100644 --- a/jsch.spec +++ b/jsch.spec @@ -16,6 +16,9 @@ # +# The automatic requires would be java-headless >= 9, but the +# binaries are java 8 compatible +%define __requires_exclude java-headless Name: jsch Version: 0.2.15 Release: 0 @@ -36,8 +39,7 @@ BuildRequires: javapackages-local >= 6 BuildRequires: jna BuildRequires: jna-contrib BuildRequires: slf4j -# The jar still works with Java 8 -Requires: java >= 1.8 +Requires: java-headless >= 1.8 BuildArch: noarch %description @@ -71,14 +73,14 @@ cp %{SOURCE1} build.xml %pom_remove_dep com.kohlschutter.junixsocket: rm -f \ src/main/java/com/jcraft/jsch/JUnixSocketFactory.java -%patch0 -p1 +%patch -P 0 -p1 # Do not depend on log4j %pom_remove_dep org.apache.logging.log4j: rm -f \ src/main/java/com/jcraft/jsch/Log4j2Logger.java \ src/test/java/com/jcraft/jsch/Log4j2LoggerTest.java -%patch1 -p1 +%patch -P 1 -p1 %build mkdir -p lib