Accepting request 1029883 from home:StefanBruens:branches:science
- Update to version 9.2.2, see: https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/release/9.2.md - Drop upstream patches: + 0001-Add-missing-libm-link-library-to-kissfft-module.patch - Use system libharu on Tumbleweed - Allow optionally building and running tests (disabled for now due to large required data set). FTBFS on Leap 15.3, but thats EOL in 5 weeks anyway. OBS-URL: https://build.opensuse.org/request/show/1029883 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=176
This commit is contained in:
parent
87c394f65b
commit
cd431f2648
@ -1,25 +0,0 @@
|
||||
From 2e1ac7f5d5045286cbcce8e1787e1e98281e4b9f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
|
||||
Date: Sat, 20 Nov 2021 19:28:57 +0100
|
||||
Subject: [PATCH] Add missing libm link library to kissfft module
|
||||
|
||||
Fixes #18390.
|
||||
---
|
||||
ThirdParty/kissfft/vtkkissfft/CMakeLists.txt | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/ThirdParty/kissfft/vtkkissfft/CMakeLists.txt b/ThirdParty/kissfft/vtkkissfft/CMakeLists.txt
|
||||
index 6cb26cd44f..3e583cffc7 100644
|
||||
--- a/ThirdParty/kissfft/vtkkissfft/CMakeLists.txt
|
||||
+++ b/ThirdParty/kissfft/vtkkissfft/CMakeLists.txt
|
||||
@@ -40,3 +40,7 @@ endif ()
|
||||
target_include_directories(kissfft
|
||||
PRIVATE
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")
|
||||
+
|
||||
+if(UNIX)
|
||||
+ vtk_module_link(VTK::kissfft PRIVATE m)
|
||||
+endif()
|
||||
--
|
||||
2.33.1
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8fed42f4f8f1eb8083107b68eaa9ad71da07110161a3116ad807f43e5ca5ce96
|
||||
size 47871165
|
3
VTK-9.2.2.tar.gz
Normal file
3
VTK-9.2.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c5b0a2be71fac96ff4831af69e350f7a0ea3168981f790c000709dcf9121075
|
||||
size 53801737
|
@ -2,8 +2,8 @@ Index: VTK-9.0.0/ThirdParty/libharu/vtklibharu/CMakeLists.txt
|
||||
===================================================================
|
||||
--- VTK-9.0.0.orig/ThirdParty/libharu/vtklibharu/CMakeLists.txt
|
||||
+++ VTK-9.0.0/ThirdParty/libharu/vtklibharu/CMakeLists.txt
|
||||
@@ -125,6 +125,8 @@ if(PNG_FOUND)
|
||||
endif(PNG_FOUND)
|
||||
@@ -68,6 +68,8 @@ if(PNG_FOUND)
|
||||
find_library(M_LIB m)
|
||||
endif ()
|
||||
|
||||
+link_libraries(m)
|
||||
|
@ -9,7 +9,3 @@ addFilter("vtk-java.* devel-file-in-non-devel-package")
|
||||
addFilter("vtk-openmpi-java.* shlib-policy-name-error")
|
||||
addFilter("vtk-openmpi-java.* shlib-policy-missing-suffix")
|
||||
addFilter("vtk-openmpi-java.* devel-file-in-non-devel-package")
|
||||
|
||||
# Used by tcl bindings
|
||||
addFilter("vtk-tcl.* devel-file-in-non-devel-package")
|
||||
addFilter("vtk-openmpi-tcl.* devel-file-in-non-devel-package")
|
||||
|
11
vtk.changes
11
vtk.changes
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 14 18:07:34 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Update to version 9.2.2, see:
|
||||
https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/release/9.2.md
|
||||
- Drop upstream patches:
|
||||
+ 0001-Add-missing-libm-link-library-to-kissfft-module.patch
|
||||
- Use system libharu on Tumbleweed
|
||||
- Allow optionally building and running tests (disabled for now
|
||||
due to large required data set).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 10 22:01:28 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
|
44
vtk.spec
44
vtk.spec
@ -20,6 +20,7 @@
|
||||
|
||||
%bcond_with examples
|
||||
%bcond_with documentation
|
||||
%bcond_with testing
|
||||
|
||||
%ifarch %arm aarch64
|
||||
%bcond_without gles
|
||||
@ -40,8 +41,12 @@
|
||||
%bcond_without java
|
||||
%bcond_without pegtl
|
||||
|
||||
# Need patched version with HPDF_SHADING
|
||||
# Need version with HPDF_SHADING, i.e. >= 2.4.0
|
||||
%if 0%{?suse_version} <= 1500
|
||||
%bcond_with haru
|
||||
%else
|
||||
%bcond_without haru
|
||||
%endif
|
||||
|
||||
%if "%{flavor}" == ""
|
||||
%define my_suffix %{nil}
|
||||
@ -86,9 +91,9 @@
|
||||
%define shlib %{vtklib}
|
||||
|
||||
Name: vtk%{?my_suffix}
|
||||
Version: 9.1.0
|
||||
Version: 9.2.2
|
||||
Release: 0
|
||||
%define series 9.1
|
||||
%define series 9.2
|
||||
Summary: The Visualization Toolkit - A high level 3D visualization library
|
||||
# This is a variant BSD license, a cross between BSD and ZLIB.
|
||||
# For all intents, it has the same rights and restrictions as BSD.
|
||||
@ -114,8 +119,6 @@ Patch10: 0001-GL_POINT_SPRITE-is-only-available-for-Compatibility-.patch
|
||||
Patch17: 0001-Always-generate-Python-Metadata-when-WRAP_PYTHON-is-.patch
|
||||
# PATCH-FIX-UPSTREAM -- Copy generated metadata to the right directory
|
||||
Patch18: 0001-Consider-VTK_PYTHON_SITE_PACKAGES_SUFFIX-for-Python-.patch
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch19: 0001-Add-missing-libm-link-library-to-kissfft-module.patch
|
||||
BuildRequires: cgns-devel
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: cmake >= 3.12
|
||||
@ -134,6 +137,8 @@ BuildRequires: python3-numpy-devel
|
||||
BuildRequires: python3-qt5-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: utfcpp-devel
|
||||
BuildRequires: cmake(Verdict)
|
||||
BuildRequires: cmake(nlohmann_json)
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
BuildRequires: pkgconfig(Qt5OpenGL)
|
||||
BuildRequires: pkgconfig(Qt5OpenGLExtensions)
|
||||
@ -169,7 +174,7 @@ BuildRequires: graphviz
|
||||
BuildRequires: gl2ps-devel > 1.4.0
|
||||
%endif
|
||||
%if %{with haru}
|
||||
BuildRequires: libharu-devel > 2.3.0
|
||||
BuildRequires: libharu-devel >= 2.4.0
|
||||
%endif
|
||||
%if %{with java}
|
||||
BuildRequires: java-devel
|
||||
@ -187,6 +192,10 @@ BuildRequires: pkgconfig(pugixml) >= 1.11
|
||||
%if %{with pegtl}
|
||||
BuildRequires: pegtl-devel >= 2.0.0
|
||||
%endif
|
||||
%if %{with testing}
|
||||
BuildRequires: cli11-devel
|
||||
BuildRequires: vtkdata = %{version}
|
||||
%endif
|
||||
|
||||
%description
|
||||
VTK is a software system for image processing, 3D graphics, volume
|
||||
@ -231,6 +240,8 @@ Requires: python3-%{name} = %{version}
|
||||
Requires: utfcpp-devel
|
||||
%{?with_mpi:Requires: %{mpi_flavor}}
|
||||
%{?with_mpi:Requires: %{mpi_flavor}-devel}
|
||||
Requires: cmake(Verdict)
|
||||
Requires: cmake(nlohmann_json)
|
||||
Requires: pkgconfig(Qt5Core)
|
||||
Requires: pkgconfig(Qt5OpenGL)
|
||||
Requires: pkgconfig(Qt5OpenGLExtensions)
|
||||
@ -384,12 +395,17 @@ languages.
|
||||
%endif
|
||||
%patch17 -p1
|
||||
%patch18 -p1
|
||||
%patch19 -p1
|
||||
|
||||
# Replace relative path ../../../../VTKData with %%{_datadir}/vtkdata
|
||||
# otherwise it will break on symlinks.
|
||||
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs -r perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata,g'
|
||||
|
||||
# Fix erroneous dependency on sqlite3 binary
|
||||
sed -i -e '/set(vtk_sqlite_build_binary 1)/ s/.*/#\0/' CMakeLists.txt
|
||||
|
||||
# Allow testing also without external downloads - https://gitlab.kitware.com/vtk/vtk/-/issues/18692
|
||||
sed -i -e '/set(vtk_enable_tests "OFF")/ s/.*/#\0/' CMakeLists.txt
|
||||
|
||||
%build
|
||||
%if %{with mpi}
|
||||
source %{mpiprefix}/bin/mpivars.sh
|
||||
@ -411,8 +427,11 @@ export CXXFLAGS="%{optflags}"
|
||||
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
|
||||
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}-%{series} \
|
||||
-DCMAKE_INSTALL_QMLDIR:PATH=%{my_libdir}/qt5/qml \
|
||||
-DVTK_FORBID_DOWNLOADS:BOOL=ON \
|
||||
-DVTK_PYTHON_OPTIONAL_LINK:BOOL=OFF \
|
||||
-DVTK_BUILD_TESTING:BOOL=ON \
|
||||
-DVTK_BUILD_TESTING:BOOL=%{?with_testing:ON}%{!?with_testing:OFF} \
|
||||
-DVTK_DATA_STORE:PATH=/usr/share/vtkdata/.ExternalData \
|
||||
-DExternalData_NO_SYMLINKS:BOOL=ON \
|
||||
-DVTK_BUILD_EXAMPLES:BOOL=%{?with_examples:ON}%{!?with_examples:OFF} \
|
||||
-DVTK_BUILD_DOCUMENTATION:BOOL=%{?with_documentation:ON}%{!?with_documentation:OFF} \
|
||||
-DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON \
|
||||
@ -423,6 +442,7 @@ export CXXFLAGS="%{optflags}"
|
||||
-DVTK_MODULE_ENABLE_VTK_TestingCore=WANT \
|
||||
-DVTK_MODULE_ENABLE_VTK_TestingRendering=WANT \
|
||||
-DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2=YES \
|
||||
-DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2=%{?with_gles:NO}%{!?with_gles:YES} \
|
||||
-DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=YES \
|
||||
-DVTK_CUSTOM_LIBRARY_SUFFIX="" \
|
||||
-DVTK_GROUP_ENABLE_Imaging=WANT \
|
||||
@ -537,8 +557,12 @@ export PYTHONPATH=$_PYTHON_MPI_PREFIX:$PYTHONPATH
|
||||
%endif
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{my_libdir}
|
||||
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitearch}
|
||||
python3 -c "import vtk"
|
||||
PYTHONDONTWRITEBYTECODE=1 python3 -c "import vtk"
|
||||
find %{buildroot} . -name vtk.cpython-3*.pyc -print -delete # drop unreproducible time-based .pyc file
|
||||
# Unittests
|
||||
%if %{with testing}
|
||||
%ctest
|
||||
%endif
|
||||
|
||||
%post -n %{shlib} -p /sbin/ldconfig
|
||||
%postun -n %{shlib} -p /sbin/ldconfig
|
||||
@ -570,7 +594,7 @@ find %{buildroot} . -name vtk.cpython-3*.pyc -print -delete # drop unreproducibl
|
||||
%{my_bindir}/%{pkgname}WrapPython
|
||||
%{my_bindir}/%{pkgname}WrapPythonInit
|
||||
%{my_libdir}/*.so
|
||||
%{my_libdir}/vtk/
|
||||
%{my_libdir}/vtk-%{series}
|
||||
%{?with_mpi: %dir %{my_libdir}/cmake/}
|
||||
%{my_libdir}/cmake/%{pkgname}-%{series}/
|
||||
%{my_incdir}/%{pkgname}-%{series}/
|
||||
|
Loading…
Reference in New Issue
Block a user