U
âQabä ã @ s( d dl m mZ G dd„ dejƒZdS )é Nc @ s e Zd ZdZdd„ Zdd„ ZdS )Ú bdist_rpmaf
Override the default bdist_rpm behavior to do the following:
1. Run egg_info to ensure the name and version are properly calculated.
2. Always run 'install' using --single-version-externally-managed to
disable eggs in RPM distributions.
3. Replace dash with underscore in the version numbers for better RPM
compatibility.
c C s | d¡ tj | ¡ d S )NZegg_info)Zrun_commandÚorigr Úrun)Úself© r ú@/usr/lib/python3.8/site-packages/setuptools/command/bdist_rpm.pyr s
z
bdist_rpm.runc sl | j ¡ }| dd¡}tj | ¡}d| ‰ d| ‰‡ ‡fdd„|D ƒ}| ˆ¡d }d| }| ||¡ |S )Nú-Ú_z%define version c s0 g | ](}| d d¡ dd¡ dd¡ ˆ ˆ¡‘qS )zSource0: %{name}-%{version}.tarz)Source0: %{name}-%{unmangled_version}.tarzsetup.py install z5setup.py install --single-version-externally-managed z%setupz&%setup -n %{name}-%{unmangled_version})Úreplace)Ú.0Úline©Zline23Zline24r r Ú