Added binding for future procyon

This commit is contained in:
Jiri 2019-01-16 12:28:51 +01:00
commit daa3f3d172
2 changed files with 23 additions and 1 deletions

View file

@ -1,7 +1,7 @@
Summary: Application for extraction and decompilation of JVM byte code
Name: java-runtime-decompiler
Version: 2.0
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv3
URL: https://github.com/pmikova/java-runtime-decompiler
Source0: https://github.com/pmikova/%{name}/archive/%{name}-%{version}.tar.gz
@ -9,6 +9,7 @@ Source1: java-runtime-decompiler
Source2: java-runtime-decompiler.1
Source3: jrd.desktop
Patch1: systemFernflower.patch
Patch2: systemProcyon.patch
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: byteman
@ -19,6 +20,7 @@ BuildRequires: google-gson
BuildRequires: desktop-file-utils
Requires: java-devel = 1:1.8.0
Recommends: fernflower
Recommends: procyon-decompiler
%description
This application can access JVM memory at runtime,
@ -33,6 +35,7 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch1
%patch2
%build
pushd runtime-decompiler
@ -76,6 +79,10 @@ desktop-file-install --vendor="fedora" \
%license LICENSE
%changelog
* Thu Jan 17 2019 Jiri Vanek <jvanek@redhat.com> - 2.0-4
- added depndence of procyon decompiler (currenlty under review
- added and applied Patch2, systemProcyon.patch to enable system procyon out of thebox
* Thu Jan 10 2019 Jiri Vanek <jvanek@redhat.com> - 2.0-3
- added depndence of fernflower decompiler
- added and applied Patch1, systemFernflower.patch to enable system fernflower

15
systemProcyon.patch Normal file
View file

@ -0,0 +1,15 @@
--- runtime-decompiler/src/plugins/ProcyonDecompilerWrapper.json 2018-11-12 15:25:47.000000000 +0100
+++ runtime-decompiler/src/plugins/ProcyonDecompilerWrapper.json 2019-01-16 12:13:37.317778036 +0100
@@ -2,7 +2,9 @@
"Name": "Procyon",
"WrapperURL": "file:///etc/java-runtime-decompiler/plugins/ProcyonDecompilerWrapper.java",
"DependencyURL": [
- "file:///usr/share/java/procyon-decompiler.jar"
+ "/usr/share/java/procyon/procyon-core.jar",
+ "/usr/share/java/procyon/procyon-compilertools.jar",
+ "/usr/share/java/procyon/procyon-decompiler.jar"
],
"DecompilerDownloadURL": "https://bitbucket.org/mstrobel/procyon/downloads/"
-}
\ No newline at end of file
+}