Fix build with java 9

OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsch?expand=0&rev=19
This commit is contained in:
Fridrich Strba 2017-09-08 08:30:48 +00:00 committed by Git OBS Bridge
parent e043cd9d19
commit 3b5a11d16e
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- jsch-0.1.54/build.xml 2016-08-30 09:06:39.000000000 +0200
+++ jsch-0.1.54/build.xml 2017-09-08 10:27:56.694518991 +0200
@@ -35,8 +35,8 @@
</available>
<javac srcdir="${src}"
destdir="${build}"
- target="1.4"
- source="1.4"
+ target="1.6"
+ source="1.6"
debug="${javac.debug}">
<classpath refid="lib.path.ref"/>
<exclude name="com/jcraft/jsch/jcraft/Compression.java"

View File

@ -27,6 +27,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip
Source1: MANIFEST.MF
Source2: plugin.properties
Source3: http://repo1.maven.org/maven2/com/jcraft/%{name}/%{version}/%{name}-%{version}.pom
Patch0: jsch-0.1.54-sourcetarget.patch
BuildRequires: ant
BuildRequires: java-devel >= 1.6.0
BuildRequires: javapackages-local
@ -63,6 +64,7 @@ functionality into your own Java programs.
%prep
%setup -q
%patch0 -p1
%build
export CLASSPATH=$(build-classpath jzlib)