From c7308a84590d3370818683ba66f91f0b83fb7800 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jan 2024 23:31:38 +0000 Subject: [PATCH 01/21] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- java-runtime-decompiler.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 225a850..4a2770b 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3 URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -228,6 +228,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog +* Sat Jan 20 2024 Fedora Release Engineering - 9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jan 03 2024 Fedora Release Engineering - 9.1-1 - update dto 9.1 - https://github.com/judovana/java-runtime-decompiler/releases/tag/java-runtime-decompiler-9.1 From fb1a3765b7e164c5652f122b2000f63550cdc2c4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 23:11:28 +0000 Subject: [PATCH 02/21] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- java-runtime-decompiler.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 4a2770b..b8e784e 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3 URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -228,6 +228,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 9.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Sat Jan 20 2024 Fedora Release Engineering - 9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 7e758a0b3fb18aa54b792e03065b9584975c89c1 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 27 Feb 2024 16:11:55 +0100 Subject: [PATCH 03/21] Rebuilt for java-21-openjdk as system jdk https://fedoraproject.org/wiki/Changes/Java21 --- java-runtime-decompiler.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index b8e784e..2665e28 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3 URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -228,6 +228,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog +* Tue Feb 27 2024 Jiri Vanek - 9.1-4 +- Rebuilt for java-21-openjdk as system jdk + * Wed Jan 24 2024 Fedora Release Engineering - 9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 91124edcd32f9d1dcc3f57388b6de2ac89f4c826 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Wed, 28 Feb 2024 17:05:23 +0100 Subject: [PATCH 04/21] adjsuted the unhappy man ual java_home --- java-runtime-decompiler.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 2665e28..a5f6061 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv3 URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -139,7 +139,7 @@ for x in $a ; do done xmvn --version echo $JAVA_HOME -export JAVA_HOME=/usr/lib/jvm/java-17-openjdk #why? +export JAVA_HOME=/usr/lib/jvm/java-21-openjdk #why? xmvn --version %mvn_build -f --xmvn-javadoc -- -Plegacy CPLC=/usr/share/java/classpathless-compiler @@ -228,8 +228,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog -* Tue Feb 27 2024 Jiri Vanek - 9.1-4 +* Tue Feb 27 2024 Jiri Vanek - 9.1-5 - Rebuilt for java-21-openjdk as system jdk +- adjsuted the unhappy man ual java_home * Wed Jan 24 2024 Fedora Release Engineering - 9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From a185174e7d3ccba414cd7427d8f9cb786a27a6cb Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 22 May 2024 16:12:52 +0200 Subject: [PATCH 05/21] Add Requires on javapackages-tools --- java-runtime-decompiler.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index a5f6061..cb8f8c8 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv3 URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -45,7 +45,7 @@ BuildRequires: classpathless-compiler Requires: google-gson Requires: byteman Requires: rsyntaxtextarea -Requires: java-headless +Requires: javapackages-tools Requires: classpathless-compiler Requires: java-diff-utils Recommends: java @@ -228,6 +228,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog +* Wed May 22 2024 Marian Koncek - 9.1-6 +- Add Requires on javapackages-tools + * Tue Feb 27 2024 Jiri Vanek - 9.1-5 - Rebuilt for java-21-openjdk as system jdk - adjsuted the unhappy man ual java_home From e2ade0a80c11dadccb7ae4b2e958576bc7357f95 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 22 May 2024 16:13:19 +0200 Subject: [PATCH 06/21] Use modern %patch --- java-runtime-decompiler.spec | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index cb8f8c8..efe47da 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -109,20 +109,20 @@ This package provides bindings and requirements to asmtools7 disassembler and as %prep %setup -q -n %{name}-%{name}-%{version} -%patch1 -p0 -%patch2 -p0 -%patch21 -p0 -%patch3 -p0 -%patch4 -p0 -%patch5 -p0 -%patch51 -p0 -%patch52 -p0 -%patch53 -p0 -%patch6 -p0 -%patch61 -p0 -%patch62 -p0 -%patch63 -p0 -%patch7 -p1 +%patch 1 -p0 +%patch 2 -p0 +%patch 21 -p0 +%patch 3 -p0 +%patch 4 -p0 +%patch 5 -p0 +%patch 51 -p0 +%patch 52 -p0 +%patch 53 -p0 +%patch 6 -p0 +%patch 61 -p0 +%patch 62 -p0 +%patch 63 -p0 +%patch 7 -p1 %build pushd runtime-decompiler From 727ea4320b35652861b4eb95a41781aa42a6c58a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 10:51:59 +0000 Subject: [PATCH 07/21] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- java-runtime-decompiler.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index efe47da..7d8afa4 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv3 URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -228,6 +228,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 9.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Wed May 22 2024 Marian Koncek - 9.1-6 - Add Requires on javapackages-tools From 3615ff4b1da4323cac02dd912815da90e34d56f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 29 Jul 2024 14:06:46 +0200 Subject: [PATCH 08/21] convert GPLv3 license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- java-runtime-decompiler.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 7d8afa4..355a415 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,8 +1,9 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 7%{?dist} -License: GPLv3 +Release: 8%{?dist} +# Automatically converted from old format: GPLv3 - review is highly recommended. +License: GPL-3.0-only URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz Source1: %{name} @@ -228,6 +229,9 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog +* Mon Jul 29 2024 Miroslav Suchý - 9.1-8 +- convert license to SPDX + * Thu Jul 18 2024 Fedora Release Engineering - 9.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 8cffe2fa212881a2936ac2cdf01b9a5b18f472b1 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Thu, 19 Sep 2024 14:13:00 +0200 Subject: [PATCH 09/21] Use %autorelease and %autochangelog --- changelog | 148 ++++++++++++++++++++++++++++++++++ java-runtime-decompiler.spec | 151 +---------------------------------- 2 files changed, 150 insertions(+), 149 deletions(-) create mode 100644 changelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..c8aaa6a --- /dev/null +++ b/changelog @@ -0,0 +1,148 @@ +* Mon Jul 29 2024 Miroslav Suchý - 9.1-8 +- convert license to SPDX + +* Thu Jul 18 2024 Fedora Release Engineering - 9.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed May 22 2024 Marian Koncek - 9.1-6 +- Add Requires on javapackages-tools + +* Tue Feb 27 2024 Jiri Vanek - 9.1-5 +- Rebuilt for java-21-openjdk as system jdk +- adjsuted the unhappy man ual java_home + +* Wed Jan 24 2024 Fedora Release Engineering - 9.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jan 03 2024 Fedora Release Engineering - 9.1-1 +- update dto 9.1 +- https://github.com/judovana/java-runtime-decompiler/releases/tag/java-runtime-decompiler-9.1 +- https://github.com/judovana/java-runtime-decompiler/releases/tag/java-runtime-decompiler-9.0 + +* Fri Oct 13 2023 Fedora Release Engineering - 8.0-1 +- update dto 8.0 +- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-8.0 + +* Thu Jul 20 2023 Fedora Release Engineering - 7.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Fedora Release Engineering - 7.3-2 +- added 2b99a244b592445962cdd15ca33f80449f9aa2ea.patch to fix compiler issue in jrd window + +* Fri Jun 30 2023 Fedora Release Engineering - 7.3-1 +- moved to 7.3 +- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.3 +- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.2 + +* Wed Mar 15 2023 Fedora Release Engineering - 7.1-1 +- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.1 +- moved to jrd 7.1 +- added desp on java-diff and new cplc +- fixed(?) procyon wrapper + - todo procyon crashes witout trace +- removed jd wrapper (was new in 7.1, maybe will be added) +- split plugins to subpkgs +- added jrd-hex launcher +- added hex launcher, added jrd symlinks + +* Thu Jul 21 2022 Fedora Release Engineering - 6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jul 08 2022 Jiri Vanek - 6.1-4 +- Rebuilt for Drop i686 JDKs + +* Sat Feb 05 2022 Jiri Vanek - 6.1-3 +- Rebuilt for java-17-openjdk as system jdk + +* Thu Jan 20 2022 Fedora Release Engineering - 6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Dec 26 2021 Fedora Release Engineering - 6.0.0.pre.3-1 +- bumped sources to upstream rc candidate + +* Sun Dec 26 2021 Fedora Release Engineering - 6.0.0.pre.2-1 +- bumped sources to upstream pre release + +* Thu Aug 12 2021 Fedora Release Engineering - 6.0.0.pre.1-1 +- umped sources to upstream pre release +- adapted jcoder plugin +- todo, patch for removed plugins + +* Thu Aug 12 2021 Fedora Release Engineering - 5.1-1 +- bumped to final sources + +* Mon Aug 09 2021 Fedora Release Engineering - 5.0.rc1-1 +- adapted manpage + +* Mon Aug 02 2021 Fedora Release Engineering - 5.0.beta2-1 +- updated to 5.0 +- removed jdk8 subpkg due to compiler api +- added Cfr and asmtools plugins +- todo man page + +* Thu Jul 22 2021 Fedora Release Engineering - 4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 08 2020 Jiri Vanek - 4.0-2 +- Added subpackage built by jdk8 to allow looking into jdk8 apps +- for some reason, jdk8 vm can not look into jdk11 vm, even if agent is correctly jdk8 version +- the config is still share, which is stupid, but I doubt there is another target audeince then me + +* Tue Dec 08 2020 Jiri Vanek - 4.0-1 +- built by jdk11 + +* Tue Jul 28 2020 Fedora Release Engineering - 3.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Jiri Vanek - 3.0-8 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Tue Mar 17 2020 Jiri Vanek - 3.0-7 +- aligned rsyntaxtextarea version, fixed javadoc generation + +* Tue Mar 17 2020 Jiri Vanek - 3.0-6 +- changed jdk8 requirement + +* Wed Jan 29 2020 Fedora Release Engineering - 3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Aug 27 2019 Jiri Vanek - 3.0-3 +- all stdouts from customlauncher moved to stderr + +* Mon Aug 26 2019 Jiri Vanek - 3.0-0 +- moved to usptream version 3.0 +- adjusted configs, removed lambda patch + +* Thu Jul 25 2019 Fedora Release Engineering - 2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 17 2019 Jiri Vanek - 2.0-5 +- improved Patch3, includeLambdas.patch to sort the lamdas t the bottom + +* Thu Jan 17 2019 Jiri Vanek - 2.0-4 +- added depndence of procyon decompiler (currenlty under review +- added and applied Patch2, systemProcyon.patch to enable system procyon out of thebox +- added and applied Patch3, includeLambdas.patch to at least list lamdas untill fixed in upstream + +* Thu Jan 10 2019 Jiri Vanek - 2.0-3 +- added depndence of fernflower decompiler +- added and applied Patch1, systemFernflower.patch to enable system fernflower + +* Wed Nov 28 2018 Petra Mikova - 2.0-2 +- fixed changelog + +* Mon Nov 19 2018 Petra Mikova - 2.0-1 +- fixed issues listed in review (rhbz#1636019) +- added installation of desktop file + +* Wed Jun 06 2018 Petra Mikova - 1.1-1 +- initial commit diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 355a415..5e344f8 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 9.1 -Release: 8%{?dist} +Release: %autorelease # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: https://github.com/pmikova/java-runtime-decompiler @@ -229,151 +229,4 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %license LICENSE %changelog -* Mon Jul 29 2024 Miroslav Suchý - 9.1-8 -- convert license to SPDX - -* Thu Jul 18 2024 Fedora Release Engineering - 9.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Wed May 22 2024 Marian Koncek - 9.1-6 -- Add Requires on javapackages-tools - -* Tue Feb 27 2024 Jiri Vanek - 9.1-5 -- Rebuilt for java-21-openjdk as system jdk -- adjsuted the unhappy man ual java_home - -* Wed Jan 24 2024 Fedora Release Engineering - 9.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jan 20 2024 Fedora Release Engineering - 9.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Wed Jan 03 2024 Fedora Release Engineering - 9.1-1 -- update dto 9.1 -- https://github.com/judovana/java-runtime-decompiler/releases/tag/java-runtime-decompiler-9.1 -- https://github.com/judovana/java-runtime-decompiler/releases/tag/java-runtime-decompiler-9.0 - -* Fri Oct 13 2023 Fedora Release Engineering - 8.0-1 -- update dto 8.0 -- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-8.0 - -* Thu Jul 20 2023 Fedora Release Engineering - 7.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Tue Jul 11 2023 Fedora Release Engineering - 7.3-2 -- added 2b99a244b592445962cdd15ca33f80449f9aa2ea.patch to fix compiler issue in jrd window - -* Fri Jun 30 2023 Fedora Release Engineering - 7.3-1 -- moved to 7.3 -- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.3 -- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.2 - -* Wed Mar 15 2023 Fedora Release Engineering - 7.1-1 -- https://github.com/pmikova/java-runtime-decompiler/releases/tag/java-runtime-decompiler-7.1 -- moved to jrd 7.1 -- added desp on java-diff and new cplc -- fixed(?) procyon wrapper - - todo procyon crashes witout trace -- removed jd wrapper (was new in 7.1, maybe will be added) -- split plugins to subpkgs -- added jrd-hex launcher -- added hex launcher, added jrd symlinks - -* Thu Jul 21 2022 Fedora Release Engineering - 6.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Fri Jul 08 2022 Jiri Vanek - 6.1-4 -- Rebuilt for Drop i686 JDKs - -* Sat Feb 05 2022 Jiri Vanek - 6.1-3 -- Rebuilt for java-17-openjdk as system jdk - -* Thu Jan 20 2022 Fedora Release Engineering - 6.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Sun Dec 26 2021 Fedora Release Engineering - 6.0.0.pre.3-1 -- bumped sources to upstream rc candidate - -* Sun Dec 26 2021 Fedora Release Engineering - 6.0.0.pre.2-1 -- bumped sources to upstream pre release - -* Thu Aug 12 2021 Fedora Release Engineering - 6.0.0.pre.1-1 -- umped sources to upstream pre release -- adapted jcoder plugin -- todo, patch for removed plugins - -* Thu Aug 12 2021 Fedora Release Engineering - 5.1-1 -- bumped to final sources - -* Mon Aug 09 2021 Fedora Release Engineering - 5.0.rc1-1 -- adapted manpage - -* Mon Aug 02 2021 Fedora Release Engineering - 5.0.beta2-1 -- updated to 5.0 -- removed jdk8 subpkg due to compiler api -- added Cfr and asmtools plugins -- todo man page - -* Thu Jul 22 2021 Fedora Release Engineering - 4.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jan 26 2021 Fedora Release Engineering - 4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Dec 08 2020 Jiri Vanek - 4.0-2 -- Added subpackage built by jdk8 to allow looking into jdk8 apps -- for some reason, jdk8 vm can not look into jdk11 vm, even if agent is correctly jdk8 version -- the config is still share, which is stupid, but I doubt there is another target audeince then me - -* Tue Dec 08 2020 Jiri Vanek - 4.0-1 -- built by jdk11 - -* Tue Jul 28 2020 Fedora Release Engineering - 3.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Jul 10 2020 Jiri Vanek - 3.0-8 -- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 - -* Tue Mar 17 2020 Jiri Vanek - 3.0-7 -- aligned rsyntaxtextarea version, fixed javadoc generation - -* Tue Mar 17 2020 Jiri Vanek - 3.0-6 -- changed jdk8 requirement - -* Wed Jan 29 2020 Fedora Release Engineering - 3.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Tue Aug 27 2019 Jiri Vanek - 3.0-3 -- all stdouts from customlauncher moved to stderr - -* Mon Aug 26 2019 Jiri Vanek - 3.0-0 -- moved to usptream version 3.0 -- adjusted configs, removed lambda patch - -* Thu Jul 25 2019 Fedora Release Engineering - 2.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering - 2.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Thu Jan 17 2019 Jiri Vanek - 2.0-5 -- improved Patch3, includeLambdas.patch to sort the lamdas t the bottom - -* Thu Jan 17 2019 Jiri Vanek - 2.0-4 -- added depndence of procyon decompiler (currenlty under review -- added and applied Patch2, systemProcyon.patch to enable system procyon out of thebox -- added and applied Patch3, includeLambdas.patch to at least list lamdas untill fixed in upstream - -* Thu Jan 10 2019 Jiri Vanek - 2.0-3 -- added depndence of fernflower decompiler -- added and applied Patch1, systemFernflower.patch to enable system fernflower - -* Wed Nov 28 2018 Petra Mikova - 2.0-2 -- fixed changelog - -* Mon Nov 19 2018 Petra Mikova - 2.0-1 -- fixed issues listed in review (rhbz#1636019) -- added installation of desktop file - -* Wed Jun 06 2018 Petra Mikova - 1.1-1 -- initial commit +%autochangelog From 4cd54af8429c7c32cca9b90017eff42d9734b920 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 18 Sep 2024 14:50:02 +0200 Subject: [PATCH 10/21] Use java annotation removal tool --- java-runtime-decompiler.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 5e344f8..831f745 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -43,6 +43,7 @@ BuildRequires: java-devel BuildRequires: google-gson BuildRequires: desktop-file-utils BuildRequires: classpathless-compiler +BuildRequires: jurand Requires: google-gson Requires: byteman Requires: rsyntaxtextarea @@ -125,6 +126,8 @@ This package provides bindings and requirements to asmtools7 disassembler and as %patch 63 -p0 %patch 7 -p1 +%java_remove_annotations decompiler_agent runtime-decompiler -s -n SuppressFBWarnings + %build pushd runtime-decompiler %pom_remove_plugin :maven-jar-plugin @@ -133,11 +136,6 @@ popd %pom_remove_plugin :maven-checkstyle-plugin %pom_remove_plugin :formatter-maven-plugin %pom_remove_dep :spotbugs-annotations -a=`find | grep ".*\.java$"` -for x in $a ; do - #grep -e ".*SuppressFBWarnings.*" $x && echo "^ $x ^" - sed "s/.*SuppressFBWarnings.*//g" $x -i -done xmvn --version echo $JAVA_HOME export JAVA_HOME=/usr/lib/jvm/java-21-openjdk #why? From f8a531eaf605f483872a9d324d4d8888abde0b96 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 07:42:10 +0000 Subject: [PATCH 11/21] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 9c25d6b6e32b2cec9de6cebb3298df20919a1d9a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 17:55:58 +0000 Subject: [PATCH 12/21] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From cf5e8ddab8af656fb5a377a0129c7e87ef956c34 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 29 Jul 2025 21:21:41 +0200 Subject: [PATCH 13/21] Rebuilt for java-25-openjdk as preffered jdk https://fedoraproject.org/wiki/Changes/Java25AndNoMoreSystemJdk Note, that since f43, you should be always explicit on what jdk to use. This commit should do exactly that. --- java-runtime-decompiler.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 831f745..d472796 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -26,7 +26,7 @@ Patch7: removeMultilineSpotbugs.patch BuildArch: noarch ExclusiveArch: %{java_arches} noarch -BuildRequires: maven-local +BuildRequires: maven-local-openjdk25 BuildRequires: byteman BuildRequires: rsyntaxtextarea BuildRequires: junit5 @@ -39,7 +39,7 @@ BuildRequires: maven-surefire-provider-junit5 BuildRequires: maven-surefire BuildRequires: maven-surefire-plugin BuildRequires: maven-clean-plugin -BuildRequires: java-devel +BuildRequires: java-25-devel BuildRequires: google-gson BuildRequires: desktop-file-utils BuildRequires: classpathless-compiler From 5754bd242e68be5f479a30d2661a88e5924461b1 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 4 Sep 2025 10:03:50 +0200 Subject: [PATCH 14/21] manual bodhi update for jdk25 needed on selected pkgs From 82a7cfd6d0b10312f356584dadb0e17517152866 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 4 Sep 2025 10:12:35 +0200 Subject: [PATCH 15/21] Removed java home --- java-runtime-decompiler.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index d472796..5b4bc5e 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -137,8 +137,8 @@ popd %pom_remove_plugin :formatter-maven-plugin %pom_remove_dep :spotbugs-annotations xmvn --version -echo $JAVA_HOME -export JAVA_HOME=/usr/lib/jvm/java-21-openjdk #why? +#echo $JAVA_HOME +#export JAVA_HOME=/usr/lib/jvm/java-25-openjdk #why? xmvn --version %mvn_build -f --xmvn-javadoc -- -Plegacy CPLC=/usr/share/java/classpathless-compiler From 292215c478c53cae3982d67d8c9593ccda19fec2 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Sun, 19 Oct 2025 16:40:52 +0200 Subject: [PATCH 16/21] Moved to 10.0 and made buildable. Runteim tests ahead --- .gitignore | 1 + java-runtime-decompiler.spec | 35 ++++++++----------- removeMultilineSpotbugs.patch | 65 ----------------------------------- rsyntaxVersion.patch | 4 +-- sources | 2 +- systemCfr.patch | 2 +- systemFernflower.patch | 2 +- systemJasm.patch | 2 +- systemJasmG.patch | 2 +- systemJcoder.patch | 2 +- systemJcoderG.patch | 2 +- systemProcyon.patch | 4 +-- systemProcyonAssembler.patch | 4 +-- 13 files changed, 29 insertions(+), 98 deletions(-) delete mode 100644 removeMultilineSpotbugs.patch diff --git a/.gitignore b/.gitignore index c37ccde..b19ba68 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /java-runtime-decompiler-7.3.tar.gz /java-runtime-decompiler-8.0.tar.gz /java-runtime-decompiler-9.1.tar.gz +/java-runtime-decompiler-10.0.tar.gz diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 5b4bc5e..b906b8c 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,8 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler -Version: 9.1 +Version: 10.0 Release: %autorelease -# Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -22,7 +21,6 @@ Patch6: systemJcoder.patch Patch61: systemJcoder7.patch Patch62: systemJcoderG.patch Patch63: systemJcoderG7.patch -Patch7: removeMultilineSpotbugs.patch BuildArch: noarch ExclusiveArch: %{java_arches} noarch @@ -31,8 +29,6 @@ BuildRequires: byteman BuildRequires: rsyntaxtextarea BuildRequires: junit5 BuildRequires: ant-junit5 -BuildRequires: junit -BuildRequires: ant-junit BuildRequires: java-diff-utils BuildRequires: maven-surefire-provider-junit BuildRequires: maven-surefire-provider-junit5 @@ -111,22 +107,21 @@ This package provides bindings and requirements to asmtools7 disassembler and as %prep %setup -q -n %{name}-%{name}-%{version} -%patch 1 -p0 -%patch 2 -p0 -%patch 21 -p0 -%patch 3 -p0 -%patch 4 -p0 -%patch 5 -p0 -%patch 51 -p0 -%patch 52 -p0 -%patch 53 -p0 -%patch 6 -p0 -%patch 61 -p0 -%patch 62 -p0 -%patch 63 -p0 -%patch 7 -p1 +%patch -P1 -p0 +%patch -P2 -p0 +%patch -P21 -p0 +%patch -P3 -p0 +%patch -P4 -p0 +%patch -P5 -p0 +%patch -P51 -p0 +%patch -P52 -p0 +%patch -P53 -p0 +%patch -P6 -p0 +%patch -P61 -p0 +%patch -P62 -p0 +%patch -P63 -p0 -%java_remove_annotations decompiler_agent runtime-decompiler -s -n SuppressFBWarnings +jurand -i -s -a -n SuppressFBWarnings decompiler_agent runtime-decompiler %build pushd runtime-decompiler diff --git a/removeMultilineSpotbugs.patch b/removeMultilineSpotbugs.patch deleted file mode 100644 index f8ddbb9..0000000 --- a/removeMultilineSpotbugs.patch +++ /dev/null @@ -1,65 +0,0 @@ ---- a/runtime-decompiler/src/main/java/org/jrd/backend/core/DecompilerRequestReceiver.java -+++ a/runtime-decompiler/src/main/java/org/jrd/backend/core/XDecompilerRequestReceiver.java -@@ -262,10 +262,6 @@ - private static class ClassesComparator implements Comparator, Serializable { - - @SuppressWarnings({"ReturnCount", "CyclomaticComplexity"}) // comparator syntax -- @SuppressFBWarnings( -- value = "NP_NULL_ON_SOME_PATH_MIGHT_BE_INFEASIBLE", -- justification = "False report of possible NP dereference, despite testing both o1 & o2 for nullness." -- ) - @Override - public int compare(ClassInfo c1, ClassInfo c2) { - if (c1 == null && c2 == null) { ---- a/runtime-decompiler/src/main/java/org/jrd/backend/data/VmInfo.java -+++ a/runtime-decompiler/src/main/java/org/jrd/backend/data/XVmInfo.java -@@ -112,10 +112,6 @@ - this.type = local; - } - -- @SuppressFBWarnings( -- value = "NP_LOAD_OF_KNOWN_NULL_VALUE", -- justification = "Classpath is only used for FS VMs, in other cases getCp() does not get called" -- ) - public void setCp(List cp) { - if (cp == null) { - this.cp = null; ---- a/runtime-decompiler/src/test/java/org/jrd/frontend/frame/plugins/FileSelectorArrayRowTest.java -+++ a/runtime-decompiler/src/test/java/org/jrd/frontend/frame/plugins/XFileSelectorArrayRowTest.java -@@ -11,9 +11,6 @@ - import java.io.File; - import java.nio.file.Paths; - --@SuppressFBWarnings( -- value = "DMI_HARDCODED_ABSOLUTE_FILENAME", justification = "Hardcoded paths aren't used for manipulating with an actual filesystem." --) - class FileSelectorArrayRowTest { - @BeforeAll - static void setup() { ---- a/runtime-decompiler/src/main/java/org/jrd/backend/data/cli/utils/CompileArguments.java -+++ a/runtime-decompiler/src/main/java/org/jrd/backend/data/cli/utils/CompileArguments.java -@@ -77,10 +77,6 @@ - return new RuntimeCompilerConnector.JrdClassesProvider(localVmInfo, vmManager); - } - -- @SuppressFBWarnings( -- value = "NP_LOAD_OF_KNOWN_NULL_VALUE", -- justification = "Classpath is only used for FS VMs, in other cases getCp() does not get called" -- ) - /** - * Warning, possibly unused, rotten code. - */ ---- a/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java -+++ a/runtime-decompiler/src/main/java/org/jrd/frontend/frame/main/decompilerview/TextWithControls.java -@@ -103,10 +103,6 @@ - //currently standalone dialog supports only additions - //and additions do not support classlaoder selection (obviously) - //the classlaoder now remain thus unused -- @SuppressFBWarnings( -- value = "SS_SHOULD_BE_STATIC", -- justification = "is really per instance, however will ahve sense, only if standalone dialog will support overwrite, which is unlikely" -- ) - private final boolean overvriteEnabled = false; - //field to hots the target classlaoder if it willbe ever supported - //it is now null, what is waht the only ussage in compiler.compile(toCompile, pluginManager, classloader); needs - diff --git a/rsyntaxVersion.patch b/rsyntaxVersion.patch index cf084ca..c423a28 100644 --- a/rsyntaxVersion.patch +++ b/rsyntaxVersion.patch @@ -4,8 +4,8 @@ com.fifesoft rsyntaxtextarea -- 3.1.2 -+ 3.1.1 +- 3.6.0 ++ 3.6.0 org.jboss.byteman diff --git a/sources b/sources index 639b6d5..1ab8d67 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (java-runtime-decompiler-9.1.tar.gz) = 9373d08d9482614561726ab82b3f116136c79bf9758950276cf3043c6443425c17b43699d19cd33eb0761e3819795249a304135d64185989dcc1eeb59a9c671d +SHA512 (java-runtime-decompiler-10.0.tar.gz) = b3e3b98e5d9fbb367e43df32a10e9cbed2cfd696109b14f4360f49ddf81eda5214fa425327407392642544602a5699c1b9221a33da9f0e1b0ccd3384b4aa6ead diff --git a/systemCfr.patch b/systemCfr.patch index 2a0a77d..ed64dc4 100644 --- a/systemCfr.patch +++ b/systemCfr.patch @@ -6,7 +6,7 @@ - "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/CfrDecompilerWrapper.java", + "WrapperURL": "file:/etc/java-runtime-decompiler/plugins/CfrDecompilerWrapper.java", "DependencyURL": [ -- "file://${HOME}/.m2/repository/org/benf/cfr/0.151/cfr-0.151.jar" +- "file://${HOME}/.m2/repository/org/benf/cfr/0.152/cfr-0.152.jar" + "file:/usr/share/java/CFR/cfr.jar" ], "DecompilerDownloadURL": "https://www.benf.org/other/cfr/faq.html" diff --git a/systemFernflower.patch b/systemFernflower.patch index b179e10..746c176 100644 --- a/systemFernflower.patch +++ b/systemFernflower.patch @@ -6,7 +6,7 @@ - "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/FernflowerDecompilerWrapper.java", + "WrapperURL": "file:///etc/java-runtime-decompiler/plugins/FernflowerDecompilerWrapper.java", "DependencyURL": [ -- "file://${HOME}/.m2/repository/org/jboss/windup/decompiler/decompiler-fernflower/5.1.4.Final/decompiler-fernflower-5.1.4.Final.jar", +- "file://${HOME}/.m2/repository/org/jboss/windup/decompiler/decompiler-fernflower/6.3.9.Final/decompiler-fernflower-6.3.9.Final.jar", - "file://${HOME}/.m2/repository/org/jboss/windup/decompiler/fernflower/windup-fernflower/1.0.0.20171018/windup-fernflower-1.0.0.20171018.jar" + "file:///usr/share/java/fernflower.jar" ], diff --git a/systemJasm.patch b/systemJasm.patch index dc2991d..33c2f1d 100644 --- a/systemJasm.patch +++ b/systemJasm.patch @@ -6,7 +6,7 @@ - "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/JasmDecompilerWrapper.java", + "WrapperURL": "file:/etc/java-runtime-decompiler/plugins/JasmDecompilerWrapper.java", "DependencyURL": [ -- "file://${HOME}/.m2/repository/org/openjdk/asmtools/8.0.b09-ea/asmtools-8.0.b09-ea.jar" +- "file://${HOME}/.m2/repository/org/openjdk/asmtools/9.0.b12-ea/asmtools-9.0.b12-ea.jar" + "file:/usr/share/java/openjdk-asmtools/asmtools.jar" ], "DecompilerDownloadURL": "https://github.com/openjdk/asmtools" diff --git a/systemJasmG.patch b/systemJasmG.patch index 81b6665..2844626 100644 --- a/systemJasmG.patch +++ b/systemJasmG.patch @@ -6,7 +6,7 @@ - "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/JasmGDecompilerWrapper.java", + "WrapperURL": "file:/etc/java-runtime-decompiler/plugins/JasmGDecompilerWrapper.java", "DependencyURL": [ -- "file://${HOME}/.m2/repository/org/openjdk/asmtools/8.0.b09-ea/asmtools-8.0.b09-ea.jar" +- "file://${HOME}/.m2/repository/org/openjdk/asmtools/9.0.b12-ea/asmtools-9.0.b12-ea.jar" + "file:/usr/share/java/openjdk-asmtools/asmtools.jar" ], "DecompilerDownloadURL": "https://github.com/openjdk/asmtools" diff --git a/systemJcoder.patch b/systemJcoder.patch index bd2690a..086e3ac 100644 --- a/systemJcoder.patch +++ b/systemJcoder.patch @@ -6,7 +6,7 @@ - "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/JcoderDecompilerWrapper.java", + "WrapperURL": "file:/etc/java-runtime-decompiler/plugins/JcoderDecompilerWrapper.java", "DependencyURL": [ -- "file://${HOME}/.m2/repository/org/openjdk/asmtools/8.0.b09-ea/asmtools-8.0.b09-ea.jar" +- "file://${HOME}/.m2/repository/org/openjdk/asmtools/9.0.b12-ea/asmtools-9.0.b12-ea.jar" + "file:/usr/share/java/openjdk-asmtools/asmtools.jar" ], "DecompilerDownloadURL": "https://github.com/openjdk/asmtools" diff --git a/systemJcoderG.patch b/systemJcoderG.patch index 4e07a9c..61fb2eb 100644 --- a/systemJcoderG.patch +++ b/systemJcoderG.patch @@ -6,7 +6,7 @@ - "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/JcoderGDecompilerWrapper.java", + "WrapperURL": "file:/etc/java-runtime-decompiler/plugins/JcoderGDecompilerWrapper.java", "DependencyURL": [ -- "file://${HOME}/.m2/repository/org/openjdk/asmtools/8.0.b09-ea/asmtools-8.0.b09-ea.jar" +- "file://${HOME}/.m2/repository/org/openjdk/asmtools/9.0.b12-ea/asmtools-9.0.b12-ea.jar" + "file:/usr/share/java/openjdk-asmtools/asmtools.jar" ], "DecompilerDownloadURL": "https://github.com/openjdk/asmtools" diff --git a/systemProcyon.patch b/systemProcyon.patch index 4886e80..5870794 100644 --- a/systemProcyon.patch +++ b/systemProcyon.patch @@ -8,13 +8,13 @@ - "file://${HOME}/.m2/repository/com/github/mstrobel/procyon-core/1.0-SNAPSHOT/procyon-core-1.0-SNAPSHOT.jar", - "file://${HOME}/.m2/repository/com/github/mstrobel/procyon-compilertools/1.0-SNAPSHOT/procyon-compilertools-1.0-SNAPSHOT.jar", - "file://${HOME}/.m2/repository/com/github/mstrobel/procyon-decompiler/1.0-SNAPSHOT/procyon-decompiler-1.0-SNAPSHOT.jar", -- "file://${HOME}/.m2/repository/com/beust/jcommander/1.78/jcommander-1.78.jar" +- "file://${HOME}/.m2/repository/com/beust/jcommander/1.82/jcommander-1.82.jar" + "/usr/share/java/procyon/procyon-core.jar", + "/usr/share/java/procyon/procyon-compilertools.jar", + "/usr/share/java/procyon/procyon-decompiler.jar", + "/usr/share/java/beust-jcommander.jar" ], - "DecompilerDownloadURL": "https://github.com/mstrobel/procyon/git " + "DecompilerDownloadURL": "https://github.com/mstrobel/procyon/" } diff --git a/systemProcyonAssembler.patch b/systemProcyonAssembler.patch index d385b99..10a690b 100644 --- a/systemProcyonAssembler.patch +++ b/systemProcyonAssembler.patch @@ -8,13 +8,13 @@ - "file://${HOME}/.m2/repository/com/github/mstrobel/procyon-core/1.0-SNAPSHOT/procyon-core-1.0-SNAPSHOT.jar", - "file://${HOME}/.m2/repository/com/github/mstrobel/procyon-compilertools/1.0-SNAPSHOT/procyon-compilertools-1.0-SNAPSHOT.jar", - "file://${HOME}/.m2/repository/com/github/mstrobel/procyon-decompiler/1.0-SNAPSHOT/procyon-decompiler-1.0-SNAPSHOT.jar", -- "file://${HOME}/.m2/repository/com/beust/jcommander/1.78/jcommander-1.78.jar" +- "file://${HOME}/.m2/repository/com/beust/jcommander/1.82/jcommander-1.82.jar" + "/usr/share/java/procyon/procyon-core.jar", + "/usr/share/java/procyon/procyon-compilertools.jar", + "/usr/share/java/procyon/procyon-decompiler.jar", + "/usr/share/java/beust-jcommander.jar" ], - "DecompilerDownloadURL": "https://github.com/mstrobel/procyon/git " + "DecompilerDownloadURL": "https://github.com/mstrobel/procyon/" } From 2a2543ceb15b2922a1ae39dd0711db915c6b1250 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Sun, 19 Oct 2025 18:10:18 +0200 Subject: [PATCH 17/21] Enabled jd plugin --- java-runtime-decompiler.spec | 21 +++++++++++++++------ systemJd.patch | 12 ++++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 systemJd.patch diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index b906b8c..357f7f4 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -21,6 +21,7 @@ Patch6: systemJcoder.patch Patch61: systemJcoder7.patch Patch62: systemJcoderG.patch Patch63: systemJcoderG7.patch +Patch7: systemJd.patch BuildArch: noarch ExclusiveArch: %{java_arches} noarch @@ -50,6 +51,7 @@ Recommends: java Recommends: %{name}-fernflower-plugin Recommends: %{name}-procyon-plugin Recommends: %{name}-cfr-plugin +Recommends: %{name}-jd-plugin Recommends: %{name}-asmtools-plugin Recommends: %{name}-asmtools7-plugin @@ -89,6 +91,14 @@ Requires: %{name} = %{version}-%{release} %description cfr-plugin This package provides bindings and requirements to CFR decompiler for %{name}. +%package jd-plugin +Requires: jd-core +Summary: JD decompiler %{name} +Requires: %{name} = %{version}-%{release} + +%description jd-plugin +This package provides bindings and requirements to JD decompiler for %{name}. + %package asmtools-plugin Requires: openjdk-asmtools >= 8.0.b09 Summary: asmtools disassembler and assembler plugin for %{name} @@ -120,6 +130,7 @@ This package provides bindings and requirements to asmtools7 disassembler and as %patch -P61 -p0 %patch -P62 -p0 %patch -P63 -p0 +%patch -P7 -p0 jurand -i -s -a -n SuppressFBWarnings decompiler_agent runtime-decompiler @@ -132,8 +143,6 @@ popd %pom_remove_plugin :formatter-maven-plugin %pom_remove_dep :spotbugs-annotations xmvn --version -#echo $JAVA_HOME -#export JAVA_HOME=/usr/lib/jvm/java-25-openjdk #why? xmvn --version %mvn_build -f --xmvn-javadoc -- -Plegacy CPLC=/usr/share/java/classpathless-compiler @@ -165,10 +174,6 @@ install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --vendor="fedora" --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE3} desktop-file-install --vendor="fedora" --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE4} -#jd is not yet packed and sucks anyway -rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.java -rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json - %files -f .mfiles %attr(755, root, -) %{_bindir}/java-runtime-decompiler %attr(755, root, -) %{_bindir}/java-runtime-decompiler-hex @@ -197,6 +202,10 @@ rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json %config %{_sysconfdir}/%{name}/plugins/CfrDecompilerWrapper.java %config(noreplace) %{_sysconfdir}/%{name}/plugins/CfrDecompilerWrapper.json +%files jd-plugin +%config %{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.java +%config(noreplace) %{_sysconfdir}/%{name}/plugins/JdDecompilerWrapper.json + %files asmtools-plugin %config %{_sysconfdir}/%{name}/plugins/JasmDecompilerWrapper.java %config(noreplace) %{_sysconfdir}/%{name}/plugins/JasmDecompilerWrapper.json diff --git a/systemJd.patch b/systemJd.patch new file mode 100644 index 0000000..2a2be52 --- /dev/null +++ b/systemJd.patch @@ -0,0 +1,12 @@ +--- runtime-decompiler/src/plugins/JdDecompilerWrapper.json ++++ runtime-decompiler/src/plugins/JdDecompilerWrapper.json +@@ -2,7 +2,7 @@ + "Name": "JD", + "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/JdDecompilerWrapper.java", + "DependencyURL": [ +- "file://${HOME}/.m2/repository/org/jd/jd-core/1.1.3/jd-core-1.1.3.jar" ++ "file:///usr/share/java/jd-core/jd-core.jar" + ], + "DecompilerDownloadURL": "https://github.com/java-decompiler/jd-core/" + } + From b9b96c0bccb7058d7804c9b97c24a0c8c69831dc Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Tue, 21 Oct 2025 18:59:12 +0200 Subject: [PATCH 18/21] Fixed jd plugin --- systemJd.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/systemJd.patch b/systemJd.patch index 2a2be52..5228d21 100644 --- a/systemJd.patch +++ b/systemJd.patch @@ -1,8 +1,10 @@ --- runtime-decompiler/src/plugins/JdDecompilerWrapper.json +++ runtime-decompiler/src/plugins/JdDecompilerWrapper.json -@@ -2,7 +2,7 @@ +@@ -1,8 +1,8 @@ + { "Name": "JD", - "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/JdDecompilerWrapper.java", +- "WrapperURL": "file://${XDG_CONFIG_HOME}/plugins/JdDecompilerWrapper.java", ++ "WrapperURL": "file:/etc/java-runtime-decompiler/plugins/JdDecompilerWrapper.java", "DependencyURL": [ - "file://${HOME}/.m2/repository/org/jd/jd-core/1.1.3/jd-core-1.1.3.jar" + "file:///usr/share/java/jd-core/jd-core.jar" From be57c9a98a0274f24c150590e1161c850f8ecf12 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 23 Oct 2025 16:02:50 +0200 Subject: [PATCH 19/21] getrid of autrelease --- java-runtime-decompiler.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 357f7f4..61b7a9f 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 10.0 -Release: %autorelease +Release: 5 License: GPL-3.0-only URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -25,7 +25,7 @@ Patch7: systemJd.patch BuildArch: noarch ExclusiveArch: %{java_arches} noarch -BuildRequires: maven-local-openjdk25 +BuildRequires: maven-local-openjdk21 BuildRequires: byteman BuildRequires: rsyntaxtextarea BuildRequires: junit5 @@ -36,7 +36,7 @@ BuildRequires: maven-surefire-provider-junit5 BuildRequires: maven-surefire BuildRequires: maven-surefire-plugin BuildRequires: maven-clean-plugin -BuildRequires: java-25-devel +BuildRequires: java-21-devel BuildRequires: google-gson BuildRequires: desktop-file-utils BuildRequires: classpathless-compiler From 859248084e9f1189ce87dca2a4577014d86d1203 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 23 Oct 2025 16:23:35 +0200 Subject: [PATCH 20/21] Added forgotten %dist --- java-runtime-decompiler.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index 61b7a9f..d263e70 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 10.0 -Release: 5 +Release: 6%{?dist} License: GPL-3.0-only URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz From d488c1b909759fa4a94bb48f7fa2cd4546065edb Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Mon, 5 Jan 2026 18:29:47 +0100 Subject: [PATCH 21/21] Bumped to jdk25 --- java-runtime-decompiler.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java-runtime-decompiler.spec b/java-runtime-decompiler.spec index d263e70..8ef55d9 100644 --- a/java-runtime-decompiler.spec +++ b/java-runtime-decompiler.spec @@ -1,7 +1,7 @@ Summary: Application for extraction and decompilation of JVM byte code Name: java-runtime-decompiler Version: 10.0 -Release: 6%{?dist} +Release: 7%{?dist} License: GPL-3.0-only URL: https://github.com/pmikova/java-runtime-decompiler Source0: https://github.com/judovana/%{name}/archive/%{name}-%{version}.tar.gz @@ -25,7 +25,7 @@ Patch7: systemJd.patch BuildArch: noarch ExclusiveArch: %{java_arches} noarch -BuildRequires: maven-local-openjdk21 +BuildRequires: maven-local-openjdk25 BuildRequires: byteman BuildRequires: rsyntaxtextarea BuildRequires: junit5 @@ -36,7 +36,7 @@ BuildRequires: maven-surefire-provider-junit5 BuildRequires: maven-surefire BuildRequires: maven-surefire-plugin BuildRequires: maven-clean-plugin -BuildRequires: java-21-devel +BuildRequires: java-25-devel BuildRequires: google-gson BuildRequires: desktop-file-utils BuildRequires: classpathless-compiler