hyb
2025-12-23 10f3a1daddfbc7fa3dd2069197d83e8b6ef19176
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Ë
@ñúhUãó–—dZddlZddlZddlZddlmZddlmZddlm    Z    ddl
m Z ddl m Z mZmZmZdd    lmZdd
lmZGd „d e    «Zy) zwdistutils.command.bdist_rpm
 
Implements the Distutils 'bdist_rpm' command (create RPM source and binary
distributions).éN)Úlog)ÚClassVaré)ÚCommand)ÚDEBUG)ÚDistutilsExecErrorÚDistutilsFileErrorÚDistutilsOptionErrorÚDistutilsPlatformError)Ú
write_file)Úget_python_versioncóŽ—eZdZUdZgd¢Zgd¢Zeeee    d<ddddœZ
ee eefe    d    <d
„Z dd „Z dd „Zdd„Zd„Zd„Zd„Zy )Ú    bdist_rpmzcreate an RPM distribution)))z bdist-base=Nz/base directory for creating built distributions)z    rpm-base=Nzdbase directory for creating RPMs (defaults to "rpm" under --bdist-base; must be specified for RPM 2))z    dist-dir=ÚdzDdirectory to put final RPM files in (and .spec files if --spec-only))zpython=NzMpath to Python interpreter to hard-code in the .spec file [default: "python"])z
fix-pythonNzLhard-code the exact path to the current Python interpreter in the .spec file)z    spec-onlyNzonly regenerate spec file)z source-onlyNzonly generate source RPM)z binary-onlyNzonly generate binary RPM)z    use-bzip2Nz7use bzip2 instead of gzip to create source distribution)zdistribution-name=Nzgname of the (Linux) distribution to which this RPM applies (*not* the name of the module distribution!))zgroup=Nz9package classification [default: "Development/Libraries"])zrelease=NzRPM release number)zserial=NzRPM serial number)zvendor=NzaRPM "vendor" (eg. "Joe Blow <joe@example.com>") [default: maintainer or author from setup script])z    packager=NzBRPM packager (eg. "Jane Doe <jane@example.net>") [default: vendor])z
doc-files=Nz6list of documentation files (space or comma-separated))z
changelog=Nz RPM changelog)zicon=Nzname of icon file)z    provides=Nz%capabilities provided by this package)z    requires=Nz%capabilities required by this package)z
conflicts=Nz-capabilities which conflict with this package)zbuild-requires=Nz+capabilities required to build this package)z
obsoletes=Nz*capabilities made obsolete by this package)ú
no-autoreqNz+do not automatically calculate dependencies)ú    keep-tempÚkz"don't clean up RPM build directory)ú no-keep-tempNz&clean up RPM build directory [default])úuse-rpm-opt-flagsNz8compile with RPM_OPT_FLAGS when building from source RPM)úno-rpm-opt-flagsNz&do not pass any RPM CFLAGS to compiler)ú    rpm3-modeNz"RPM 3 compatibility mode (default))ú    rpm2-modeNzRPM 2 compatibility mode)z prep-script=Nz3Specify a script for the PREP phase of RPM building)z build-script=Nz4Specify a script for the BUILD phase of RPM building)z pre-install=Nz:Specify a script for the pre-INSTALL phase of RPM building)zinstall-script=Nz6Specify a script for the INSTALL phase of RPM building)z post-install=Nz;Specify a script for the post-INSTALL phase of RPM building)zpre-uninstall=Nz<Specify a script for the pre-UNINSTALL phase of RPM building)zpost-uninstall=Nz=Specify a script for the post-UNINSTALL phase of RPM building)z clean-script=Nz4Specify a script for the CLEAN phase of RPM building)zverify-script=Nz6Specify a script for the VERIFY phase of the RPM build)z force-arch=Nz0Force an architecture onto the RPM build process)ÚquietÚqz3Run the INSTALL phase of RPM building in quiet mode)rrrrrÚboolean_optionsrrr)rrrÚ negative_optcó&—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|_$d|_%d|_&y)NFT)'Ú
bdist_baseÚrpm_baseÚdist_dirÚpythonÚ
fix_pythonÚ    spec_onlyÚ binary_onlyÚ source_onlyÚ    use_bzip2Údistribution_nameÚgroupÚreleaseÚserialÚvendorÚpackagerÚ    doc_filesÚ    changelogÚiconÚ prep_scriptÚ build_scriptÚinstall_scriptÚ clean_scriptÚ verify_scriptÚ pre_installÚ post_installÚ pre_uninstallÚpost_uninstallÚprepÚprovidesÚrequiresÚ    conflictsÚbuild_requiresÚ    obsoletesÚ    keep_tempÚuse_rpm_opt_flagsÚ    rpm3_modeÚ
no_autoreqÚ
force_archr©Úselfs úZH:\Change_password\venv_build\Lib\site-packages\setuptools/_distutils/command/bdist_rpm.pyÚinitialize_optionszbdist_rpm.initialize_optionsšs!€ØˆŒØˆŒ ؈Œ ؈Œ ؈ŒØˆŒØˆÔØˆÔØˆŒà!%ˆÔ؈Œ
؈Œ ؈Œ ؈Œ ؈Œ ؈ŒØˆŒØˆŒ    àˆÔØ ˆÔØ"ˆÔØ ˆÔØ!ˆÔØˆÔØ ˆÔØ!ˆÔØ"ˆÔ؈Œ    ØˆŒ ؈Œ ؈ŒØ"ˆÔ؈ŒàˆŒØ!%ˆÔ؈ŒØˆŒàˆŒØˆ
óNcó—|jdd«|j€F|js td«‚tj
j |jd«|_|j€*|jrtj|_nd|_n|jr td«‚tjdk7rtdtj›«‚|jr|jr td    «‚|j j#«sd
|_|jdd «|j'«y) NÚbdist)rrz)you must specify --rpm-base in RPM 2 modeÚrpmÚpython3z8--python and --fix-python are mutually exclusive optionsÚposixz7don't know how to create RPM distributions on platform z6cannot supply both '--source-only' and '--binary-only'F)r r )Úset_undefined_optionsrrAr
ÚosÚpathÚjoinrr!r"ÚsysÚ
executableÚnamer r$r%Ú distributionÚhas_ext_modulesr@Úfinalize_package_datarDs rFÚfinalize_optionszbdist_rpm.finalize_optionsÇs    €Ø ×"Ñ" 7Ð,HÔIØ =‰=Ð  Ø—>’>Ü*Ð+VÓWÐWÜŸG™GŸL™L¨¯©¸%Ó@ˆDŒMà ;‰;Р؏ŠÜ!Ÿn™n• à'• Ø _Š_Ü&ØJóð ô 7‰7gÒ Ü(ØIÌ"Ï'É'ÈÐSóð ð × Ò  × 0Ò 0Ü&ØHóð ð
× Ñ ×0Ñ0Ô2Ø%*ˆDÔ "à ×"Ñ" 7Ð,DÔEØ ×"Ñ"Õ$rHcó¼—|jdd«|jd|jj«›d|jj«›d«|jd«|j    d«t |j t«rQdD]L}tjj|«sŒ#||j vsŒ2|j j|«ŒN|jd    d
«|jd «|jd «|jd «|j|j«|_ |jd«|jd«|jd«|jd«|jd«|jd«|jd«|jd«|jd«|jd«|j    d«|j    d«|j    d«|j    d«|j    d«|jd«y)Nr(zDevelopment/Librariesr+z <ú>r,r-)ÚREADMEz
README.txtr)Ú1r*r'r.r/r0r1r2r3r4r5r6r7r8r:r;r<r=r>rC)Ú ensure_stringrUÚ get_contactÚget_contact_emailÚensure_string_listÚ
isinstancer-ÚlistrOrPÚexistsÚappendÚ_format_changelogr.Úensure_filename)rEÚreadmes  rFrWzbdist_rpm.finalize_package_dataèsõ€Ø ×ј7Ð$;Ô<Ø ×ÑØ Ø× Ñ ×,Ñ,Ó.Ð/¨r°$×2CÑ2C×2UÑ2UÓ2WÐ1XÐXYÐ Zô    
ð     ×ј:Ô&Ø ×Ñ  Ô,Ü d—n‘n¤dÔ +Ø2ò 2Ü—7‘7—>‘> &Õ)¨f¸D¿N¹NÒ.JØ—N‘N×)Ñ)¨&Õ1ð 2ð     ×ј9 cÔ*Ø ×ј8Ô$à ×ÑÐ.Ô/à ×ј;Ô'à×/Ñ/°·±Ó?ˆŒà ×јVÔ$à ×ј]Ô+Ø ×ј^Ô,Ø ×ÑÐ-Ô.Ø ×ј^Ô,Ø ×ј_Ô-Ø ×ј]Ô+Ø ×ј^Ô,Ø ×ј_Ô-Ø ×ÑÐ-Ô.ð      ×Ñ 
Ô+Ø ×Ñ 
Ô+Ø ×Ñ  Ô,Ø ×ÑР0Ô1Ø ×Ñ  Ô,à ×ј<Õ(rHcóZ —trctd«td|j«td|j«td|j«td|j
«|j r|j}|j|«nOi}dD]C}tjj|j|«||<|j||«ŒE|d}tjj||jj«›d«}|jt ||j#«fd    |›d
«|j ry|jj$dd}|j'd «}|j(r    d g|_nd g|_|j-d «||j_|j/«d}d}|j1||«|j2r_tjj5|j2«r|j1|j2|«nt7d|j2›d«‚t9j:d«dg}    |j<r|    j?d«n/|j@r|    j?d«n|    j?d«|    jCdd|jD›g«|jFr=|    jCddtjjI|j«›g«|jJs|    j?d«|jLr|    j?d«|    j?|«d}
|
dz} d|
zdz} d | ›d!| ›d"|›d
} tjN| «}    g}d}    |jQ«}|snJ|jS«jU«}tW|«d#k(sJ‚|j?|d$«|€|d}Œ]|jY«}|rt[d%| ›«‚    |jY«|j]|    «|j^sÈ|jja«r tc«}nd&}|j@s²tjj|d'|«}tjj5|«sJ‚|je||j«tjj|j|«}|jj$j?d(||f«|j<sÖ|D]Ð}tjj|d)|«}tjj5|«sŒF|je||j«tjj|jtjjg|««}|jj$j?d(||f«ŒÒyyy#|jY«wxYw)*Nzbefore _get_package_data():zvendor =z
packager =z doc_files =z changelog =)ÚSOURCESÚSPECSÚBUILDÚRPMSÚSRPMSrjz.specz    writing 'ú'ÚsdistÚbztarÚgztarrriz icon file 'z' does not existz building RPMsÚrpmbuildz-bsz-bbz-baz--definez    __python z_topdir z--cleanz--quietz%{name}-%{version}-%{release}z.src.rpmz%{arch}/z .%{arch}.rpmz rpm -q --qf 'ú z\n' --specfile 'rézFailed to execute: Úanyrmrrl)4rÚprintr+r,r-r.r#r ÚmkpathrOrPrQrrUÚget_nameÚexecuter Ú_make_spec_fileÚ
dist_filesÚreinitialize_commandr&ÚformatsÚ run_commandÚget_archive_filesÚ    copy_filer/rcr    rÚinfor%rdr$Úextendr!rAÚabspathr?rÚpopenÚreadlineÚstripÚsplitÚlenÚcloserÚspawnÚdry_runrVr Ú    move_fileÚbasename)rEÚspec_dirÚrpm_dirrÚ    spec_pathÚsaved_dist_filesroÚsourceÚ
source_dirÚrpm_cmdÚ
nvr_stringÚsrc_rpmÚ non_src_rpmÚq_cmdÚoutÚ binary_rpmsÚ
source_rpmÚlineÚellÚstatusÚ    pyversionÚsrpmÚfilenamerKs                        rFÚrunz bdist_rpm.runs€Ý Ü Ð/Ô 0Ü *˜dŸk™kÔ *Ü , § ¡ Ô .Ü - §¡Ô 0Ü - §¡Ô 0ð >Š>Ø—}‘}ˆHØ K‰K˜Õ !àˆGØCò (ÜŸW™WŸ\™\¨$¯-©-¸Ó;˜‘
Ø— ‘ ˜G A™JÕ'ð (ð˜wÑ'ˆHô—G‘G—L‘L ¨d×.?Ñ.?×.HÑ.HÓ.JÐ-KÈ5Ð+QÓRˆ    Ø  ‰ Ü ˜ D×$8Ñ$8Ó$:Ð;¸yÈÈ ÐSTÐ=Uô    
ð >Š>Ø ð ×,Ñ,×7Ñ7¹Ð:ÐØ×)Ñ)¨'Ó2ˆØ >Š>Ø$˜IˆEMà$˜IˆEŒMØ ×јÔ!Ø'7ˆ×ÑÔ$à×(Ñ(Ó*¨1Ñ-ˆØ˜YÑ'ˆ
Ø ‰v˜zÔ*à 9Š9܏w‰w~‰~˜dŸi™iÔ(Ø—‘˜tŸy™y¨*Õ5ä(¨;°t·y±y°kÐAQÐ)RÓSÐSô     ‰Ô!ؐ,ˆà × Ò Ø N‰N˜5Õ !Ø × Ò Ø N‰N˜5Õ !à N‰N˜5Ô !؏‰˜
 i°· ± ¨}Ð$=Ð>Ô?Ø >Š>Ø N‰N˜J¨(´2·7±7·?±?À4Ç=Á=Ó3QÐ2RÐ(SÐTÔ U؏~Š~Ø N‰N˜9Ô %à :Š:Ø N‰N˜9Ô %à‰yÔ!ð
5ˆ
ؘzÑ)ˆØ  :Ñ-°Ñ>ˆ Ø       ¨¨;¨-Ð7GÈ    À{ÐRSÐTˆäh‰hu‹oˆð    ØˆK؈JØØ—|‘|“~ÙØØ—j‘j“l×(Ñ(Ó*Ü˜3“x 1’}Ð$}Ø×"Ñ" 3 q¡6Ô*àÐ%Ø!$ Q¡Jðð—Y‘Y“[ˆFÙÜ(Ð+>¸u¸iÐ)HÓIÐIðð I‰IŒKà 
‰
7Ôà|‹|Ø× Ñ ×0Ñ0Ô2Ü.Ó0‘    à!    à×#Ò#Ü—w‘w—|‘| G¨GÑ$4°jÓAÜ—w‘w—~‘~ dÔ+Ð+Ð+Ø—‘˜t T§]¡]Ô3ÜŸ7™7Ÿ<™<¨¯ © °zÓBØ×!Ñ!×,Ñ,×3Ñ3°[À)ÈXÐ4VÔWà×#Ò#Ø&ò    CÜŸ'™'Ÿ,™, w¨v¡¸Ó<CÜ—w‘w—~‘~ cÕ*ØŸ™ s¨D¯M©MÔ:Ü#%§7¡7§<¡<°· ± ¼r¿w¹w×?OÑ?OÐPSÓ?TÓ#U˜Ø×)Ñ)×4Ñ4×;Ñ;Ø'Ø%Ø$ð=õñ     ð$ðøð     I‰IKús ÎBXØX*có—tjj|jtjj    |««S)N)rOrPrQr r)rErPs  rFÚ
_dist_pathzbdist_rpm._dist_path–s*€Üw‰w|‰|˜DŸM™M¬2¯7©7×+;Ñ+;¸DÓ+AÓBÐBrHc    ó¶
—d|jj«zd|jj«jdd«zd|jj«zd|jjdd«zdd|jj «xsd    zg}t jd
«}d j|j«Dcgc]}d |j«›d ‘Œc}«}d}d}|j||«}||k7r(|jd«|jd|zd z«|jgd¢«|jr|jd«n|jd«|jd|jj«xsd    zd|jzddg«|j s,|jj#«s0|jd«n|jd|j ›«dD]v}t%||j'««}t)|t*«r1|jdj-|dj|«««Œ^|€Œa|j|›d|›«Œx|jj/«r,|jd |jj/«z«|j0r|jd!|j0z«|j2r-|jd"dj|j2«z«|j4r;|jd#t6j8j;|j4«z«|j<r|jd$«|jdd%|jj?«xsdg«|j@›dt6j8j;tBjDd&«›}    |    ›d'}
|jFrd(|
z}
|    ›d)} d*d+d,|
fd-d.| fd/d0d1d2d3d4g    } | D]ƒ\} }}t%||«}|s|sŒ|jdd5| zg«|rCtI|«5}|j|jK«jMd ««ddd«Œs|j|«Œ…|jgd6¢«|jNr-|jd7dj|jN«z«|jPr.|jdd8g«|j|jP«|Scc}w#1swYŒxYw)9ziGenerate the text of an RPM spec file and return it as a
        list of strings (one per line).
        z %define name z%define version ú-Ú_z%define unmangled_version z%define release Úz    Summary: ÚUNKNOWNzrpm --eval %{__os_install_post}ú
