KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/lib64/python2.4/distutils/command/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.4/distutils/command/bdist_rpm.pyo
mò
‚=5Dc@s™dZdZdkZdkZdkZdkZdkTdklZdk	l
Z
dklZdk
lZdkTdklZd	efd
„ƒYZdS(swdistutils.command.bdist_rpm

Implements the Distutils 'bdist_rpm' command (create RPM source and binary
distributions).s5$Id: bdist_rpm.py 37828 2004-11-10 22:23:15Z loewis $N(t*(sCommand(sDEBUG(sget_platform(s
write_file(slogt	bdist_rpmc*Bs]tZdZdedfdedfdddfd	ed
fdedfd
edfdedfdedfdedfdedfdedfdedfdedfdedfded fd!ed"fd#ed$fd%ed&fd'ed(fd)ed*fd+ed,fd-ed.fd/ed0fd1ed2fd3d4d5fd6ed7fd8ed9fd:ed;fd<ed=fd>ed?fd@edAfdBedCfdDedEfdFedGfdHedIfdJedKfdLedMfdNedOfdPedQfdRedSfg(Zd3d8d<d1gZhd6d3<d:d8<d>d<<ZdT„ZdU„ZdV„Z	dW„Z
dX„ZdY„ZRS(ZNscreate an RPM distributionsbdist-base=s/base directory for creating built distributionss	rpm-base=sdbase directory for creating RPMs (defaults to "rpm" under --bdist-base; must be specified for RPM 2)s	dist-dir=tdsDdirectory to put final RPM files in (and .spec files if --spec-only)spython=sMpath to Python interpreter to hard-code in the .spec file (default: "python")s
fix-pythonsLhard-code the exact path to the current Python interpreter in the .spec files	spec-onlysonly regenerate spec filessource-onlysonly generate source RPMsbinary-onlysonly generate binary RPMs	use-bzip2s7use bzip2 instead of gzip to create source distributionsdistribution-name=sgname of the (Linux) distribution to which this RPM applies (*not* the name of the module distribution!)sgroup=s9package classification [default: "Development/Libraries"]srelease=sRPM release numbersserial=sRPM serial numbersvendor=saRPM "vendor" (eg. "Joe Blow <joe@example.com>") [default: maintainer or author from setup script]s	packager=sARPM packager (eg. "Jane Doe <jane@example.net>")[default: vendor]s
doc-files=s6list of documentation files (space or comma-separated)s
changelog=s
RPM changelogsicon=sname of icon files	provides=s%capabilities provided by this packages	requires=s%capabilities required by this packages
conflicts=s-capabilities which conflict with this packagesbuild-requires=s+capabilities required to build this packages
obsoletes=s*capabilities made obsolete by this packages
no-autoreqs+do not automatically calculate dependenciess	keep-temptks"don't clean up RPM build directorysno-keep-temps&clean up RPM build directory [default]suse-rpm-opt-flagss8compile with RPM_OPT_FLAGS when building from source RPMsno-rpm-opt-flagss&do not pass any RPM CFLAGS to compilers	rpm3-modes"RPM 3 compatibility mode (default)s	rpm2-modesRPM 2 compatibility modesprep-script=s3Specify a script for the PREP phase of RPM buildings
build-script=s4Specify a script for the BUILD phase of RPM buildingspre-install=s:Specify a script for the pre-INSTALL phase of RPM buildingsinstall-script=s6Specify a script for the INSTALL phase of RPM buildings
post-install=s;Specify a script for the post-INSTALL phase of RPM buildingspre-uninstall=s<Specify a script for the pre-UNINSTALL phase of RPM buildingspost-uninstall=s=Specify a script for the post-UNINSTALL phase of RPM buildings
clean-script=s4Specify a script for the CLEAN phase of RPM buildingsverify-script=s6Specify a script for the VERIFY phase of the RPM buildsforce-arch=s0Force an architecture onto the RPM build processcCsZd|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_!d|_"d|_#d|_$d|_%d|_&d|_'dS(Nii((tNonetselft
bdist_basetrpm_basetdist_dirtpythont
fix_pythont	spec_onlytbinary_onlytsource_onlyt	use_bzip2tdistribution_nametgrouptreleasetserialtvendortpackagert	doc_filest	changelogticontprep_scripttbuild_scripttinstall_scripttclean_scriptt
verify_scripttpre_installtpost_installt
pre_uninstalltpost_uninstalltpreptprovidestrequirest	conflictstbuild_requirest	obsoletest	keep_temptuse_rpm_opt_flagst	rpm3_modet
no_autoreqt
force_arch(R((t3/usr/lib64/python2.4/distutils/command/bdist_rpm.pytinitialize_optionsŠsL																																					cCs$|iddƒ|idjo6|ip
td‚ntii|i	dƒ|_n|i
djo'|ioti
|_
q¤d|_
n|io
td‚ntidjotdti‚n|io|io
td	‚n|iiƒp
d
|_n|idd
ƒ|iƒdS(NtbdistRs)you must specify --rpm-base in RPM 2 modetrpmR	s8--python and --fix-python are mutually exclusive optionstposixs9don't know how to create RPM distributions on platform %ss6cannot supply both '--source-only' and '--binary-only'iR(s
bdist_bases
bdist_base(sdist_dirsdist_dir(Rtset_undefined_optionsRRR)tDistutilsOptionErrortostpathtjoinRR	R
tsyst
executabletnametDistutilsPlatformErrorRR
tdistributionthas_ext_modulesR(tfinalize_package_data(R((R,tfinalize_options¹s&







cCsØ|iddƒ|idd|iiƒ|iiƒfƒ|idƒ|idƒt|iƒtjoLxIdD]=}t
ii|ƒo$||ijo|ii
|ƒqsqsWn|id	d
ƒ|idƒ|idƒ|id
ƒ|i|iƒ|_|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒ|idƒdS(NRsDevelopment/LibrariesRs%s <%s>RRtREADMEs
README.txtRt1RRRRRRRRRRRRR R"R#R$R%R&R+(R>s
README.txt(Rt
ensure_stringR:tget_contacttget_contact_emailtensure_string_listttypeRtListTypetreadmeR3R4texiststappendt_format_changelogRtensure_filename(RRF((R,R<Ûs>	#

#

















cCs@to9dGHdG|iGHdG|iGHdG|iGHdG|iGHn|io|i}
|i	|
ƒnOh}x;d$D]3}ti
i|i|ƒ||<|i	||ƒqqW|d}
ti
i|
d|iiƒƒ}|it||iƒfd|ƒ|iodSn|id
ƒ}|iodg|_n
dg|_|id
ƒ|iƒd}	|d}|i|	|ƒ|ioAti
i |iƒo|i|i|ƒqÀt!d|i‚nt"i#dƒdg}ti
i dƒpti
i dƒo
dg}n|i%o|i&dƒn)|i'o|i&dƒn|i&dƒ|i(o*|i)ddti
i*|iƒgƒn|i+p|i&dƒn|i&|ƒd}|d}d|d }d!|||f}
ti0|
ƒ}g}d}xa|i5ƒ}|pPnt7i8t7i9|ƒƒ}|i&|d"ƒ|djo|d}q÷q÷W|i;ƒ}|ot=d#t>|
ƒƒ‚n|i?|ƒ|i@p |i'p0ti
i|d
|ƒ}|iB||iƒn|i%pXxU|D]I}ti
i|d	|ƒ}ti
i |ƒo|iB||iƒqçqçWq<ndS(%Nsbefore _get_package_data():svendor =s
packager =sdoc_files =schangelog =tSOURCEStSPECStBUILDtRPMStSRPMSs%s.specswriting '%s'tsdisttbztartgztarisicon file '%s' does not exists
building RPMsR/s/usr/bin/rpmbuilds
/bin/rpmbuildtrpmbuilds-bss-bbs-bas--defines
_topdir %ss--cleans%{name}-%{version}-%{release}s.src.rpms%{arch}/s.%{arch}.rpms%rpm -q --qf '%s %s\n' --specfile '%s'isFailed to execute: %s(RKRLRMRNRO(DtDEBUGRRRRRRRtspec_dirtmkpathtrpm_dirRR3R4R5RR:tget_namet	spec_pathtexecutet
write_filet_make_spec_filetreinitialize_commandRPRtformatstrun_commandtget_archive_filestsourcet
source_dirt	copy_fileRRGtDistutilsFileErrortlogtinfotrpm_cmdR
RHRR)textendtabspathR't
nvr_stringtsrc_rpmtnon_src_rpmtq_cmdtpopentouttbinary_rpmsRt
source_rpmtreadlinetlinetstringtsplittstriptltclosetstatustDistutilsExecErrortreprtspawntdry_runtsrpmt	move_fileR/(RRPRWRkR/RbRoRgRYRaRURyRpRmRqRsRlRRjRwR~((R,trun
s 
	
	





	&




*







c	Csád|iiƒd|iiƒiddƒd|iiddƒdd|iiƒg}|idd	d
gƒ|i	o|i
dƒn|i
dƒ|id
|iiƒd|iddgƒ|i
p%|iiƒp|i
dƒq	n|i
d|i
ƒx…d@D]}}t|ti|ƒƒ}t|ƒtjo$|i
d|ti|ƒfƒq|d?j	o|i
d||fƒqqW|iiƒdjo|i
d|iiƒƒn|io|i
d|iƒn|io!|i
dti|iƒƒn|io$|i
dtii|iƒƒn|io|i
dƒn|idd |ii ƒgƒd!|i!}|i#od"|}ndAd&d'|fd(d)d*|i!fdBdCdDdEdFdGg	}x|D]‡\}}}t||ƒ}|p|o[|idd8|gƒ|o,|iti(t)|d9ƒi*ƒd:ƒƒqg|i
|ƒqàqàW|idd;d<gƒ|i+o!|i
d=ti|i+ƒƒn|i,o'|idd>gƒ|i|i,ƒn|S(HsiGenerate the text of an RPM spec file and return it as a
        list of strings (one per line).
        s
