From 29d96b18498a8ccc47d18d71823ba9154cf1b7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B2=D1=8F=D1=82=D0=BE=D1=81=D0=BB=D0=B0=D0=B2?= Date: Tue, 19 May 2020 04:08:17 +0000 Subject: [PATCH] exclude does not delete rpm5 --- python3.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python3.spec b/python3.spec index a6f864b..a91dcc3 100644 --- a/python3.spec +++ b/python3.spec @@ -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