ú  z \zbrp-python-bytecompile \
z%brp-python-bytecompile %{__python} \
z3# Workaround for https://bugs.python.org/issue14443z%define __os_install_post )z Name: %{name}zVersion: %{version}zRelease: %{release}z-Source0: %{name}-%{unmangled_version}.tar.bz2z,Source0: %{name}-%{unmangled_version}.tar.gzz    License: zGroup: z>BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildrootzPrefix: %{_prefix}zBuildArch: noarchz BuildArch: )ÚVendorÚPackagerÚProvidesÚRequiresÚ    ConflictsÚ    Obsoletesz{}: {}rsNz: zUrl: zDistribution: zBuildRequires: zIcon: z
AutoReq: 0z %descriptionrz buildzenv CFLAGS="$RPM_OPT_FLAGS" z< install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES)r9r0z&%setup -n %{name}-%{unmangled_version}Úbuildr1Úinstallr2)Úcleanr3zrm -rf $RPM_BUILD_ROOT)Ú verifyscriptr4N)Úprer5N)Úpostr6N)Úpreunr7N)Úpostunr8Nú%)r¨z%files -f INSTALLED_FILESz%defattr(-,root,root)z%doc z
%changelog))rUrxÚ get_versionÚreplacer)Úget_descriptionÚ
subprocessÚ    getoutputrQÚ
splitlinesr†rdr‚r&Ú get_licenser(rCrVÚgetattrÚlowerrarbÚformatÚget_urlr'r=r/rOrPrrBÚget_long_descriptionr!rRÚargvr@ÚopenÚreadr‡r-r.)rEÚ    spec_fileÚ vendor_hookrœÚproblemÚfixedÚ
fixed_hookÚfieldÚvalÚdef_setup_callÚ    def_buildÚ install_cmdÚscript_optionsÚrpm_optÚattrÚdefaultÚfs                 rFrzzbdist_rpm._make_spec_file™s€ð ˜d×/Ñ/×8Ñ8Ó:Ñ :Ø  ×!2Ñ!2×!>Ñ!>Ó!@×!HÑ!HÈÈcÓ!RÑ RØ (¨4×+<Ñ+<×+HÑ+HÓ+JÑ JØ  §¡×!5Ñ!5°c¸3Ó!?Ñ ?Ø Ø ˜4×,Ñ,×<Ñ<Ó>ÒKÀ)Ñ Lð 
ˆ    ô!×*Ñ*Ð+LÓMˆ ð—i‘iØ/:×/EÑ/EÓ/Gö!
Ø'+ˆb—‘“˜cÒ "ò!
ó ˆ ð0ˆØ9ˆØ ×(Ñ(¨°%Ó8ˆ
Ø ˜Ò $Ø × Ñ ÐRÔ SØ × Ñ Ð9¸JÑFÈÑMÔ Nð    ×Ñò
ô     ð >Š>Ø × Ñ ÐLÕ Mà × Ñ ÐKÔ Là×ÑØ ˜4×,Ñ,×8Ñ8Ó:ÒG¸iÑ HØ ˜Ÿ
™
Ñ "Ø LØ  ð    
ô     ðŠà×$Ñ$×4Ñ4Ô6Ø× Ñ Ð!4Õ5à × Ñ ˜{¨4¯?©?Ð*;Ð<Ô =ð
ò     4ˆEô˜$ § ¡ £ Ó.ˆCܘ#œtÔ$Ø× Ñ  §¡°¸¿¹À» Ó!FÕGØ‘Ø× Ñ  E 7¨"¨S¨EÐ!2Õ3ð     4ð × Ñ × $Ñ $Ô &Ø × Ñ ˜W t×'8Ñ'8×'@Ñ'@Ó'BÑBÔ Cà × !Ò !Ø × Ñ Ð-°×0FÑ0FÑFÔ Gà × Ò Ø × Ñ Ð.°·±¸$×:MÑ:MÓ1NÑNÔ Oà 9Š9Ø × Ñ ˜X¬¯©×(8Ñ(8¸¿¹Ó(CÑCÔ Dà ?Š?Ø × Ñ ˜\Ô *à×ÑØ Ø Ø × Ñ × 2Ñ 2Ó 4Ò :¸ð
ô     ð$!ŸK™K˜=¨¬"¯'©'×*:Ñ*:¼3¿8¹8ÀA¹;Ó*GÐ)HÐIˆØ%Ð& fÐ-ˆ    Ø × !Ò !Ø6¸ÑBˆIð(Ð(Ð(dÐeˆ ð NØ n iÐ 0Ø Ð(¨+Ð 6Ø ?Ø 3Ø (Ø *Ø ,Ø .ð
 
ˆð'5ò     .Ñ "ˆGT˜7ô˜$ Ó%ˆCÙ’gØ× Ñ ØØ˜'‘Mð"ôñܘc›ð? aØ!×(Ñ(¨¯©«¯©¸Ó)=Ô>÷?ð?ð×$Ñ$ WÕ-ð     .ð     ×Ñò
ô     ð >Š>Ø × Ñ ˜W s§x¡x°·±Ó'?Ñ?Ô @à >Š>Ø × Ñ ØØðô ð × Ñ ˜TŸ^™^Ô ,àÐùòk!
÷~?ñ?úsÃU    Ñ6/UÕU    có—|s|Sg}|j«jd«D]\}|j«}|ddk(r|jd|g«Œ/|ddk(r|j|«ŒI|jd|z«Œ^|ds|d=|S)zBFormat the changelog correctly and convert it to a list of stringsrªrÚ*r¨r¦r«)r†r‡r‚rd)rEr.Ú new_changelogrœs    rFrezbdist_rpm._format_changelogDsœ€áØÐ ؈ Ø—O‘OÓ%×+Ñ+¨DÓ1ò    2ˆDØ—:‘:“<ˆDؐA‰w˜#Š~Ø×$Ñ$ b¨$ ZÕ0ؐa‘˜C’Ø×$Ñ$ TÕ*à×$Ñ$ T¨D¡[Õ1ð    2ð˜QÒØ˜aРàÐrH)ÚreturnN)Ú__name__Ú
__module__Ú __qualname__Ú descriptionÚ user_optionsrrrbÚstrÚ__annotations__rÚdictrGrXrWr¢r¤rzre©rHrFrrsx…Ø.€Kòo€Lòb,€OX˜d 3™iÑ(óð$Ø/Ø ñ.€L(˜4  S ™>Ñ*óò +óZ%óB,)ó\~ò@CòióVrHr)Ú__doc__rOr¾rRÚdistutils._logrÚtypingrÚcorerÚdebugrÚerrorsrr    r
r Ú    file_utilr Ú    sysconfigr rrårHrFú<module>rîsAðñó
 
ÛÛ
ÝÝåÝ÷óõ #Ý*ô~õ~rH