From d8a1512d34559be713c40bf1b60940213ccde29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 11 Apr 2023 17:18:24 +0200 Subject: RPM: more updates related to python3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/libraries/pytde/pytde.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'redhat/libraries/pytde') diff --git a/redhat/libraries/pytde/pytde.spec b/redhat/libraries/pytde/pytde.spec index 2e38227e1..cfe105cbb 100644 --- a/redhat/libraries/pytde/pytde.spec +++ b/redhat/libraries/pytde/pytde.spec @@ -64,6 +64,8 @@ BuildRequires: gcc-c++ # PYTHON support %global python python3 +%global __python %__python3 +%global python_sitearch %{python3_sitearch} %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} BuildRequires: %{python} BuildRequires: %{python}-devel @@ -89,9 +91,20 @@ from tdeio, tdejs, tdehtml and tdeprint. %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %{python_sitearch}/*.so -%{python_sitearch}/dcop*.py* -%{python_sitearch}/pytde*.py* -%{python_sitearch}/__pycache__/*.pyc +%if 0%{?rhel} == 7 || 0%{?suse_version} +%{python_sitearch}/dcopexport.py* +%{python_sitearch}/dcopext.py* +%{python_sitearch}/pytdeconfig.py* +%if 0%{?rhel} == 7 +%{python_sitearch}/__pycache__/dcopexport.*.pyc +%{python_sitearch}/__pycache__/dcopext.*.pyc +%{python_sitearch}/__pycache__/pytdeconfig.*.pyc +%endif +%else +%pycached %{python_sitearch}/dcopexport.py +%pycached %{python_sitearch}/dcopext.py +%pycached %{python_sitearch}/pytdeconfig.py +%endif ########## -- cgit v1.2.1