From bbc4d90adbadfdf71e37acbc62f215d7527d8431a46167274fe1712eede6cbe5 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 8 Dec 2014 13:11:27 +0000 Subject: [PATCH] Accepting request 264409 from home:fstrba:branches:Java:packages Add Java9 compatibility OBS-URL: https://build.opensuse.org/request/show/264409 OBS-URL: https://build.opensuse.org/package/show/Java:packages/javapackages-tools?expand=0&rev=18 --- javapackages-2.0.1-java9.patch | 11 +++++++++++ javapackages-tools.changes | 9 +++++++++ javapackages-tools.spec | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 javapackages-2.0.1-java9.patch diff --git a/javapackages-2.0.1-java9.patch b/javapackages-2.0.1-java9.patch new file mode 100644 index 0000000..5f55235 --- /dev/null +++ b/javapackages-2.0.1-java9.patch @@ -0,0 +1,11 @@ +--- javapackages-2.0.1/install 2013-07-26 09:25:31.000000000 +0200 ++++ javapackages-2.0.1/install 2014-12-08 14:00:11.726036951 +0100 +@@ -94,7 +94,7 @@ + dir "${rpmconfigdir}/fileattrs" + + +-for ver in 1.5.0 1.6.0 1.7.0 1.8.0; do ++for ver in 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0; do + dir "${javadir}-${ver}" + dir "${jnidir}-${ver}" + done diff --git a/javapackages-tools.changes b/javapackages-tools.changes index 355b40e..ea0f417 100644 --- a/javapackages-tools.changes +++ b/javapackages-tools.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Dec 8 13:02:05 UTC 2014 - fstrba@suse.com + +- Added patch: + * javapackages-2.0.1-java9.patch: create directories for java, + so that ant build works +- Add virtual provide jpackage-utils-java9 to be able to + distinguish the presence of java9 compatibility + ------------------------------------------------------------------- Thu Oct 16 11:12:00 UTC 2014 - Led diff --git a/javapackages-tools.spec b/javapackages-tools.spec index 9944a23..9c4e1d7 100644 --- a/javapackages-tools.spec +++ b/javapackages-tools.spec @@ -37,6 +37,8 @@ Patch1: depgen.patch # PATCH-FIX-SLE maven_depmap-no-attribute-exit.patch - fix ZipFile instance has no attribute '__exit__' Patch2: maven_depmap-no-attribute-exit.patch Patch3: javapackages-2.0.1-fix-bashisms.patch +# PATCH-FIX-OPENSUSE javapackages-2.0.1-java9.patch - add directories for java9 +Patch4: javapackages-2.0.1-java9.patch #BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -57,6 +59,7 @@ Requires: python Requires: python-xml Provides: jpackage-utils = %{version}-%{release} +Provides: jpackage-utils-java9 Obsoletes: jpackage-utils <= 1.7.5 %description @@ -110,6 +113,7 @@ This package provides macros and scripts to support packaging Maven artifacts. %patch2 -p1 %endif %patch3 -p1 +%patch4 -p1 %build %{configure}