Blob Blame History Raw
Name:           androguard
Version:        3.3.5
Release:        4%{?dist}
Summary:        Reverse engineering, mal- or goodware analysis of Android applications

License:        ASL 2.0
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-mock
BuildRequires:  python3-nose
BuildRequires:  python3-nose-timer
BuildRequires:  python3-pytest
BuildRequires:  python3-magic
BuildRequires:  python3-asn1crypto
BuildRequires:  python3-click
BuildRequires:  python3-future
BuildRequires:  python3-lxml
BuildRequires:  python3-ipython
BuildRequires:  python3-networkx
BuildRequires:  python3-pydot
BuildRequires:  desktop-file-utils

Requires:       python3-magic
Requires:       python3-pyperclip
Requires:       python3-qt5

Androguard is a tool to play with Android files.

- Android's binary XML
- Android resources
- Disassemble DEX/ODEX bytecodes
- Decompiler for DEX/ODEX files

%package docs
Summary:        Androguard documentation

BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinxcontrib-programoutput
BuildRequires:  python3-sphinx_rtd_theme

%description docs
Documentation for Androguard.

sed -i -e '/^#!\//, 1d' androguard/cli/


PATH=%{buildroot}%{_bindir}:$PATH PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs html
rm -rf html/.{doctrees,buildinfo}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

for file in; do
  mv %{buildroot}%{_bindir}/$file -T %{buildroot}%{_bindir}/$(echo "$file" | cut -f 1 -d '.')

PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \
  -k "not testMagic and not EntryPointsTest"

%license LICENCE-2.0

%files docs
%doc html examples

* Fri Jun 26 2020 Fabian Affolter <> - 3.3.5-4
- Add python3-setuptools as BR

* Tue May 26 2020 Miro HronĨok <> - 3.3.5-3
- Rebuilt for Python 3.9

* Wed Apr 01 2020 Fabian Affolter <> - 3.3.5-2
- Add docs subpackage (rhbz#1786653)
- Enable tests
- Fix requirements

* Sat Dec 14 2019 Fabian Affolter <> - 3.3.5-1
- Initial package for Fedora