Accepting request 522254 from Java:packages

Fix build with java 9

OBS-URL: https://build.opensuse.org/request/show/522254
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jsch?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2017-09-13 20:20:50 +00:00 committed by Git OBS Bridge
commit e69eedb3ee
3 changed files with 23 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

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Sep 8 08:31:01 UTC 2017 - fstrba@suse.com
- Added patch:
* jsch-0.1.54-sourcetarget.patch
- Specify java source and target levels to 1.6, in order to
allow building with jdk9
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jun 9 10:59:34 UTC 2017 - tchvatal@suse.com Fri Jun 9 10:59:34 UTC 2017 - tchvatal@suse.com

View File

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