!8 [sync] PR-7: Fix the idm-console-framework compilation failure
From: @openeuler-sync-bot Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
9e317101e2
@ -4,7 +4,7 @@ URL: https://github.com/dogtagpki/idm-console-framework/
|
||||
License: LGPLv2
|
||||
BuildArch: noarch
|
||||
Version: 2.0.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Source: https://github.com/dogtagpki/idm-console-framework/archive/v%{version}/idm-console-framework-%{version}.tar.gz
|
||||
BuildRequires: jss >= 5.0 ldapjdk >= 5.0
|
||||
BuildRequires: java-latest-openjdk-devel ant >= 1.6.2
|
||||
@ -16,7 +16,10 @@ A Java Management Console framework used for remote server management.
|
||||
%autosetup -n idm-console-framework-%{version}%{?_phase} -p 1
|
||||
|
||||
%build
|
||||
%{ant} \
|
||||
openjdk_latest_version=`rpm -qi java-latest-openjdk-headless | grep Version | cut -b 15-16`
|
||||
home_path=`ls /usr/lib/jvm | grep java-${openjdk_latest_version}-openjdk-${openjdk_latest_version}`
|
||||
export JAVA_HOME=/usr/lib/jvm/${home_path}
|
||||
ant \
|
||||
-Dlib.dir=%{_libdir} \
|
||||
-Dbuilt.dir=`pwd`/built \
|
||||
-Dclassdest=%{_javadir}
|
||||
@ -34,6 +37,9 @@ install -m644 built/release/jars/idm-console-* $RPM_BUILD_ROOT%{_javadir}
|
||||
%{_javadir}/idm-console-nmclf_en.jar
|
||||
|
||||
%changelog
|
||||
* Tue Nov 29 2022 yaoxin <yaoxin30@h-partners.com> - 2.0.0-3
|
||||
- Fix the idm-console-framework compilation failure
|
||||
|
||||
* Wed Nov 23 2022 caodongxia <caodongxia@h-partners.com> - 2.0.0-2
|
||||
- Change the JDK version
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user