Accepting request 528668 from home:NMoreyChaisemartin:branches:science:HPC

- Update embedded gradle binaries to 3.2 to support JDK9
- Add opa-fmgui-fix-build-for-JDK9-Gradle-3.2.patch to fix 
  compilation with JDK9

OBS-URL: https://build.opensuse.org/request/show/528668
OBS-URL: https://build.opensuse.org/package/show/science:HPC/opa-fmgui?expand=0&rev=35
This commit is contained in:
Nicolas Morey-Chaisemartin
2017-09-25 15:06:08 +00:00
committed by Git OBS Bridge
parent 78bfec13af
commit 3066af742b
5 changed files with 42 additions and 5 deletions

View File

@@ -24,7 +24,7 @@
%define appfolder opa-fmgui
%define appjar opa-fmgui.jar
%define _binary_payload w9.gzdio
%define gradle_version 2.9
%define gradle_version 3.2
Name: opa-fmgui
Version: 10.1.0.0.115
@@ -77,6 +77,7 @@ Patch3: opa-fmgui-intel-manifest-license.patch
# Patch auto extracted by service
Patch5: stl-14927-jgraphx-update.patch
Patch6: manifest-version.patch
Patch7: opa-fmgui-fix-build-for-JDK9-Gradle-3.2.patch
BuildRequires: ant
BuildRequires: jre >= 1.7
@@ -102,12 +103,13 @@ script fmgui.
%patch3 -p1
%patch5 -p1
%patch6 -p1
%patch7
%build
(cd %{_tmppath}; rm -Rf gradle-%{gradle_version}; unzip %{_sourcedir}/gradle-%{gradle_version}-bin.zip)
GRADLE_LIB_DIR=%{_sourcedir}
export GRADLE_LIB_DIR
%{_tmppath}/gradle-%{gradle_version}/bin/gradle copyDeps build --info
%{_tmppath}/gradle-%{gradle_version}/bin/gradle copyDeps buildOPA --info
%install
mkdir -p %{buildroot}%{_javadir}/%{appfolder}