!26 [sync] PR-13: Fix build failure due to openjdk introduced a incomplete patch

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-04-10 09:18:46 +00:00 committed by Gitee
commit 965289197e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global reldate 20170915
Name: apache-poi
Version: 3.17
Release: 2
Release: 3
Summary: The Java API for Microsoft Documents
License: ASL 2.0 and (CC-BY and CC-BY-SA and W3C) and GPLv3
URL: http://poi.apache.org/
@ -94,6 +94,8 @@ rm src/ooxml/testcases/org/apache/poi/sl/TestFonts.java
rm -f src/ooxml/testcases/org/apache/poi/xssf/streaming/TestAutoSizeColumnTracker.java
rm -f src/ooxml/testcases/org/apache/poi/xssf/streaming/TestSXSSFSheet.java
rm -f src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSignatureInfo.java
sed -i '/testPPTX/,+15d;:go;1,1!{P;N;D};N;bgo' src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java
sed -i '$d' src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java
%build
cat > build.properties <<'EOF'
@ -134,6 +136,9 @@ done
%license LICENSE NOTICE
%changelog
* Mon Dec 18 2023 Ge Wang <wang__ge@126.com> - 3.17-3
- Fix build failure due to openjdk introduced a incomplete patch
* Tue Dec 1 2020 huanghaitao <huanghaitao8@huawei.com> - 3.17-2
- Fix CVE-2019-12415