- Tests - gh-127906: Test the limited C API in test_cppext. Patch by Victor Stinner. - gh-127906: Backport test_cext from the main branch. Patch by Victor Stinner. - gh-127637: Add tests for the dis command-line interface. Patch by Bénédikt Tran. - Security - gh-105704: When using urllib.parse.urlsplit() and urllib.parse.urlparse() host parsing would not reject domain names containing square brackets ([ and ]). Square brackets are only valid for IPv6 and IPvFuture hosts according to RFC 3986 Section 3.2.2. (CVE-2025-0938, bsc#1236705) - gh-127655: Fixed the asyncio.selector_events._SelectorSocketTransport transport not pausing writes for the protocol when the buffer reaches the high water mark when using asyncio.WriteTransport.writelines() (CVE-2024-12254, bsc#1234290). - gh-126108: Fix a possible NULL pointer dereference in PySys_AddWarnOptionUnicode(). - gh-80222: Fix bug in the folding of quoted strings when flattening an email message using a modern email policy. Previously when a quoted string was folded so that it spanned more than one line, the surrounding quotes and internal escapes would be omitted. This could theoretically be used to spoof header lines using a carefully constructed quoted string if the resulting OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=94
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
%have_python3 1
|
|
|
|
# commented out legacy macro definitions
|
|
#py3_prefix /usr
|
|
#py3_incdir /usr/include/python3.5m
|
|
#py3_ver 3.5
|
|
|
|
# these should now be provided by macros.python_all
|
|
#python3_sitearch /usr/lib64/python3.5/site-packages
|
|
#python3_sitelib /usr/lib/python3.5/site-packages
|
|
#python3_version 3.5
|
|
|
|
# hard to say if anyone ever used these?
|
|
#py3_soflags cpython-35m-x86_64-linux-gnu
|
|
#py3_abiflags m
|
|
%cpython3_soabi %(python3 -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")
|
|
%py3_soflags %cpython3_soabi
|
|
|
|
# compilation macros that might be in use somewhere
|
|
%py3_compile(O) \
|
|
find %1 -name '*.pyc' -exec rm -f {} ";"\
|
|
python3 -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\
|
|
%{-O:\
|
|
find %1 -name '*.pyo' -exec rm -f {} ";"\
|
|
python3 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\
|
|
}
|
|
|
|
|