RPM: update tdebindings

Signed-off-by: François Andriot <albator78@libertysurf.fr>
pull/219/head
François Andriot 2 years ago
parent a4ba311486
commit 27a2131e8b

@ -169,22 +169,12 @@ BuildRequires: Mesa-libGLU-devel
%endif %endif
# PYTHON support # PYTHON support
%if 0%{?sle_version} >= 150400 || 0%{?rhel} >= 9
%define with_python 0
%global __python %__python3
%else
%define with_python 1 %define with_python 1
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 7 %global __python python3
%global python python2 %global python_sitearch %{python3_sitearch}
%global __python %__python2 %{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%global python_sitearch %{python2_sitearch}
%else
%global python python
%endif
%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
BuildRequires: %{python} BuildRequires: %{python}
BuildRequires: %{python}-devel BuildRequires: %{python}-devel
%endif
## ruby ## ruby
BuildRequires: ruby-devel >= 1.8 BuildRequires: ruby-devel >= 1.8
@ -696,6 +686,7 @@ This package is part of the official TDE bindings module.
%{python_sitearch}/pcop.la %{python_sitearch}/pcop.la
%{python_sitearch}/pcop.so %{python_sitearch}/pcop.so
%{python_sitearch}/pydcop.py* %{python_sitearch}/pydcop.py*
%{python_sitearch}/__pycache__/*.pyc
%endif %endif
@ -1160,7 +1151,7 @@ EXTRA_INCLUDES="/usr/include/ruby-%{rb_ver}:/usr/include/ruby-%{rb_ver}/%{_targe
--enable-rpath \ --enable-rpath \
--disable-gcc-hidden-visibility \ --disable-gcc-hidden-visibility \
\ \
--with-extra-includes=%{_includedir}/tqscintilla:${EXTRA_INCLUDES} \ --with-extra-includes=%{_includedir}/tqt:${EXTRA_INCLUDES} \
--with-extra-libs=%{tde_libdir} \ --with-extra-libs=%{tde_libdir} \
%if 0%{with_python} %if 0%{with_python}
--with-pythondir=%{_usr} \ --with-pythondir=%{_usr} \

Loading…
Cancel
Save