Name: python-xlmmacrodeobfuscator Version: 0.2.7 Release: 1%{?dist} Summary: XLM Emulation engine to deobfuscate malicious XLM macros, also known as Excel 4 License: Apache License 2.0 URL: https://github.com/DissectMalware/XLMMacroDeobfuscator # https://github.com/DissectMalware/XLMMacroDeobfuscator/releases/tag/v0.2.7 # Source0: https://files.pythonhosted.org/packages/source/x/xlmmacrodeobfuscator/XLMMacroDeobfuscator-%%{version}.tar.gz Source0: https://github.com/DissectMalware/XLMMacroDeobfuscator/releases/download/v%{version}/XLMMacroDeobfuscator-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %global _description %{expand: XLMMacroDeobfuscator XLMMacroDeobfuscator can be used to decode obfuscated XLM macros (also known as Excel 4.0 macros). It utilizes an internal XLM emulator to interpret the macros, without fully performing the code.It supports both xls, xlsm, and xlsb formats. It uses [xlrd2]( [pyxlsb2]( and its own parser to extract cells and other information from xls, xlsb and xlsm files, respectively. } %description %_description %package -n python%{python3_pkgversion}-xlmmacrodeobfuscator Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-xlmmacrodeobfuscator} Requires: python3dist(defusedxml) Requires: python3dist(lark-parser) Requires: python3dist(msoffcrypto-tool) Requires: python3dist(pyxlsb2) Requires: python3dist(roman) Requires: python3dist(untangle) = 1.2.1 Requires: python3dist(xlrd2) %description -n python%{python3_pkgversion}-xlmmacrodeobfuscator %_description %prep %autosetup -n XLMMacroDeobfuscator-%{version} # Remove bundled egg-info rm -rf xlmmacrodeobfuscator.egg-info %build %py3_build %install %py3_install %files -n python%{python3_pkgversion}-xlmmacrodeobfuscator %license LICENSE %doc README.md %{_bindir}/xlmdeobfuscator %{python3_sitelib}/XLMMacroDeobfuscator %{python3_sitelib}/XLMMacroDeobfuscator-%{version}-py%{python3_version}.egg-info %changelog * Tue Dec 06 2022 Michal Ambroz - 0.2.7-1 - Initial package.