From 0b3d9d8bad8611a5f34e18581b0dbf1fa20801ed Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Mon, 4 Dec 2023 14:54:49 +0300 Subject: [PATCH] Fixed the build failure --- SOURCES/0001-Fixed-the-build-failure.patch | 34 ++++++++++++++++++++++ SPECS/jdeparser.spec | 10 +++++-- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 SOURCES/0001-Fixed-the-build-failure.patch diff --git a/SOURCES/0001-Fixed-the-build-failure.patch b/SOURCES/0001-Fixed-the-build-failure.patch new file mode 100644 index 0000000..b0cd6d0 --- /dev/null +++ b/SOURCES/0001-Fixed-the-build-failure.patch @@ -0,0 +1,34 @@ +From ba54939f91df70a046c19c73f52f4e0d3ed7dc0b Mon Sep 17 00:00:00 2001 +From: Sergey Cherevko +Date: Mon, 4 Dec 2023 13:37:20 +0300 +Subject: [PATCH] Fixed the build failure + +--- + src/main/java/org/jboss/jdeparser/Assertions.java | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/main/java/org/jboss/jdeparser/Assertions.java b/src/main/java/org/jboss/jdeparser/Assertions.java +index 017c645..ca9b1a1 100644 +--- a/src/main/java/org/jboss/jdeparser/Assertions.java ++++ b/src/main/java/org/jboss/jdeparser/Assertions.java +@@ -18,7 +18,7 @@ + + package org.jboss.jdeparser; + +-import sun.reflect.Reflection; ++//import sun.reflect.Reflection; + + /** + * @author David M. Lloyd +@@ -26,7 +26,7 @@ import sun.reflect.Reflection; + class Assertions { + static boolean callerIs(Class clazz) { + try { +- return Reflection.getCallerClass(3) == clazz; ++ // return Reflection.getCallerClass(3) == clazz; + } catch (Throwable ignored) {} + // dunno + return true; +-- +2.39.3 + diff --git a/SPECS/jdeparser.spec b/SPECS/jdeparser.spec index 3e39531..b00b947 100644 --- a/SPECS/jdeparser.spec +++ b/SPECS/jdeparser.spec @@ -3,12 +3,14 @@ Name: jdeparser Version: 2.0.0 -Release: 5%{?dist} +Release: 5%{?dist}.inferit Summary: Source generator library for Java License: ASL 2.0 URL: https://github.com/jdeparser/jdeparser2 # old repos https://github.com/jdeparser/jdeparser Source0: https://github.com/jdeparser/jdeparser2/archive/%{namedversion}.tar.gz +# MSVSphere +Patch100: 0001-Fixed-the-build-failure.patch BuildArch: noarch BuildRequires: maven-local @@ -29,10 +31,11 @@ This package contains the API documentation for %{name}. %prep %setup -q -n jdeparser2-%{namedversion} +%patch100 -p1 %pom_remove_plugin :maven-javadoc-plugin %build -%mvn_build +%mvn_build -f %install %mvn_install @@ -44,7 +47,8 @@ This package contains the API documentation for %{name}. %license LICENSE.txt %changelog -* Wed Jul 26 2023 MSVSphere Packaging Team - 2.0.0-5 +* Mon Dec 04 2023 Sergey Cherevko - 2.0.0-5.inferit +- Fixed the build failure - Rebuilt for MSVSphere 8.8 * Wed May 30 2018 Mikolaj Izdebski - 2.0.0-5