6dd3438
Name:           andriller
6dd3438
Version:        3.3.1
aaf9ce7
Release:        2%{?dist}
6dd3438
Summary:        Android Forensic Tools
6dd3438
6dd3438
License:        MIT
6dd3438
URL:            https://www.andriller.com/
6dd3438
Source0:        https://github.com/den4uk/andriller/archive/%{version}/%{name}-%{version}.tar.gz
6dd3438
Source1:        %{name}.desktop
6dd3438
Patch0:         %{name}-requirements.patch
6dd3438
6dd3438
BuildArch:      noarch
6dd3438
6dd3438
BuildRequires:  python3-devel
6dd3438
BuildRequires:  python3-pytest
6dd3438
BuildRequires:  python3-pytest-cov
6dd3438
BuildRequires:  python3-setuptools
6dd3438
BuildRequires:  python3-requests
6dd3438
BuildRequires:  python3-jinja2
6dd3438
BuildRequires:  python3-appdirs
6dd3438
BuildRequires:  python3-javaobj
6dd3438
BuildRequires:  python3-timeout-decorator
6dd3438
BuildRequires:  python3-pycryptodomex
6dd3438
BuildRequires:  python3-xlsxwriter
6dd3438
BuildRequires:  desktop-file-utils
6dd3438
6dd3438
Requires:       android-tools
6dd3438
Requires:       python3-tkinter
6dd3438
6dd3438
%description
6dd3438
Andriller is software utility with a collection of forensic tools for smart 
6dd3438
phones. It performs read-only, forensically sound, non-destructive acquisition
6dd3438
from Android devices. It has features, such as powerful Lockscreen cracking 
6dd3438
for pattern, PIN code or password. Custom decoders for Apps data from Android
6dd3438
(some Apple iOS & Windows) databases for decoding communications. Extraction
6dd3438
and decoders produce reports in HTML and spreadsheet formats.
6dd3438
6dd3438
%prep
6dd3438
%autosetup -p1
6dd3438
# Remove Windows executable
6dd3438
rm -rf andriller/bin
6dd3438
# Remove shebang
6dd3438
sed -i -e '/^#!\//, 1d' andriller/{screencap.py,windows.py}
6dd3438
6dd3438
%build
6dd3438
%py3_build
6dd3438
6dd3438
%install
6dd3438
%py3_install
6dd3438
# Install desktop file
6dd3438
mkdir -p %{buildroot}%{_datadir}/applications/
6dd3438
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
6dd3438
pathfix.py -pn -i "%{__python3}" %{buildroot}%{_bindir}/andriller-gui.py
6dd3438
6dd3438
%check
6dd3438
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
6dd3438
6dd3438
%files
6dd3438
%doc README.md
6dd3438
%license LICENSE
6dd3438
%{_bindir}/andriller-gui.py
6dd3438
%{_datadir}/applications/%{name}.desktop
6dd3438
%{python3_sitelib}/%{name}/
6dd3438
%{python3_sitelib}/*.egg-info/
6dd3438
6dd3438
%changelog
aaf9ce7
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-2
aaf9ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
aaf9ce7
6dd3438
* Sun Mar 22 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.1-1
6dd3438
- Enable tests
6dd3438
- Update to latest upstream release 3.3.1
6dd3438
6dd3438
* Wed Mar 18 2020 Fabian Affolter <mail@fabian-affolter.ch> - 3.3.0-1
6dd3438
- Initial package for Fedora