|
|
ac4126f |
Summary: Translate Dalvik bytecode to equivalent Java bytecode
|
|
|
ac4126f |
Name: enjarify
|
|
|
ac4126f |
Version: 1.0.3
|
|
|
18899a6 |
Release: 16%{?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
|
|
|
400dbe7 |
%if 0
|
|
|
400dbe7 |
(cd enjarify && rm .gitattributes && git commit -a -m 'Drop gitattributes' && git archive --prefix enjarify-%{version}/ -o ../enjarify-%{version}.tar.xz HEAD)
|
|
|
400dbe7 |
%endif
|
|
|
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 |
|
|
|
0fa798f |
%global _description %{expand:
|
|
|
0fa798f |
Android applications are Java programs that run on a customized
|
|
|
0fa798f |
virtual machine, which is part of the Android operating system, the
|
|
|
0fa798f |
Dalvik VM. Their bytecode differs from the bytecode of normal Java
|
|
|
0fa798f |
applications.
|
|
|
0fa798f |
|
|
|
0fa798f |
Enjarify can translate the Dalvik bytecode back to equivalent Java
|
|
|
0fa798f |
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
|
|
|
400dbe7 |
export PYTHONPATH=. LC_CTYPE="C.UTF-8"
|
|
|
29117f9 |
%__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
|
|
|
18899a6 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-16
|
|
|
18899a6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
18899a6 |
|
|
|
29117f9 |
* Fri Sep 18 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-15
|
|
|
29117f9 |
- Enable tests (#1808128)
|
|
|
29117f9 |
|
|
|
866c2d9 |
* Wed Aug 26 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.3-14
|
|
|
866c2d9 |
- Disable tests (#1808128). The tests are right and the package is broken
|
|
|
866c2d9 |
with python3.9 (https://bugs.python.org/issue41531). Hopefully python3.9
|
|
|
866c2d9 |
will be fixed before the final release.
|
|
|
866c2d9 |
|
|
|
0ec4bd8 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-14
|
|
|
0ec4bd8 |
- Second attempt - Rebuilt for
|
|
|
0ec4bd8 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
0ec4bd8 |
|
|
|
39c7a4e |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-13
|
|
|
39c7a4e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
39c7a4e |
|
|
|
4dde335 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-12
|
|
|
4dde335 |
- Rebuilt for Python 3.9
|
|
|
4dde335 |
|
|
|
e6d61f1 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-11
|
|
|
e6d61f1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
e6d61f1 |
|
|
|
5ce4ca0 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-10
|
|
|
5ce4ca0 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
5ce4ca0 |
|
|
|
95ea2e3 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-9
|
|
|
95ea2e3 |
- Rebuilt for Python 3.8
|
|
|
95ea2e3 |
|
|
|
49face5 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-8
|
|
|
49face5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
49face5 |
|
|
|
e8aa054 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-7
|
|
|
e8aa054 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
e8aa054 |
|
|
|
be44e9c |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-6
|
|
|
be44e9c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
be44e9c |
|
|
|
ecc8c11 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.3-5
|
|
|
ecc8c11 |
- Rebuilt for Python 3.7
|
|
|
ecc8c11 |
|
|
|
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 |
|
|
|
400dbe7 |
* Fri Jan 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.3-1
|
|
|
ac4126f |
- Initial packaging
|