# Spec file for dnfile - Parse .NET executable files %global pypi_name dnfile Name: python-%{pypi_name} Version: 0.17.0 Release: %autorelease Summary: Parse .NET executable files License: MIT URL: https://github.com/malwarefrank/dnfile Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel %description dnfile is a Python library for parsing .NET executable files. It provides access to .NET metadata, resources, and other structures found in .NET assemblies and executables. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} dnfile is a Python library for parsing .NET executable files. It provides access to .NET metadata, resources, and other structures found in .NET assemblies and executables. %prep %autosetup -n %{pypi_name}-%{version} %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 %doc README.rst HISTORY.rst %changelog %autochangelog