%define name s%define version t-t_s%define release ts	Summary: s
Name: %{name}sVersion: %{version}sRelease: %{release}s#Source0: %{name}-%{version}.tar.bz2s"Source0: %{name}-%{version}.tar.gzs	License: sGroup: s>BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildrootsPrefix: %{_prefix}sBuildArch: noarchs
BuildArch: %stVendortPackagertProvidestRequirest	Conflictst	Obsoletess%s: %stUNKNOWNsUrl: sDistribution: sBuildRequires: sIcon: s
AutoReq: 0s%descriptions%s setup.py buildsenv CFLAGS="$RPM_OPT_FLAGS" R!Rs%setuptbuildRtinstallRsC%s setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILEStcleanRsrm -rf $RPM_BUILD_ROOTtverifyscriptRtpreRtpostRtpreunRtpostunR t%trs
s%files -f INSTALLED_FILESs%defattr(-,root,root)s%doc s
%changelogN(R„R…R†R‡RˆR‰(sprepsprep_scripts%setup(Rsclean_scriptsrm -rf $RPM_BUILD_ROOT(RŽs
verify_scriptN(Rspre_installN(Rspost_installN(R‘s
pre_uninstallN(R’spost_uninstallN(-RR:RXtget_versiontreplaceRtget_descriptiont	spec_fileRhRRHtget_licenseRR+R;tfieldtgetattrRttlowertvalRDRER5Rtget_urlRR%RR3R4tbasenameR*tget_long_descriptionR	t	def_buildR(tscript_optionstrpm_opttattrtdefaultRutopentreadRR(	RR¡RR˜R¥R£R¢RšR¤((R,R\}s`[

-
$


!
$


:,
!
cCs¿|p|Sng}xtiti|ƒdƒD]p}ti|ƒ}|ddjo|id|gƒq1|ddjo|i|ƒq1|id|ƒq1W|dp|d=n|S(sKFormat the changelog correctly and convert it to a list of strings
        s
iRRƒRs  N(Rt
new_changelogRtRuRvRsRhRH(RRR¨Rs((R,RIs(
t__name__t
__module__tdescriptionRtuser_optionstboolean_optionstnegative_optR-R=R<R€R\RI(((R,Rsÿçj!	/	"	/	s	™(t__doc__t__revision__R6R3Rttglobttypestdistutils.coretCommandtdistutils.debugRTtdistutils.utiltget_platformtdistutils.file_utilR[tdistutils.errorst	distutilsReR(RR°RtR±R6R[R´R·RTR3Re((R,t?s	






Anon7 - 2021