OwlCyberSecurity - MANAGER
Edit File: bdist_rpm.cpython-36.pyc
3 K�Re�������������������@���s"���d�dl�jjZG�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���|�j�d��tjj|���d�S�)N�egg_info)�run_command�origr����run)�self��r�����/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/command/bdist_rpm.pyr������s���� z bdist_rpm.runc����������������sl���|�j�j��}|jdd�}tjj|��}d|���d|�����fdd�|D��}|j��d�}d|�}|j||��|S�)N�-�_z%define version c����������������s0���g�|�](}|j�d�d�j�dd�j�dd�j������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)�line23�line24r���r ���� <listcomp>���s��� z-bdist_rpm._make_spec_file.<locals>.<listcomp>����z%define unmangled_version )�distribution�get_versionr���r���r����_make_spec_file�index�insert)r����versionZ rpmversion�specZ insert_locZunmangled_versionr���)r���r���r ���r������s���� zbdist_rpm._make_spec_fileN)�__name__� __module__�__qualname__�__doc__r���r���r���r���r���r ���r������s��� r���)Zdistutils.command.bdist_rpm�commandr���r���r���r���r���r ����<module>���s���