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