From 974a6f21e1d422b4bb32675771b2f059f75acc9e Mon Sep 17 00:00:00 2001 From: Chris Kelley Date: Fri, 10 Mar 2023 15:47:28 +0000 Subject: [PATCH] Update to depend on Java 11 In the past it looks like it was necessary to set Java 8 but it no longer appears to be the case. Resolves: #2176827 --- jdeparser.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/jdeparser.spec b/jdeparser.spec index ab4673d..92e8c7e 100644 --- a/jdeparser.spec +++ b/jdeparser.spec @@ -3,16 +3,16 @@ Name: jdeparser Version: 2.0.3 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Source generator library for Java License: ASL 2.0 URL: https://github.com/jdeparser/jdeparser2 # old repos https://github.com/jdeparser/jdeparser Source0: %{url}/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz -Patch: 0001-Fix-build-error-depending-on-class-removed-in-Java-1.patch +Patch1: 0001-Fix-build-error-depending-on-class-removed-in-Java-1.patch BuildArch: noarch -BuildRequires: java-1.8.0-openjdk-devel +BuildRequires: java-11-openjdk-devel BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.jboss:jboss-parent:pom:) @@ -31,11 +31,9 @@ This package contains the API documentation for %{name}. %prep %setup -q -n jdeparser2-%{namedversion} -%patch -p1 +%patch1 -p1 %build -# Use Java 8 as sun.reflect.Reflection is removed in Java 11. -export JAVA_HOME=%{_jvmdir}/java-1.8.0 %mvn_build %install @@ -48,6 +46,9 @@ export JAVA_HOME=%{_jvmdir}/java-1.8.0 %license LICENSE.txt %changelog +* Fri Mar 10 2023 Red Hat PKI Team 2.0.3-13 +- Bug 2176827 - [RHEL9][FTBFS]: jdeparser-2.0.3-12.el9 + * Tue Aug 17 2021 Red Hat PKI Team 2.0.3-9 - Bug 1981014 - jdeparser: FTBFS due to access to internal class sun.reflect.Reflection