config root man

Current Path : /usr/local/lib/python2.5/distutils/command/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/distutils/command/bdist_rpm.pyc

³ò
h”Rc@sÊdZdZddkZddkZddkZddkZddkTddklZddk	l
Z
ddklZddk
lZddkTdd	klZdd
klZdefd„ƒYZdS(
swdistutils.command.bdist_rpm

Implements the Distutils 'bdist_rpm' command (create RPM source and binary
distributions).s>$Id: bdist_rpm.py 52742 2006-11-12 18:56:18Z martin.v.loewis $iÿÿÿÿN(t*(tCommand(tDEBUG(tget_platform(t
write_file(tget_python_version(tlogt	bdist_rpmc*BsþeZdZd[d\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdydzd{d|d}d~dd€dd‚g(Zd2d7d;d0gZhd2d5<d7d9<d;d=<ZdS„ZdT„ZdU„Z	dV„Z
dW„ZdX„ZdY„Z
RS(ƒscreate 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('tNonet
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(tself((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pytinitialize_options‹sL																																					cCs$|iddƒ|idjo6|ip
td‚ntii|idƒ|_n|i	djo'|i
oti|_	q¤d|_	n|i
o
td‚nti
djotdti
‚n|io|io
td	‚n|iiƒp
d
|_n|idd
ƒ|iƒdS(NtbdistRs)you must specify --rpm-base in RPM 2 modetrpmRs8--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(tset_undefined_optionsRR
R.tDistutilsOptionErrortostpathtjoinRRRtsyst
executabletnametDistutilsPlatformErrorRRtdistributionthas_ext_modulesR-tfinalize_package_data(R1((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pytfinalize_optionsºs0







cCsØ|iddƒ|idd|iiƒ|iiƒfƒ|idƒ|idƒt|iƒtjoLxIdD]=}ti	i
|ƒ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.txtRt1RRRRRRRR R!R"R#R$R%R'R(R)R*R+R0(RCs
README.txt(t
ensure_stringR?tget_contacttget_contact_emailtensure_string_listttypeRtListTypeR8R9texiststappendt_format_changelogRtensure_filename(R1treadme((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pyRAÜs@	

#

















cCs‹to9dGHdG|iGHdG|iGHdG|iGHdG|iGHn|io|i}|i|ƒnOh}x;d%D]3}ti	i
|i|ƒ||<|i||ƒqqW|d}ti	i
|d|ii
ƒƒ}|it||iƒfd|ƒ|iodSn|ii}|id
ƒ}|iodg|_n
dg|_|id
ƒ||i_|iƒd}|d}|i||ƒ|ioAti	i|iƒo|i|i|ƒqÙtd|i‚ntidƒdg}	ti	idƒpti	idƒo
dg}	n|io|	idƒn)|io|	idƒn|	idƒ|i o*|	i!ddti	i"|iƒgƒn|i#p|	idƒn|	i|ƒd}
|
d}d|
d }d!|||f}
ti$|
ƒ}g}d}xy|i&ƒ}|pPnt'i(t'i)|ƒƒ}t*|ƒd"jpt+‚|i|d#ƒ|djo|d}qq|i,ƒ}|ot-d$t.|
ƒƒ‚n|i/|	ƒ|i0pº|ipJti	i
|d
|ƒ}ti	i|ƒpt+‚|i1||iƒn|ipXxU|D]I}ti	i
|d	|ƒ}ti	i|ƒo|i1||iƒq2q2Wq‡ndS(&Nsbefore _get_package_data():svendor =s
packager =sdoc_files =schangelog =tSOURCEStSPECStBUILDtRPMStSRPMSs%s.specswriting '%s'tsdisttbztartgztarisicon file '%s' does not exists
building RPMsR4s/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'iisFailed to execute: %s(RPRQRRRSRT(2RRRRRRR
tmkpathR8R9R:RR?tget_nametexecuteRt_make_spec_filet
dist_filestreinitialize_commandRtformatstrun_commandtget_archive_filest	copy_fileRRKtDistutilsFileErrorRtinfoRRLRR.textendtabspathR,tpopenR
treadlinetstringtsplittstriptlentAssertionErrortclosetDistutilsExecErrortreprtspawntdry_runt	move_file(R1tspec_dirtrpm_dirRt	spec_pathtsaved_dist_filesRUtsourcet
source_dirtrpm_cmdt
nvr_stringtsrc_rpmtnon_src_rpmtq_cmdtouttbinary_rpmst
source_rpmtlinetltstatustsrpmR4((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pytruns¬
	
	






	




	!







cCs"tii|itii|ƒƒS(N(R8R9R:R
tbasename(R1R9((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pyt
_dist_pathsc

Csd|iiƒd|iiƒiddƒd|iiƒd|iiddƒdd|iiƒg}|id	d
dgƒ|io|idƒn|id
ƒ|id|ii	ƒd|i
ddgƒ|ip%|iiƒp|idƒqn|id|iƒx…dBD]}}t
|ti|ƒƒ}t|ƒtjo$|id|ti|ƒfƒq |dCj	o|id||fƒq q W|iiƒdjo|id|iiƒƒn|io|id|iƒn|io!|idti|iƒƒn|io$|idtii|iƒƒn|io|id ƒn|idd!|iiƒgƒd"|itiitid#ƒf}d$|}|i od%|}ndDd)d*|fd+d,d-|fdEdFdGdHdIdJg	}x|D]‡\}}}	t
||ƒ}|p|	o[|idd;|gƒ|o,|iti!t"|d<ƒi#ƒd=ƒƒq—|i|	ƒqqW|idd>d?gƒ|i$o!|id@ti|i$ƒƒn|i%o'|iddAgƒ|i|i%ƒn|S(KsiGenerate 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 unmangled_version s%define release ts	Summary: s
Name: %{name}sVersion: %{version}sRelease: %{release}s-Source0: %{name}-%{unmangled_version}.tar.bz2s,Source0: %{name}-%{unmangled_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 %sis%s buildsenv CFLAGS="$RPM_OPT_FLAGS" R&Rs&%setup -n %{name}-%{unmangled_version}tbuildRtinstallRs:%s install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILEStcleanR srm -rf $RPM_BUILD_ROOTtverifyscriptR!tpreR"tpostR#tpreunR$tpostunR%t%trs
s%files -f INSTALLED_FILESs%defattr(-,root,root)s%doc s
%changelog(RŒRRŽRRR‘N(sprepsprep_scripts&%setup -n %{name}-%{unmangled_version}(R•sclean_scriptsrm -rf $RPM_BUILD_ROOT(R–s
verify_scriptN(R—spre_installN(R˜spost_installN(R™s
pre_uninstallN(Ršspost_uninstallN(&R?RZtget_versiontreplaceRtget_descriptionReRRLtget_licenseRR0R@tgetattrRitlowerRIRJR:R
tget_urlRR*RR8R9R‡R/tget_long_descriptionRR;targvR-RjtopentreadRR(
R1t	spec_filetfieldtvaltdef_setup_callt	def_buildtscript_optionstrpm_opttattrtdefault((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pyR\‚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‹R‰s  (RiRjRkReRL(R1Rt
new_changelogR‚((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pyRMsN(sbdist-base=Ns/base directory for creating built distributions(s	rpm-base=Nsdbase directory for creating RPMs (defaults to "rpm" under --bdist-base; must be specified for RPM 2)(s	dist-dir=RsDdirectory to put final RPM files in (and .spec files if --spec-only)(spython=NsMpath to Python interpreter to hard-code in the .spec file (default: "python")(s
fix-pythonNsLhard-code the exact path to the current Python interpreter in the .spec file(s	spec-onlyNsonly regenerate spec file(ssource-onlyNsonly generate source RPM(sbinary-onlyNsonly generate binary RPM(s	use-bzip2Ns7use bzip2 instead of gzip to create source distribution(sdistribution-name=Nsgname of the (Linux) distribution to which this RPM applies (*not* the name of the module distribution!)(sgroup=Ns9package classification [default: "Development/Libraries"](srelease=NsRPM release number(sserial=NsRPM serial number(svendor=NsaRPM "vendor" (eg. "Joe Blow <joe@example.com>") [default: maintainer or author from setup script](s	packager=NsARPM packager (eg. "Jane Doe <jane@example.net>")[default: vendor](s
doc-files=Ns6list of documentation files (space or comma-separated)(s
changelog=Ns
RPM changelog(sicon=Nsname of icon file(s	provides=Ns%capabilities provided by this package(s	requires=Ns%capabilities required by this package(s
conflicts=Ns-capabilities which conflict with this package(sbuild-requires=Ns+capabilities required to build this package(s
obsoletes=Ns*capabilities made obsolete by this package(s
no-autoreqNs+do not automatically calculate dependencies(s	keep-tempR	s"don't clean up RPM build directory(sno-keep-tempNs&clean up RPM build directory [default](suse-rpm-opt-flagsNs8compile with RPM_OPT_FLAGS when building from source RPM(sno-rpm-opt-flagsNs&do not pass any RPM CFLAGS to compiler(s	rpm3-modeNs"RPM 3 compatibility mode (default)(s	rpm2-modeNsRPM 2 compatibility mode(sprep-script=Ns3Specify a script for the PREP phase of RPM building(s
build-script=Ns4Specify a script for the BUILD phase of RPM building(spre-install=Ns:Specify a script for the pre-INSTALL phase of RPM building(sinstall-script=Ns6Specify a script for the INSTALL phase of RPM building(s
post-install=Ns;Specify a script for the post-INSTALL phase of RPM building(spre-uninstall=Ns<Specify a script for the pre-UNINSTALL phase of RPM building(spost-uninstall=Ns=Specify a script for the post-UNINSTALL phase of RPM building(s
clean-script=Ns4Specify a script for the CLEAN phase of RPM building(sverify-script=Ns6Specify a script for the VERIFY phase of the RPM build(sforce-arch=Ns0Force an architecture onto the RPM build process(t__name__t
__module__tdescriptionR
tuser_optionstboolean_optionstnegative_optR2RBRAR†RˆR\RM(((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pyRsº			
		/	"	/	t		›(t__doc__t__revision__R;R8Ritglobttypestdistutils.coreRtdistutils.debugRtdistutils.utilRtdistutils.file_utilRtdistutils.errorstdistutils.sysconfigRt	distutilsRR(((s7/usr/local/lib/python2.5/distutils/command/bdist_rpm.pys<module>s$



Man Man