SHA256
1
0
forked from pool/python312

Accepting request 1103380 from devel:languages:python:Factory

- restrict PEP668 to ALP/Tumbleweed

OBS-URL: https://build.opensuse.org/request/show/1103380
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python312?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2023-08-11 13:55:58 +00:00 committed by Git OBS Bridge
commit 307a89a3d6
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 10 09:33:26 UTC 2023 - Dirk Müller <dmueller@suse.com>
- restrict PEP668 to ALP/Tumbleweed
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 7 07:31:27 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com> Mon Aug 7 07:31:27 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -704,8 +704,10 @@ rm %{buildroot}%{_libdir}/libpython3.so
rm %{buildroot}%{_libdir}/pkgconfig/{python3,python3-embed}.pc rm %{buildroot}%{_libdir}/pkgconfig/{python3,python3-embed}.pc
%endif %endif
%if %{suse_version} > 1550
# PEP-0668 mark this as a distro maintained python # PEP-0668 mark this as a distro maintained python
sed -e 's,__PYTHONPREFIX__,%{python_pkg_name},' -e 's,__PYTHON__,python%{python_version},' < %{SOURCE4} > %{buildroot}%{sitedir}/EXTERNALLY-MANAGED sed -e 's,__PYTHONPREFIX__,%{python_pkg_name},' -e 's,__PYTHON__,python%{python_version},' < %{SOURCE4} > %{buildroot}%{sitedir}/EXTERNALLY-MANAGED
%endif
# link shared library instead of static library that tools expect # link shared library instead of static library that tools expect
ln -s ../../libpython%{python_abi}.so %{buildroot}%{_libdir}/python%{python_version}/config-%{python_abi}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}/libpython%{python_abi}.so ln -s ../../libpython%{python_abi}.so %{buildroot}%{_libdir}/python%{python_version}/config-%{python_abi}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}/libpython%{python_abi}.so
@ -902,8 +904,10 @@ echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-impo
%{_mandir}/man1/python3.1%{?ext_man} %{_mandir}/man1/python3.1%{?ext_man}
%endif %endif
%{_mandir}/man1/python%{python_version}.1%{?ext_man} %{_mandir}/man1/python%{python_version}.1%{?ext_man}
%if %{suse_version} > 1550
# PEP-0668 # PEP-0668
%{sitedir}/EXTERNALLY-MANAGED %{sitedir}/EXTERNALLY-MANAGED
%endif
# license text, not a doc because the code can use it at run-time # license text, not a doc because the code can use it at run-time
%{sitedir}/LICENSE.txt %{sitedir}/LICENSE.txt
# RPM macros # RPM macros