From 36b384a425893e336f398a2ecde2b80bad31cdc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Thu, 13 Apr 2023 16:04:33 +0200 Subject: [PATCH] RPM: more python3 build fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/core/tdebindings/tdebindings.spec | 2 ++ redhat/dependencies/sip4-tqt/sip4-tqt.spec | 2 ++ 2 files changed, 4 insertions(+) diff --git a/redhat/core/tdebindings/tdebindings.spec b/redhat/core/tdebindings/tdebindings.spec index 6a69b7d9c..9f3bf5d1b 100644 --- a/redhat/core/tdebindings/tdebindings.spec +++ b/redhat/core/tdebindings/tdebindings.spec @@ -688,7 +688,9 @@ This package is part of the official TDE bindings module. %{python_sitearch}/pcop.so %if 0%{?rhel} == 7 || 0%{?suse_version} %{python_sitearch}/pydcop.py* +%if 0%{?rhel} == 7 %{python_sitearch}/__pycache__/pydcop.*.pyc +%endif %else %pycached %{python_sitearch}/pydcop.py %endif diff --git a/redhat/dependencies/sip4-tqt/sip4-tqt.spec b/redhat/dependencies/sip4-tqt/sip4-tqt.spec index 299f98393..0c60df09d 100644 --- a/redhat/dependencies/sip4-tqt/sip4-tqt.spec +++ b/redhat/dependencies/sip4-tqt/sip4-tqt.spec @@ -114,8 +114,10 @@ specificity towards C++ and Python. %if 0%{?rhel} == 7 || 0%{?suse_version} %{python_sitearch}/sip_tqt_config.py* %{python_sitearch}/sip_tqt_distutils.py* +%if 0%{?rhel} == 7 %{python_sitearch}/__pycache__/sip_tqt_config.*.pyc %{python_sitearch}/__pycache__/sip_tqt_distutils.*.pyc +%endif %else %pycached %{python_sitearch}/sip_tqt_config.py %pycached %{python_sitearch}/sip_tqt_distutils.py