mirror of
https://abf.rosa.ru/djam/python3.11.git
synced 2025-02-23 10:12:51 +00:00
python3 as /usr/bin/python
This commit is contained in:
parent
cd2133d37b
commit
385e29f5a5
1 changed files with 7 additions and 0 deletions
|
@ -131,6 +131,7 @@ BuildRequires: python3-pip
|
|||
Provides: python(abi) = %{dirver}
|
||||
Provides: /usr/bin/python%{dirver}m
|
||||
Provides: /usr/bin/python%{dirver}
|
||||
Provides: /usr/bin/python
|
||||
Provides: /usr/bin/python%{familyver}
|
||||
|
||||
%description
|
||||
|
@ -378,6 +379,10 @@ chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_li
|
|||
%install_macro python3 %{SOURCE2}
|
||||
%install_macro pybytecompile %{SOURCE3}
|
||||
|
||||
ln -s python3 %{buildroot}%{_bindir}/python
|
||||
ln -s pydoc3 %{buildroot}%{_bindir}/pydoc
|
||||
ln -s python3-config %{buildroot}%{_bindir}/python-config
|
||||
|
||||
%check
|
||||
# (misc) if the home is nfs mounted, rmdir fails
|
||||
export TMP="/tmp" TMPDIR="/tmp"
|
||||
|
@ -432,6 +437,8 @@ export TMP="/tmp" TMPDIR="/tmp"
|
|||
# %exclude %{_libdir}/python%{dirver}/ensurepip/_bundled
|
||||
%{_bindir}/pydoc3*
|
||||
%{_bindir}/python3*
|
||||
%{_bindir}/pydoc
|
||||
%{_bindir}/python
|
||||
%{_bindir}/2to3-%{dirver}
|
||||
%exclude %{_bindir}/python*config
|
||||
#%{_datadir}/emacs/site-lisp/*
|
||||
|
|
Loading…
Add table
Reference in a new issue