From c1d9eaafc552bef96b799da27633198d27ae8503 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Wed, 19 May 2021 15:07:53 +0100 Subject: [PATCH] Add jadx --- jadx/jadx.spec | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 jadx/jadx.spec diff --git a/jadx/jadx.spec b/jadx/jadx.spec new file mode 100644 index 0000000..d196d24 --- /dev/null +++ b/jadx/jadx.spec @@ -0,0 +1,40 @@ +%define debug_package %{nil} + +Name: jadx +Version: 1.2.0 +Release: 1%{?dist} +Summary: Dex to Java decompiler + +License: Apache 2.0 +URL: https://github.com/skylot/jadx +Source0: https://github.com/skylot/jadx/releases/download/v%{version}/jadx-%{version}.zip + +Requires: java-headless + +%description +Command line and GUI tools for produce Java source code from Android Dex and Apk files + +%prep +%autosetup -c + +%build + +%install +sed -i -e "s|\$APP_HOME/lib|%{_javadir}/%{name}|g" bin/jadx{,-gui} +mkdir -p %{buildroot}/%{_bindir} +cp bin/jadx{,-gui} %{buildroot}/%{_bindir}/ +mkdir -p %{buildroot}/%{_javadir}/%{name} +cp lib/* %{buildroot}/%{_javadir}/%{name}/ + +%files +%{_bindir}/jadx +%{_bindir}/jadx-gui +%{_javadir}/%{name} +%license LICENSE + +%changelog +* Wed Sep 18 2019 Carlos Mogas da Silva - 1.2.0 +- Update to 1.2.0 + +* Wed Sep 18 2019 Carlos Mogas da Silva - 1.0.0 +- Initial release