From 5faa13aab3e5c4a0a20305516778ae51f4dc331e336e319417839a8c579f825d Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 18 Mar 2022 16:42:29 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/trilead-ssh2?expand=0&rev=5 --- trilead-ssh2.changes | 5 +++++ trilead-ssh2.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/trilead-ssh2.changes b/trilead-ssh2.changes index 318e820..8e4bbec 100644 --- a/trilead-ssh2.changes +++ b/trilead-ssh2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 18 16:41:59 UTC 2022 - Fridrich Strba + +- Build with source/target levels 8 + ------------------------------------------------------------------- Tue Apr 16 08:15:30 UTC 2019 - Fridrich Strba diff --git a/trilead-ssh2.spec b/trilead-ssh2.spec index 5ed2088..c064a76 100644 --- a/trilead-ssh2.spec +++ b/trilead-ssh2.spec @@ -1,7 +1,7 @@ # # spec file for package trilead-ssh2 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,7 +27,7 @@ Group: Development/Libraries/Java URL: https://github.com/jenkinsci/trilead-ssh2 Source0: https://github.com/jenkinsci/%{name}/archive/%{name}-build%{buildver}-jenkins-%{patchlvl}.tar.gz BuildRequires: fdupes -BuildRequires: java-devel +BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local BuildArch: noarch @@ -51,10 +51,10 @@ API documentation for %{name}. %build mkdir -p build/classes -javac -d build/classes -source 6 -target 6 $(find src -name \*.java | xargs) +javac -d build/classes -source 8 -target 8 $(find src -name \*.java | xargs) (cd build/classes && jar cf ../%{name}-%{version}.jar $(find . -name \*.class)) mkdir -p build/docs -javadoc -d build/docs -source 6 $(find src -name \*.java | xargs) +javadoc -d build/docs -source 8 $(find src -name \*.java | xargs) %install # jars