ó b-äQc@sBddlmZddlZddlZdefd„ƒYZdS(iĸĸĸĸ(t bdist_rpmNRcBsAeZd„Zejdkr-dd„Znd„Zd„ZRS(cCstj|ƒd|_dS(N(t _bdist_rpmtinitialize_optionstNonetno_egg(tself((s@/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.pyR s s2.5ic Cs—tj||||ƒ||jkr“|jdƒr“t|jdgƒjd|jdƒradpktjd t j j |t j j |ƒƒfƒndS(Ns.rpmt dist_filesRs.src.rpmtanyi( Rt move_filetdist_dirtendswithtgetattrt distributiontappendtsystversiontostpathtjointbasename(Rtsrctdsttlevel((s@/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.pyRs cCs|jdƒtj|ƒdS(Ntegg_info(t run_commandRtrun(R((s@/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.pyRs cCsē|jjƒ}|jddƒ}tj|ƒ}d|}d|}g|D]<}|jddƒjddƒjdd ƒj||ƒ^qK}|j|j|ƒd d |ƒ|S( Nt-t_s%define version sSource0: %{name}-%{version}.tars)Source0: %{name}-%{unmangled_version}.tarssetup.py install s5setup.py install --single-version-externally-managed s%setups&%setup -n %{name}-%{unmangled_version}is%define unmangled_version (R t get_versiontreplaceRt_make_spec_filetinserttindex(RRt rpmversiontspectline23tline24tline((s@/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.pyR*s   F!(t__name__t __module__RRRRRR(((s@/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.pyR s   (tdistutils.command.bdist_rpmRRRR(((s@/usr/lib/python2.7/site-packages/setuptools/command/bdist_rpm.pyts