# CRITICAL: Prevent rpmbuild from stripping debug symbols and breaking PyInstaller %define __os_install_post %{nil} %define debug_package %{nil} Name: python39-pyinstaller Version: 6.22.3 Release: 1 Summary: Python 3.9 packaging tool bundled as an RPM License: MIT URL: https://github.com/pyinstaller/pyinstaller BuildRequires: python3, python3-devel, python3-setuptools %description PyInstaller bundles Python 3.9 applications into standalone executables. %build python3 setup.py build %install python3 setup.py install --prefix /usr --install-dir /usr/lib/python3.9/site-packages %files /usr/lib/python3.9/site-packages/pyinstaller/* /usr/bin/pyinstaller /usr/lib/python3.9/site-packages/pyinstaller/*.py /usr/lib/python3.9/site-packages/pyinstaller/*.pyc