From 6af10b4210445934e428d23430f0e1f8879b4218 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 2 Nov 2021 18:44:59 +0100 Subject: [PATCH] Fix build with OpenJDK 17 --- jakarta-mail.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jakarta-mail.spec b/jakarta-mail.spec index d8ad05b..cbecb87 100644 --- a/jakarta-mail.spec +++ b/jakarta-mail.spec @@ -1,6 +1,6 @@ Name: jakarta-mail Version: 1.6.5 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Jakarta Mail API License: EPL-2.0 or GPLv2 with exceptions URL: https://github.com/eclipse-ee4j/mail @@ -47,6 +47,9 @@ protocol-independent framework to build mail and messaging applications. sed -i "s/\${mail\.osgiversion}/%{version}/g" mail/pom.xml sed -i "s/\${mail\.osgiversion}/%{version}/g" mailapi/pom.xml +# -Werror is considered harmful +sed -i "/-Werror/d" mail/pom.xml + # add aliases for old maven artifact coordinates %mvn_alias com.sun.mail:mailapi \ javax.mail:mailapi @@ -76,6 +79,9 @@ sed -i "s/\${mail\.osgiversion}/%{version}/g" mailapi/pom.xml %doc README.md %changelog +* Tue Nov 02 2021 Mikolaj Izdebski - 1.6.5-5 +- Fix build with OpenJDK 17 + * Thu Jul 22 2021 Fedora Release Engineering - 1.6.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild