3
\§T ã @ s€ d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl
mZ ddlT ddl
mZ dd lmZ G d
d„ deƒZdS )zwdistutils.command.bdist_rpm
Implements the Distutils 'bdist_rpm' command (create RPM source and binary
distributions).é N)ÚCommand)ÚDEBUG)Úget_platform)Ú
write_file)Ú*)Úget_python_version)Úlogc + @ s¸ e Zd ZdZdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dd€d�d‚dƒd„d…d†d‡dˆd‰dŠd‹dŒd�dŽd�g)Zd4d9d=d2dUgZd4d9d=dXœZdYdZ„ Zd[d\„ Zd]d^„ Z d_d`„ Z
dadb„ Zdcdd„ Zdedf„ Z
dS )�Ú bdist_rpmzcreate an RPM distributionúbdist-base=Nú/base directory for creating built distributionsú rpm-base=údbase directory for creating RPMs (defaults to "rpm" under --bdist-base; must be specified for RPM 2)ú dist-dir=ÚdúDdirectory to put final RPM files in (and .spec files if --spec-only)úpython=úMpath to Python interpreter to hard-code in the .spec file (default: "python")ú
fix-pythonúLhard-code the exact path to the current Python interpreter in the .spec fileú spec-onlyúonly regenerate spec fileúsource-onlyúonly generate source RPMúbinary-onlyúonly generate binary RPMú use-bzip2ú7use bzip2 instead of gzip to create source distributionúdistribution-name=úgname of the (Linux) distribution to which this RPM applies (*not* the name of the module distribution!)úgroup=ú9package classification [default: "Development/Libraries"]úrelease=úRPM release numberúserial=úRPM serial numberúvendor=úaRPM "vendor" (eg. "Joe Blow