mirror of
https://abf.rosa.ru/djam/python38.git
synced 2025-02-23 15:22:50 +00:00
exclude does not delete rpm5
This commit is contained in:
parent
be43238462
commit
29d96b1849
1 changed files with 4 additions and 1 deletions
|
@ -426,10 +426,13 @@ find %{buildroot} -type f -print | while read -r line ; do
|
|||
done
|
||||
|
||||
### warning!!! replaced only python3 with python3.8, macros are still the same ###
|
||||
%if %{mdvver} > 20190
|
||||
%if %rpm4
|
||||
cp -fr %{S:2} %{buildroot}%{_rpmmacrodir}/python38.macros
|
||||
%else
|
||||
cp -fr %{S:2} %{buildroot}%{_rpmmacrodir}/macros.python38
|
||||
rm -fr %{buildroot}%{_bindir}/{2to3,idle3,pydoc,pydoc3,python,python3,python3-config,python-config}
|
||||
rm -fr %{buildroot}%{_libdir}/libpython3.so
|
||||
rm -fr %{buildroot}%{_libdir}/pkgconfig/python3.pc
|
||||
%endif
|
||||
sed -i -e "1s|/usr/bin/python3|/usr/bin/python3.8|" %{buildroot}%{_rpmmacrodir}/*python38*
|
||||
%endif
|
||||
|
|
Loading…
Add table
Reference in a new issue