# Spec file for dncil - FLARE team's CIL disassembler %global pypi_name dncil Name: python-%{pypi_name} Version: 1.0.2 Release: %autorelease Summary: The FLARE team's open-source library to disassemble Common Intermediate Language (CIL) instructions License: Apache-2.0 URL: https://www.github.com/mandiant/dncil Source0: %{pypi_source} # LICENSE.txt not included in PyPI tarball, download from GitHub Source1: https://raw.githubusercontent.com/mandiant/dncil/v%{version}/LICENSE.txt BuildArch: noarch BuildRequires: python3-devel %description dncil is a Common Intermediate Language (CIL) disassembly library written in Python that supports parsing the header, instructions, and exception handlers of .NET managed methods. Parsed data is exposed through an object-oriented API to help you quickly develop CIL analysis tools. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} dncil is a Common Intermediate Language (CIL) disassembly library written in Python that supports parsing the header, instructions, and exception handlers of .NET managed methods. Parsed data is exposed through an object-oriented API to help you quickly develop CIL analysis tools. %prep %autosetup -n %{pypi_name}-%{version} # Copy LICENSE.txt from Source1 cp -p %{SOURCE1} . %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files '*' %check # Basic import test %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %doc README.md %changelog %autochangelog