!36 [sync] PR-25: update java source for fix build failed

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-10-10 03:32:48 +00:00 committed by Gitee
commit ff3b8251f5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,12 +1,12 @@
Name: gnulib
Version: 0
Release: 29.20180720git
Release: 30.20180720git
Summary: The GNU Portability Library
License: Public Domain and BSD and GPLv2+ and GPLv3 and GPLv3+ and LGPLv2 and LGPLv2+ and LGPLv3+
URL: https://www.gnu.org/software/gnulib
Source0: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=snapshot;h=68df637;sf=tgz;name=gnulib-68df637.tar.gz#/gnulib-68df637.tar.gz
Patch0: CVE-2018-17942.patch
BuildRequires: perl-generators texinfo java-devel gettext-devel bison gperf libtool help2man git gcc_secure
BuildRequires: perl-generators texinfo java-1.8.0-openjdk-devel gettext-devel bison gperf libtool help2man git gcc_secure
%description
Gnulib is a central location for common GNU code, intended to be
@ -61,7 +61,7 @@ cd build-tests
%make_build
cd -
javac -d lib -source 1.3 -target 1.3 lib/javaversion.java
javac -d lib -source 1.8 -target 1.8 lib/javaversion.java
%make_build MODULES.html
sed -i -r 's#HREF="(lib|m4|modules)#HREF="%{_datadir}/gnulib/\1#g' MODULES.html
sed -i "/^[ ]*gnulib_dir=/s#\`[^\`]*\`#%{_datadir}/gnulib#" gnulib-tool
@ -115,6 +115,10 @@ fi
%license doc/COPYINGv2
%changelog
* Sat Apr 02 2022 konglidong <konglidong@uniontech.com> - 0-30.20180720git
- update java source from 1.3 to 1.8
- modify buildrequires from java-devel to java-1.8.0-openjdk-devel
* Wed Feb 23 2022 yaoxin <yaoxin30@huawei.com> - 0-29.20180720git
- Fix CVE-2018-17942