|
|
ac4126f |
Summary: Translate Dalvik bytecode to equivalent Java bytecode
|
|
|
ac4126f |
Name: enjarify
|
|
|
ac4126f |
Version: 1.0.3
|
|
|
b6d79b3 |
Release: 4%{?dist}
|
|
|
ac4126f |
License: ASL 2.0
|
|
|
ac4126f |
URL: https://github.com/Storyyeller/enjarify
|
|
|
ac4126f |
# Upstream uses gitattribues to remove test files from archive…
|
|
|
ac4126f |
# git clone https://github.com/Storyyeller/enjarify
|
|
|
ac4126f |
# (cd enjarify && rm .gitattributes && git commit -a -m 'Drop gitattributes' && git archive --prefix enjarify-%{version}/ -o ../enjarify-%{version}.tar.xz HEAD)
|
|
|
ac4126f |
Source0: enjarify-%{version}.tar.xz
|
|
|
ac4126f |
Source1: https://anonscm.debian.org/cgit/android-tools/enjarify.git/plain/debian/enjarify.1
|
|
|
ac4126f |
# https://github.com/Storyyeller/enjarify/pull/1
|
|
|
ac4126f |
Patch1: 0001-Adjust-test2-to-pass.patch
|
|
|
00e71e5 |
# https://github.com/Storyyeller/enjarify/pull/2
|
|
|
00e71e5 |
Patch2: 0002-runtests-drop-Xss-param.patch
|
|
|
00e71e5 |
|
|
|
ac4126f |
BuildArch: noarch
|
|
|
ac4126f |
|
|
|
ac4126f |
# this package support python3 only
|
|
|
ac4126f |
BuildRequires: python3-devel
|
|
|
ac4126f |
|
|
|
ac4126f |
# for %%check
|
|
|
ac4126f |
BuildRequires: java-headless
|
|
|
ac4126f |
|
|
|
ac4126f |
Requires: python3-enjarify = %{version}-%{release}
|
|
|
ac4126f |
|
|
|
ac4126f |
%global _description\
|
|
|
ac4126f |
Android applications are Java programs that run on a customized\
|
|
|
ac4126f |
virtual machine, which is part of the Android operating system, the\
|
|
|
ac4126f |
Dalvik VM. Their bytecode differs from the bytecode of normal Java\
|
|
|
ac4126f |
applications.\
|
|
|
ac4126f |
\
|
|
|
ac4126f |
Enjarify can translate the Dalvik bytecode back to equivalent Java\
|
|
|
ac4126f |
bytecode, which simplifies the analysis of Android applications.
|
|
|
ac4126f |
|
|
|
ac4126f |
%description %_description
|
|
|
ac4126f |
|
|
|
ac4126f |
%package -n python3-enjarify
|
|
|
ac4126f |
Summary: %summary
|
|
|
ac4126f |
%{?python_provide:%python_provide python3-enjarify}
|
|
|
ac4126f |
|
|
|
ac4126f |
%description -n python3-enjarify %_description
|
|
|
ac4126f |
|
|
|
ac4126f |
# No python2 support:
|
|
|
ac4126f |
# https://github.com/google/enjarify/issues/11
|
|
|
ac4126f |
|
|
|
ac4126f |
%prep
|
|
|
ac4126f |
%autosetup -n enjarify-%{version} -p1
|
|
|
ac4126f |
|
|
|
ac4126f |
%build
|
|
|
ac4126f |
# nothing to do, package has no build system
|
|
|
ac4126f |
|
|
|
ac4126f |
%install
|
|
|
ac4126f |
mkdir -p %buildroot%python3_sitelib \
|
|
|
ac4126f |
%buildroot%_bindir
|
|
|
ac4126f |
cp -ap enjarify %buildroot%python3_sitelib/
|
|
|
ac4126f |
rm %buildroot%python3_sitelib/enjarify/runtests.py
|
|
|
ac4126f |
|
|
|
ac4126f |
cat >%buildroot%_bindir/enjarify <
|
|
|
e2e0d5b |
#!/bin/sh -e
|
|
|
e2e0d5b |
exec %{__python3} -O -m enjarify.main "\$@"
|
|
|
ac4126f |
EOF
|
|
|
ac4126f |
chmod +x %buildroot%_bindir/enjarify
|
|
|
ac4126f |
|
|
|
ac4126f |
install -pDm0644 -t %buildroot%_mandir/man1/ %SOURCE1
|
|
|
ac4126f |
|
|
|
ac4126f |
%check
|
|
|
e2e0d5b |
export PYTHONPATH=. LC_CTYPE="en_US.UTF-8"
|
|
|
e2e0d5b |
%__python3 -m enjarify.runtests
|
|
|
e2e0d5b |
|
|
|
e2e0d5b |
# show help output to check that the script isn't totally broken
|
|
|
e2e0d5b |
%buildroot%_bindir/enjarify --help
|
|
|
ac4126f |
|
|
|
ac4126f |
%files
|
|
|
ac4126f |
%_bindir/enjarify
|
|
|
ac4126f |
%_mandir/man1/enjarify.1*
|
|
|
ac4126f |
|
|
|
ac4126f |
%files -n python3-enjarify
|
|
|
ac4126f |
%python3_sitelib/enjarify
|
|
|
ac4126f |
%license LICENSE.txt
|
|
|
ac4126f |
%doc README.md
|
|
|
ac4126f |
|
|
|
ac4126f |
%changelog
|
|
|
b6d79b3 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
|
|
|
b6d79b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b6d79b3 |
|
|
|
70e0355 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-3
|
|
|
70e0355 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
70e0355 |
|
|
|
e2e0d5b |
* Fri Feb 24 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.3-2
|
|
|
e2e0d5b |
- Fix launcher script
|
|
|
e2e0d5b |
|
|
|
ac4126f |
* Thu Feb 23 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.3-1
|
|
|
ac4126f |
- Add missing %%dist tag.
|
|
|
ac4126f |
- Update URL to a new repo
|
|
|
ac4126f |
- Use a custom tarball which contains tests/
|
|
|
ac4126f |
- Add %%check
|
|
|
ac4126f |
|
|
|
ac4126f |
* Tue Feb 7 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.3-1
|
|
|
ac4126f |
- Rename package to enjarify
|
|
|
ac4126f |
- Add python3-enjarify subpackage
|
|
|
ac4126f |
- Preserve timestamp of man page on installation and drop %%doc
|
|
|
ac4126f |
- Use %%python_provide
|
|
|
ac4126f |
|
|
|
ac4126f |
* Fri Jan 20 2017 zbyszek <zbyszek@in.waw.pl> - 1.0.3-1
|
|
|
ac4126f |
- Initial packaging
|