Bump to 5.0
This commit is contained in:
parent
c60515c87c
commit
afbe812d95
12 changed files with 192 additions and 120 deletions
|
|
@ -1,17 +1,20 @@
|
|||
Summary: Application for extraction and decompilation of JVM byte code
|
||||
Name: java-runtime-decompiler
|
||||
Version: 3.0
|
||||
Version: 5.0.rc1
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3
|
||||
URL: https://github.com/pmikova/java-runtime-decompiler
|
||||
Source0: https://github.com/pmikova/%{name}/archive/%{name}-%{version}.tar.gz
|
||||
Source1: java-runtime-decompiler
|
||||
Source2: java-runtime-decompiler.1
|
||||
Source3: jrd.desktop
|
||||
Patch0: remove_rsyntaxtextarea.patch
|
||||
Patch1: systemFernflower.patch
|
||||
Patch2: systemProcyon.patch
|
||||
Patch3: fixDoclint.patch
|
||||
Patch4: systemCfr.patch
|
||||
Patch5: systemJasm.patch
|
||||
Patch6: systemJcoder.patch
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: byteman
|
||||
|
|
@ -20,17 +23,22 @@ BuildRequires: ant-junit
|
|||
BuildRequires: maven-surefire-provider-junit
|
||||
BuildRequires: maven-surefire
|
||||
BuildRequires: maven-surefire-plugin
|
||||
# depends on devel, not runtime (needs tools.jar)
|
||||
BuildRequires: java-devel = 1:1.8.0
|
||||
BuildRequires: java-11-devel
|
||||
BuildRequires: google-gson
|
||||
BuildRequires: desktop-file-utils
|
||||
Requires: java-devel = 1:1.8.0
|
||||
Requires: fernflower
|
||||
Requires: procyon-decompiler
|
||||
BuildRequires: classpathless-compiler
|
||||
Requires: java-11-openjdk-headless
|
||||
Recommends: java-11-openjdk
|
||||
Requires: classpathless-compiler
|
||||
Recommends: fernflower
|
||||
Recommends: procyon-decompiler
|
||||
Recommends: CFR
|
||||
Recommends: openjdk-asmtools
|
||||
|
||||
%description
|
||||
This application can access JVM memory at runtime,
|
||||
extract byte code from the JVM and decompile it.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
|
@ -40,24 +48,26 @@ This package contains the API documentation for %{name}.
|
|||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
%patch0 -p1
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3 -p1
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
%patch2 -p0
|
||||
%patch4 -p0
|
||||
%patch5 -p0
|
||||
%patch6 -p0
|
||||
|
||||
%build
|
||||
pushd runtime-decompiler
|
||||
%pom_remove_dep com.sun:tools
|
||||
%pom_add_dep com.sun:tools
|
||||
%pom_remove_plugin :maven-jar-plugin
|
||||
popd
|
||||
export JAVA_TOOL_OPTIONS="-Dadditionalparam=-Xdoclint:none -DadditionalJOption=-Xdoclint:none"
|
||||
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
|
||||
%mvn_build -f
|
||||
java -cp /usr/share/java/classpathless-compiler/classpathless-compiler.jar:runtime-decompiler/target/runtime-decompiler-5.0-SNAPSHOT.jar org.jrd.backend.data.Help > %{name}.1
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
install -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/
|
||||
|
|
@ -71,7 +81,6 @@ desktop-file-install --vendor="fedora" \
|
|||
%files -f .mfiles
|
||||
%attr(755, root, -) %{_bindir}/java-runtime-decompiler
|
||||
%{_mandir}/man1/java-runtime-decompiler.1*
|
||||
|
||||
# wrappers for decompilers
|
||||
%dir %{_sysconfdir}/%{name}
|
||||
%dir %{_sysconfdir}/%{name}/plugins
|
||||
|
|
@ -79,6 +88,12 @@ desktop-file-install --vendor="fedora" \
|
|||
%config(noreplace) %{_sysconfdir}/%{name}/plugins/FernflowerDecompilerWrapper.json
|
||||
%config %{_sysconfdir}/%{name}/plugins/ProcyonDecompilerWrapper.java
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/plugins/ProcyonDecompilerWrapper.json
|
||||
%config %{_sysconfdir}/%{name}/plugins/CfrDecompilerWrapper.java
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/plugins/CfrDecompilerWrapper.json
|
||||
%config %{_sysconfdir}/%{name}/plugins/JasmDecompilerWrapper.java
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/plugins/JasmDecompilerWrapper.json
|
||||
%config %{_sysconfdir}/%{name}/plugins/JcoderDecompilerWrapper.java
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/plugins/JcoderDecompilerWrapper.json
|
||||
%license LICENSE
|
||||
|
||||
%dir %{_datadir}/applications
|
||||
|
|
@ -88,12 +103,59 @@ desktop-file-install --vendor="fedora" \
|
|||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Wed Sep 03 2019 Jiri Vanek <jvanek@redhat.com> - 3.0-2
|
||||
- Enabled procyon
|
||||
* Mon Aug 09 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.rc1-1
|
||||
- adapted manpage
|
||||
|
||||
* Mon Aug 02 2021 Fedora Release Engineering <releng@fedoraproject.org> - 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 <releng@fedoraproject.org> - 4.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Tue Dec 08 2020 Jiri Vanek <jvanek@redhat.com> - 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 <jvanek@redhat.com> - 4.0-1
|
||||
- built by jdk11
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.0-8
|
||||
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||
|
||||
* Tue Mar 17 2020 Jiri Vanek <jvanek@redhat.com> - 3.0-7
|
||||
- aligned rsyntaxtextarea version, fixed javadoc generation
|
||||
|
||||
* Tue Mar 17 2020 Jiri Vanek <jvanek@redhat.com> - 3.0-6
|
||||
- changed jdk8 requirement
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Tue Aug 27 2019 Jiri Vanek <jvanek@redhat.com> - 3.0-3
|
||||
- all stdouts from customlauncher moved to stderr
|
||||
|
||||
* Mon Aug 26 2019 Jiri Vanek <jvanek@redhat.com> - 3.0-0
|
||||
- moved to usptream version 3.0
|
||||
- adjusted configs, removed lambda patch
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Jan 17 2019 Jiri Vanek <jvanek@redhat.com> - 2.0-5
|
||||
- improved Patch3, includeLambdas.patch to sort the lamdas t the bottom
|
||||
- disabled doclint, remove invlaid src character
|
||||
|
||||
* Thu Jan 17 2019 Jiri Vanek <jvanek@redhat.com> - 2.0-4
|
||||
- added depndence of procyon decompiler (currenlty under review
|
||||
|
|
@ -104,10 +166,6 @@ desktop-file-install --vendor="fedora" \
|
|||
- added depndence of fernflower decompiler
|
||||
- added and applied Patch1, systemFernflower.patch to enable system fernflower
|
||||
|
||||
* Mon Dec 3 2018 Petra Mikova <petra.alice.mikova@gmail.com> - 2.0-3
|
||||
- patch to remove rsyntaxtextarea, because rhel does not have the package(guilty is jvanek, sorry)
|
||||
- removed from spec and runscript accordingly
|
||||
|
||||
* Wed Nov 28 2018 Petra Mikova <petra.alice.mikova@gmail.com> - 2.0-2
|
||||
- fixed changelog
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue