Fix the idm-console-framework compilation failure
(cherry picked from commit 65e81e3b1726a53705c2db881e909296c2c90c80)
This commit is contained in:
parent
e0c3506321
commit
fd9a4380e7
@ -4,7 +4,7 @@ URL: https://github.com/dogtagpki/idm-console-framework/
|
|||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
Version: 2.0.0
|
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
|
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: jss >= 5.0 ldapjdk >= 5.0
|
||||||
BuildRequires: java-latest-openjdk-devel ant >= 1.6.2
|
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
|
%autosetup -n idm-console-framework-%{version}%{?_phase} -p 1
|
||||||
|
|
||||||
%build
|
%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} \
|
-Dlib.dir=%{_libdir} \
|
||||||
-Dbuilt.dir=`pwd`/built \
|
-Dbuilt.dir=`pwd`/built \
|
||||||
-Dclassdest=%{_javadir}
|
-Dclassdest=%{_javadir}
|
||||||
@ -34,6 +37,9 @@ install -m644 built/release/jars/idm-console-* $RPM_BUILD_ROOT%{_javadir}
|
|||||||
%{_javadir}/idm-console-nmclf_en.jar
|
%{_javadir}/idm-console-nmclf_en.jar
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Nov 23 2022 caodongxia <caodongxia@h-partners.com> - 2.0.0-2
|
||||||
- Change the JDK version
|
- Change the JDK version
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user