backport critical bugfix to leap 16 #1

Open
vicentebolea wants to merge 1 commits from vicentebolea/paraview:backport-1335163 into leap-16.0
2 changed files with 22 additions and 3 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Feb 24 00:01:00 UTC 2026 - Vicente Adolfo Bolea Sanchez <vicente.bolea@gmail.com>
- Added simple python import test to check correct deployment.
- Correct Python ParaView installation path, it was wrongly being
installed in a nested directory of its correct path.
- Disabled PythonAdaptors and AdaptorsCamPython ParaView module
since it is a very accessory feature that it gets installed in
the wrong path.
-------------------------------------------------------------------
Thu Jan 06 00:01:00 UTC 2025 - Vicente Adolfo Bolea Sanchez <vicente.bolea@gmail.com>

View File

@@ -244,7 +244,7 @@ sed -i -e '/VERSION .*/ d' VTK/ThirdParty/fast_float/CMakeLists.txt
-DPARAVIEW_BUILD_WITH_EXTERNAL:BOOL=ON \
-DPARAVIEW_ENABLE_WEB:BOOL=ON \
-DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
-DPARAVIEW_PYTHON_SITE_PACKAGES_SUFFIX=%{_lib}/python%{py3_ver}/site-packages/paraview \
-DPARAVIEW_PYTHON_SITE_PACKAGES_SUFFIX=%{_lib}/python%{py3_ver}/site-packages \
-DPARAVIEW_USE_PYTHON:BOOL=ON \
-DPARAVIEW_USE_QT:BOOL=ON \
-DPARAVIEW_USE_VTKM:BOOL=OFF \
@@ -270,6 +270,8 @@ sed -i -e '/VERSION .*/ d' VTK/ThirdParty/fast_float/CMakeLists.txt
-DVTK_MODULE_USE_EXTERNAL_VTK_pugixml=%{?with_pugixml:ON}%{!?with_pugixml:OFF} \
-DVTK_MODULE_USE_EXTERNAL_VTK_token:BOOL=OFF \
-DVTK_MODULE_USE_EXTERNAL_VTK_verdict=%{?with_verdict:ON}%{!?with_verdict:OFF} \
-DVTK_MODULE_ENABLE_ParaView_AdaptorsPython:STRING=NO \
-DVTK_MODULE_ENABLE_ParaView_AdaptorsCamPython:STRING=NO \
-Wno-dev \
%{nil}
@@ -286,14 +288,21 @@ find . \( -name \*.txt -o -name \*.xml -o -name '*.[ch]' -o -name '*.[ch][px][px
%cmake_install
# Unnecessary hash-bang
sed -i "1{\@%{_bindir}/env@d}" %{buildroot}%{python3_sitearch}/paraview/vtkmodules/generate_pyi.py
sed -i "1{\@%{_bindir}/env@d}" %{buildroot}%{python3_sitearch}/paraview/vtkmodules/test/rtImageTest.py
sed -i "1{\@%{_bindir}/env@d}" %{buildroot}%{python3_sitearch}/vtkmodules/generate_pyi.py
sed -i "1{\@%{_bindir}/env@d}" %{buildroot}%{python3_sitearch}/vtkmodules/test/rtImageTest.py
# INSTALL DOCUMENTATION USED BY THE HELP MENU IN MAIN APP
install -Dm0644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}-%{short_ver}/doc/GettingStarted.pdf
%fdupes %{buildroot}/
%check
# Make sure the python library is at least importable
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitearch}
PYTHONDONTWRITEBYTECODE=1 python3 -c "from paraview.simple import *"
%post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig