File android-apktool.spec of Package android-apktool

Name:           android-apktool
Version:        1.9.3
Release:        0
Summary:        A tool for reverse engineering Android apk files
License:        Apache-2.0
Group:          Development/Languages/Other
URL:            https://apktool.org
Source0:        https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool
Source1:        https://github.com/iBotPeaches/Apktool/releases/download/v%{version}/apktool_%{version}.jar
BuildRequires:  fdupes
Requires:       (java >= 8 or java-headless >= 8)
Requires:       bash
Provides:       apktool = %version

%description
Apktool is a tool for reverse engineering third-party, closed, binary, Android apps. It can decode resources to nearly original form and rebuild them after making some modifications; it makes it possible to debug smali code step-by-step. It also makes working with apps easier thanks to project-like file structure and automation of some repetitive tasks such as building apk, etc.

Apktool is NOT intended for piracy and other non-legal uses. It could be used for localizing and adding features, adding support for custom platforms, and other GOOD purposes. Just try to be fair with the authors of an app, that you use and probably like.

This package includes:
* apktool

%prep

%build

%install
mkdir -p \
  %{buildroot}%{_bindir}/ \
  %{buildroot}%{_libdir}/%{name}

install -m755 %{_sourcedir}/apktool* -t %{buildroot}%{_libdir}/%{name}
ln -rs %{buildroot}%{_libdir}/%{name}/apktool %{buildroot}%{_bindir}
ln -rs %{buildroot}%{_libdir}/%{name}/apktool_%{version}.jar %{buildroot}%{_libdir}/%{name}/apktool.jar

install %{_sourcedir}/%{name}-%{version}/LICENSE.md -m644 -D %{buildroot}%{_datadir}/licenses/%name/LICENSE.md

%files
%license LICENSE.md

%{_bindir}/*
%{_libdir}/%{name}

%changelog
openSUSE Build Service is sponsored by