2011-04-19 17:17:29 +02:00
|
|
|
#
|
2018-01-12 14:37:12 +01:00
|
|
|
# spec file for package vtk
|
2011-04-19 17:17:29 +02:00
|
|
|
#
|
2020-01-31 17:21:56 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-04-19 17:17:29 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-19 17:17:29 +02:00
|
|
|
#
|
|
|
|
|
2012-04-08 15:38:48 +02:00
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2017-04-28 10:42:10 +02:00
|
|
|
|
2020-04-30 04:03:15 +02:00
|
|
|
%bcond_with examples
|
2020-07-19 00:18:35 +02:00
|
|
|
%bcond_with documentation
|
2020-04-30 04:03:15 +02:00
|
|
|
|
2020-01-31 17:21:56 +01:00
|
|
|
%if 0%{?sle_version} >= 150200
|
|
|
|
%define DisOMPI1 ExclusiveArch: do_not_build
|
|
|
|
%endif
|
|
|
|
%if !0%{?is_opensuse} && 0%{?sle_version:1} && 0%{?sle_version} < 150200
|
|
|
|
%define DisOMPI3 ExclusiveArch: do_not_build
|
|
|
|
%endif
|
|
|
|
|
2020-07-19 00:18:35 +02:00
|
|
|
%ifarch %arm aarch64
|
|
|
|
%bcond_without gles
|
|
|
|
%else
|
|
|
|
%bcond_with gles
|
|
|
|
%endif
|
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
%define pkgname vtk
|
|
|
|
|
2020-07-19 00:18:35 +02:00
|
|
|
# pugixml and gl2ps in Leap 15.x are too old
|
2019-03-19 14:50:29 +01:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
%bcond_with pugixml
|
2020-05-29 15:55:10 +02:00
|
|
|
%bcond_with gl2ps
|
2019-03-19 14:50:29 +01:00
|
|
|
%else
|
|
|
|
%bcond_without pugixml
|
2020-05-29 15:55:10 +02:00
|
|
|
%bcond_without gl2ps
|
2019-03-19 14:50:29 +01:00
|
|
|
%endif
|
2020-06-03 17:39:23 +02:00
|
|
|
|
2020-07-19 00:18:35 +02:00
|
|
|
# pegtl in Leap 15.1 is too old (< 2.0.0)
|
|
|
|
# JAVA bindings fail to build
|
|
|
|
%if 0%{?sle_version} == 150100
|
2020-06-03 17:39:23 +02:00
|
|
|
%bcond_with java
|
|
|
|
%bcond_with pegtl
|
|
|
|
%else
|
|
|
|
%bcond_without java
|
|
|
|
%bcond_without pegtl
|
|
|
|
%endif
|
|
|
|
|
2019-03-19 14:50:29 +01:00
|
|
|
# Need patched version with HPDF_SHADING
|
|
|
|
%bcond_with haru
|
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
%if "%{flavor}" == ""
|
2020-05-29 15:55:10 +02:00
|
|
|
%define my_suffix %{nil}
|
2019-01-05 17:21:10 +01:00
|
|
|
%define my_prefix %_prefix
|
|
|
|
%define my_bindir %_bindir
|
|
|
|
%define my_libdir %_libdir
|
|
|
|
%define my_incdir %_includedir
|
|
|
|
%define my_datadir %_datadir
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{flavor}" == "openmpi"
|
2020-01-31 17:21:56 +01:00
|
|
|
%{?DisOMPI1}
|
2019-11-06 17:38:57 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
%define my_suffix -openmpi1
|
|
|
|
%define mpi_flavor openmpi1
|
|
|
|
%else
|
2019-01-08 17:49:51 +01:00
|
|
|
%define my_suffix -openmpi
|
2019-01-05 17:21:10 +01:00
|
|
|
%define mpi_flavor openmpi
|
2019-11-06 17:38:57 +01:00
|
|
|
%endif
|
2019-01-05 17:21:10 +01:00
|
|
|
%define mpiprefix %{_libdir}/mpi/gcc/%{mpi_flavor}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{flavor}" == "openmpi2"
|
2019-01-08 17:49:51 +01:00
|
|
|
%define my_suffix -openmpi2
|
2019-01-05 17:21:10 +01:00
|
|
|
%define mpi_flavor openmpi2
|
|
|
|
%define mpiprefix %{_libdir}/mpi/gcc/%{mpi_flavor}
|
|
|
|
%endif
|
|
|
|
|
2020-01-31 17:21:56 +01:00
|
|
|
%if "%{flavor}" == "openmpi3"
|
|
|
|
%{?DisOMPI3}
|
|
|
|
%define my_suffix -openmpi3
|
|
|
|
%define mpi_flavor openmpi3
|
|
|
|
%define mpiprefix %{_libdir}/mpi/gcc/%{mpi_flavor}
|
|
|
|
%endif
|
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
%{?mpi_flavor:%{bcond_without mpi}}%{!?mpi_flavor:%{bcond_with mpi}}
|
|
|
|
|
|
|
|
%if %{with mpi}
|
|
|
|
%define my_prefix %{mpiprefix}
|
|
|
|
%define my_bindir %{my_prefix}/bin
|
|
|
|
%define my_libdir %{my_prefix}/%{_lib}/
|
|
|
|
%define my_incdir %{my_prefix}/include/
|
|
|
|
%define my_datadir %{my_prefix}/share/
|
|
|
|
%endif
|
|
|
|
|
2019-01-08 17:49:51 +01:00
|
|
|
%define vtklib lib%{pkgname}1%{?my_suffix}
|
2019-01-05 17:21:10 +01:00
|
|
|
%define shlib %{vtklib}
|
|
|
|
|
2019-01-08 17:49:51 +01:00
|
|
|
Name: vtk%{?my_suffix}
|
2020-07-19 00:18:35 +02:00
|
|
|
Version: 9.0.1
|
2012-04-08 15:38:48 +02:00
|
|
|
Release: 0
|
2020-05-29 15:55:10 +02:00
|
|
|
%define series 9.0
|
2020-07-19 00:18:35 +02:00
|
|
|
Summary: The Visualization Toolkit - A high level 3D visualization library
|
2011-04-19 17:17:29 +02:00
|
|
|
# This is a variant BSD license, a cross between BSD and ZLIB.
|
|
|
|
# For all intents, it has the same rights and restrictions as BSD.
|
|
|
|
# http://fedoraproject.org/wiki/Licensing/BSD#VTKBSDVariant
|
2012-04-08 15:38:48 +02:00
|
|
|
License: BSD-3-Clause
|
2011-04-19 17:17:29 +02:00
|
|
|
Group: Productivity/Scientific/Other
|
2019-03-19 14:50:29 +01:00
|
|
|
URL: https://vtk.org/
|
2018-11-26 14:55:19 +01:00
|
|
|
Source: https://www.vtk.org/files/release/%{series}/VTK-%{version}.tar.gz
|
2015-03-23 20:23:58 +01:00
|
|
|
# FIXME See if packaging can be tweaked to accommodate python-vtk's devel files in a devel package later
|
2017-08-09 09:38:23 +02:00
|
|
|
# We need to use the compat conditionals here to avoid Factory's source validator from tripping up
|
2018-11-26 14:55:19 +01:00
|
|
|
Source99: vtk-rpmlintrc
|
2020-05-29 15:55:10 +02:00
|
|
|
# PATCH-FIX-OPENSUSE bundled_libharu_add_missing_libm.patch stefan.bruens@rwth-aachen.de -- Add missing libm for linking (gh#libharu/libharu#213)
|
2020-07-19 00:18:35 +02:00
|
|
|
Patch1: bundled_libharu_add_missing_libm.patch
|
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch2: 0001-clean-up-some-old-opengl-es-stuff.patch
|
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch3: 0001-expose-1d-texture-options.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- prep for GLES patch, VTK issue #17113 stefan.bruens@rwth-aachen.de
|
|
|
|
Patch4: 0001-Remove-duplicate-check-for-QOpenGLFunctions_3_2_Core.patch
|
|
|
|
# PATCH-FIX-UPSTREAM 0001-Allow-compilation-on-GLES-platforms.patch VTK issue #17113 stefan.bruens@rwth-aachen.de -- Fix building with Qt GLES builds
|
|
|
|
Patch5: 0001-Allow-compilation-on-GLES-platforms.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- Fix building with Qt GLES builds
|
|
|
|
Patch6: 0001-Replace-last-glDrawBuffer-call-with-glDrawBuffers-1.patch
|
|
|
|
# PATCH-FIX-OPENSUSE -- Fix building with Qt GLES builds
|
|
|
|
Patch7: 0001-Add-missing-guard-required-for-GLES-to-disable-stere.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- Fix building with Qt GLES builds
|
|
|
|
Patch8: 0001-Correct-GL_BACK-GL_BACK_LEFT-mapping-on-GLES.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- Fix building with Qt GLES builds
|
|
|
|
Patch9: 0002-Use-GL_DRAW_BUFFER0-instead-of-GL_DRAW_BUFFER-for-GL.patch
|
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch10: 0001-GL_POINT_SPRITE-is-only-available-for-Compatibility-.patch
|
|
|
|
# PATCH-FIX-OPENSUSE -- GLES - Does no longer apply to upstream code
|
|
|
|
Patch11: 0002-Guard-GL_LINE_SMOOTH-for-GLES.patch
|
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch12: 0001-Guard-glPointSize-with-GL_ES_VERSION_3_0.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7098
|
|
|
|
Patch13: 0001-Fix-PyVTKAddFile_-function-signature-mismatch.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7115
|
|
|
|
Patch14: 0001-Replace-invalid-GL_LINE-with-GL_LINES-for-glDrawArra.patch
|
2014-02-01 12:59:26 +01:00
|
|
|
BuildRequires: R-base-devel
|
2011-04-19 17:17:29 +02:00
|
|
|
BuildRequires: chrpath
|
2016-11-25 21:14:23 +01:00
|
|
|
BuildRequires: cmake >= 3.4
|
2019-03-19 14:50:29 +01:00
|
|
|
BuildRequires: double-conversion-devel
|
2011-04-19 17:17:29 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2018-05-08 08:38:04 +02:00
|
|
|
BuildRequires: hdf5-devel
|
2020-01-31 17:21:56 +01:00
|
|
|
BuildRequires: libboost_graph-devel
|
|
|
|
BuildRequires: libboost_graph_parallel-devel
|
|
|
|
BuildRequires: libboost_serialization-devel
|
2011-04-19 17:17:29 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libmysqlclient-devel
|
|
|
|
BuildRequires: libtiff-devel
|
2016-02-21 13:14:22 +01:00
|
|
|
BuildRequires: python3-devel
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: python3-numpy-devel
|
2018-06-13 16:16:14 +02:00
|
|
|
BuildRequires: python3-qt5-devel
|
2020-05-29 15:55:10 +02:00
|
|
|
BuildRequires: utfcpp-devel
|
2018-06-13 16:16:14 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
2015-06-25 11:53:01 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
|
|
BuildRequires: pkgconfig(Qt5OpenGLExtensions)
|
|
|
|
BuildRequires: pkgconfig(Qt5Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt5WebKitWidgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2019-03-19 14:50:29 +01:00
|
|
|
BuildRequires: pkgconfig(eigen3) >= 2.91.0
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(expat)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(gl)
|
2019-03-19 14:50:29 +01:00
|
|
|
BuildRequires: pkgconfig(glew)
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(jsoncpp)
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavdevice)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
BuildRequires: pkgconfig(libiodbc)
|
|
|
|
BuildRequires: pkgconfig(liblz4) >= 1.7.3
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
|
|
|
BuildRequires: pkgconfig(libswscale)
|
2019-03-19 14:50:29 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(netcdf)
|
2019-11-06 17:38:57 +01:00
|
|
|
BuildRequires: pkgconfig(proj) >= 5.0.0
|
2019-03-19 14:50:29 +01:00
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(theora)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2020-07-19 00:18:35 +02:00
|
|
|
%if %{with documentation}
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gnuplot
|
|
|
|
BuildRequires: graphviz
|
|
|
|
%endif
|
2020-06-03 17:39:23 +02:00
|
|
|
%if %{with gl2ps}
|
|
|
|
BuildRequires: gl2ps-devel > 1.4.0
|
|
|
|
%endif
|
|
|
|
%if %{with haru}
|
|
|
|
BuildRequires: libharu-devel > 2.3.0
|
|
|
|
%endif
|
|
|
|
%if %{with java}
|
|
|
|
BuildRequires: java-devel
|
|
|
|
%endif
|
|
|
|
%if %{with mpi}
|
|
|
|
BuildRequires: %{mpi_flavor}-devel
|
|
|
|
BuildRequires: hdf5-%{mpi_flavor}-devel
|
|
|
|
BuildRequires: libboost_mpi-devel
|
|
|
|
BuildRequires: netcdf-%{mpi_flavor}-devel
|
|
|
|
BuildRequires: python3-mpi4py-devel
|
|
|
|
%endif
|
|
|
|
%if %{with pugixml}
|
|
|
|
BuildRequires: pkgconfig(pugixml)
|
|
|
|
%endif
|
|
|
|
%if %{with pegtl}
|
|
|
|
BuildRequires: pegtl-devel >= 2.0.0
|
|
|
|
%endif
|
2011-04-19 17:17:29 +02:00
|
|
|
|
|
|
|
%description
|
2017-08-05 18:43:24 +02:00
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%package -n %{shlib}
|
2017-08-09 12:08:22 +02:00
|
|
|
Summary: The Visualization Toolkit - A high level 3D visualization library
|
|
|
|
Group: System/Libraries
|
2018-11-26 14:55:19 +01:00
|
|
|
Conflicts: libvtkcompat_gl1
|
|
|
|
Provides: %{name} = %{version}
|
2017-08-09 09:38:23 +02:00
|
|
|
|
|
|
|
%description -n %{shlib}
|
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
2017-08-09 09:38:23 +02:00
|
|
|
|
|
|
|
This package provides the shared libraries for VTK.
|
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%package devel
|
2011-04-19 17:17:29 +02:00
|
|
|
Summary: VTK header files for building C++ code
|
2020-06-24 15:48:28 +02:00
|
|
|
# not strictly necessary, but required by VTKs cmake files
|
2020-07-19 00:18:35 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%{?with_java:Requires: %{name}-java = %{version}}
|
|
|
|
Requires: %{name}-qt = %{version}
|
2017-08-09 09:38:23 +02:00
|
|
|
Requires: %{shlib} = %{version}
|
2019-03-19 14:50:29 +01:00
|
|
|
Requires: R-core-devel
|
2018-11-26 14:55:19 +01:00
|
|
|
Requires: cmake >= 3.4
|
2019-04-09 16:10:20 +02:00
|
|
|
Requires: double-conversion-devel
|
2018-11-26 14:55:19 +01:00
|
|
|
Requires: gcc-c++
|
2019-03-19 14:50:29 +01:00
|
|
|
%{?with_gl2ps:Requires: gl2ps-devel}
|
2018-05-08 08:38:04 +02:00
|
|
|
Requires: hdf5-devel
|
2019-01-05 17:21:10 +01:00
|
|
|
%{?with_mpi:Requires: hdf5-%{mpi_flavor}-devel}
|
2011-04-19 17:17:29 +02:00
|
|
|
Requires: libjpeg-devel
|
|
|
|
Requires: libmysqlclient-devel
|
2015-06-23 07:22:31 +02:00
|
|
|
Requires: libnetcdf_c++-devel
|
2011-04-19 17:17:29 +02:00
|
|
|
Requires: libtiff-devel
|
2019-01-05 17:21:10 +01:00
|
|
|
Requires: python3-%{name} = %{version}
|
2020-05-29 15:55:10 +02:00
|
|
|
Requires: utfcpp-devel
|
2019-01-05 17:21:10 +01:00
|
|
|
%{?with_mpi:Requires: %{mpi_flavor}}
|
|
|
|
%{?with_mpi:Requires: %{mpi_flavor}-devel}
|
2018-11-26 14:55:19 +01:00
|
|
|
Requires: pkgconfig(Qt5Core)
|
|
|
|
Requires: pkgconfig(Qt5OpenGL)
|
|
|
|
Requires: pkgconfig(Qt5OpenGLExtensions)
|
|
|
|
Requires: pkgconfig(Qt5Sql)
|
|
|
|
Requires: pkgconfig(Qt5WebKitWidgets)
|
|
|
|
Requires: pkgconfig(Qt5Widgets)
|
|
|
|
Requires: pkgconfig(expat)
|
|
|
|
Requires: pkgconfig(freetype2)
|
|
|
|
Requires: pkgconfig(gl)
|
|
|
|
Requires: pkgconfig(jsoncpp)
|
|
|
|
Requires: pkgconfig(libavcodec)
|
|
|
|
Requires: pkgconfig(libavdevice)
|
|
|
|
Requires: pkgconfig(libavformat)
|
|
|
|
Requires: pkgconfig(libavutil)
|
|
|
|
Requires: pkgconfig(libiodbc)
|
|
|
|
Requires: pkgconfig(liblz4) >= 1.7.3
|
2019-04-15 02:21:08 +02:00
|
|
|
Requires: pkgconfig(liblzma)
|
2018-11-26 14:55:19 +01:00
|
|
|
Requires: pkgconfig(libpng)
|
|
|
|
Requires: pkgconfig(libswscale)
|
|
|
|
Requires: pkgconfig(netcdf)
|
|
|
|
Requires: pkgconfig(theora)
|
2019-04-15 02:21:08 +02:00
|
|
|
Requires: pkgconfig(zlib)
|
2020-06-03 17:39:23 +02:00
|
|
|
%if %{with pegtl}
|
|
|
|
Requires: pegtl-devel
|
|
|
|
%endif
|
2020-07-19 00:18:35 +02:00
|
|
|
%if %{with pugixml}
|
|
|
|
Requires: pugixml-devel
|
|
|
|
%endif
|
2017-04-28 10:42:10 +02:00
|
|
|
Conflicts: vtk-compat_gl-devel
|
2011-04-19 17:17:29 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%description devel
|
2017-08-05 18:43:24 +02:00
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
2011-04-19 17:17:29 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
This provides development libraries and header files required to
|
|
|
|
compile C++ programs that use VTK to do 3D visualisation.
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%package devel-doc
|
Accepting request 530507 from home:StefanBruens:branches:science
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
OBS-URL: https://build.opensuse.org/request/show/530507
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=102
2017-10-12 18:20:25 +02:00
|
|
|
Summary: VTK API documentation
|
2017-10-15 11:30:41 +02:00
|
|
|
Group: Documentation/HTML
|
Accepting request 530507 from home:StefanBruens:branches:science
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
OBS-URL: https://build.opensuse.org/request/show/530507
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=102
2017-10-12 18:20:25 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%description devel-doc
|
Accepting request 530507 from home:StefanBruens:branches:science
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
OBS-URL: https://build.opensuse.org/request/show/530507
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=102
2017-10-12 18:20:25 +02:00
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
Accepting request 530507 from home:StefanBruens:branches:science
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
OBS-URL: https://build.opensuse.org/request/show/530507
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=102
2017-10-12 18:20:25 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
This provides the VTK API documentation useful for developing
|
|
|
|
programs that use VTK to do 3D visualisation.
|
Accepting request 530507 from home:StefanBruens:branches:science
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
OBS-URL: https://build.opensuse.org/request/show/530507
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=102
2017-10-12 18:20:25 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%package java
|
2012-04-03 18:10:57 +02:00
|
|
|
Summary: Java bindings for VTK
|
|
|
|
Group: Development/Libraries/Java
|
2017-08-09 09:38:23 +02:00
|
|
|
Requires: %{shlib} = %{version}
|
2017-04-28 10:42:10 +02:00
|
|
|
Conflicts: vtk-compat_gl-java
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%description java
|
2017-08-05 18:43:24 +02:00
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2012-04-03 18:10:57 +02:00
|
|
|
This package provides java bindings for VTK.
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%package -n python3-%{name}
|
2011-04-19 17:17:29 +02:00
|
|
|
Summary: Python bindings for VTK
|
2018-11-26 14:55:19 +01:00
|
|
|
Group: Development/Libraries/Python
|
2017-08-09 09:38:23 +02:00
|
|
|
Requires: %{shlib} = %{version}
|
2019-01-05 17:21:10 +01:00
|
|
|
%{?with_mpi:Requires: python3-mpi4py}
|
2018-11-26 14:55:19 +01:00
|
|
|
Requires: python3-numpy
|
|
|
|
Requires: python3-qt5
|
2017-04-28 10:42:10 +02:00
|
|
|
Conflicts: python3-vtk-compat_gl
|
2009-11-29 11:58:48 +01:00
|
|
|
|
2016-02-21 13:14:22 +01:00
|
|
|
%description -n python3-%{name}
|
2017-08-05 18:43:24 +02:00
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
2011-04-19 17:17:29 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
This package provides python 3.x bindings for VTK.
|
2011-04-19 17:17:29 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%package qt
|
2017-09-16 18:31:56 +02:00
|
|
|
Summary: Qt Designer plugin for QVTKWidget
|
2012-04-03 18:10:57 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-08-09 09:38:23 +02:00
|
|
|
Requires: %{shlib} = %{version}
|
2017-04-28 10:42:10 +02:00
|
|
|
Conflicts: vtk-compat_gl-qt
|
2011-04-19 17:17:29 +02:00
|
|
|
|
2012-04-03 18:10:57 +02:00
|
|
|
%description qt
|
2017-08-05 18:43:24 +02:00
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2017-09-16 18:31:56 +02:00
|
|
|
This package provides a Qt Designer plugin for the QVTKWidget.
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
# The examples work with any VTK flavor, just package these once
|
|
|
|
%if "%{flavor}" == ""
|
2018-11-26 14:55:19 +01:00
|
|
|
%package examples
|
2011-04-19 17:17:29 +02:00
|
|
|
Summary: Examples for VTK
|
2018-11-26 14:55:19 +01:00
|
|
|
Group: Documentation/Other
|
|
|
|
Recommends: vtkdata = %{version}
|
2017-04-28 10:42:10 +02:00
|
|
|
Conflicts: vtk-compat_gl-examples
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%description examples
|
2017-08-05 18:43:24 +02:00
|
|
|
VTK is a software system for image processing, 3D graphics, volume
|
2018-11-26 14:55:19 +01:00
|
|
|
rendering and visualization. VTK includes many advanced algorithms
|
|
|
|
(e.g. surface reconstruction, implicit modelling, decimation) and
|
|
|
|
rendering techniques (e.g. hardware-accelerated volume rendering,
|
|
|
|
LOD control).
|
2011-04-19 17:17:29 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
This package contains many examples showing how to use VTK.
|
|
|
|
Examples are available in the C++, Tcl, Python and Java programming
|
|
|
|
languages.
|
2019-01-05 17:21:10 +01:00
|
|
|
%endif
|
2012-04-03 18:10:57 +02:00
|
|
|
|
2008-07-18 21:58:34 +02:00
|
|
|
%prep
|
2020-07-19 00:18:35 +02:00
|
|
|
%setup -n VTK-%{version}
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%if %{with gles}
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%endif
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
2012-04-22 23:23:55 +02:00
|
|
|
|
2018-12-14 01:56:10 +01:00
|
|
|
# Replace relative path ../../../../VTKData with %%{_datadir}/vtkdata
|
2008-07-18 21:58:34 +02:00
|
|
|
# otherwise it will break on symlinks.
|
2018-12-14 01:56:10 +01:00
|
|
|
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs -r perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata,g'
|
2008-07-18 21:58:34 +02:00
|
|
|
|
|
|
|
%build
|
2019-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
|
|
|
source %{mpiprefix}/bin/mpivars.sh
|
|
|
|
export CC=mpicc
|
|
|
|
export CXX=mpicxx
|
|
|
|
%else
|
|
|
|
export CC=gcc
|
|
|
|
export CXX=g++
|
|
|
|
%endif
|
|
|
|
|
2011-04-19 17:17:29 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
|
2020-07-19 00:18:35 +02:00
|
|
|
# The %%cmake macro sets CMAKE_SKIP_RPATH=ON for Leap 15.x which causes build failures
|
2020-06-03 17:39:23 +02:00
|
|
|
# https://discourse.vtk.org/t/building-fails-generating-wrap-hierarchy-for-vtk-commoncore-unable-to-open-libvtkwrappingtools-so-1
|
2020-07-19 00:18:35 +02:00
|
|
|
# -DOpenGL_GL_PREFERENCE:STRING='LEGACY' - see https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6946#note_767329
|
2018-06-13 16:16:14 +02:00
|
|
|
%cmake \
|
2020-05-29 15:55:10 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=%{my_prefix} \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
|
|
|
|
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}-%{series} \
|
|
|
|
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib} \
|
|
|
|
-DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/%{pkgname} \
|
|
|
|
-DVTK_PYTHON_OPTIONAL_LINK:BOOL=OFF \
|
|
|
|
-DVTK_BUILD_TESTING:BOOL=ON \
|
2020-07-19 00:18:35 +02:00
|
|
|
-DVTK_BUILD_EXAMPLES:BOOL=%{?with_examples:ON}%{!?with_examples:OFF} \
|
|
|
|
-DVTK_BUILD_DOCUMENTATION:BOOL=%{?with_documentation:ON}%{!?with_documentation:OFF} \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON \
|
2020-06-03 17:39:23 +02:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=OFF \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
|
|
|
|
%endif
|
2020-05-29 15:55:10 +02:00
|
|
|
-DVTK_MODULE_ENABLE_VTK_TestingCore=WANT \
|
|
|
|
-DVTK_MODULE_ENABLE_VTK_TestingRendering=WANT \
|
2020-07-19 00:18:35 +02:00
|
|
|
-DVTK_MODULE_ENABLE_VTK_RenderingContextOpenGL2=YES \
|
|
|
|
-DVTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig=YES \
|
2013-07-13 14:15:10 +02:00
|
|
|
-DVTK_CUSTOM_LIBRARY_SUFFIX="" \
|
2020-05-29 15:55:10 +02:00
|
|
|
-DVTK_GROUP_ENABLE_Imaging=WANT \
|
2019-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
2020-05-29 15:55:10 +02:00
|
|
|
-DVTK_USE_MPI:BOOL=ON \
|
|
|
|
-DVTK_GROUP_ENABLE_MPI=WANT \
|
2019-01-05 17:21:10 +01:00
|
|
|
%else
|
2020-05-29 15:55:10 +02:00
|
|
|
-DVTK_USE_MPI:BOOL=OFF \
|
2019-01-05 17:21:10 +01:00
|
|
|
%endif
|
2020-05-29 15:55:10 +02:00
|
|
|
-DVTK_GROUP_ENABLE_Qt=WANT \
|
|
|
|
-DVTK_GROUP_ENABLE_Rendering=WANT \
|
|
|
|
-DVTK_GROUP_ENABLE_StandAlone=WANT \
|
|
|
|
-DVTK_GROUP_ENABLE_Views=WANT \
|
2016-04-05 12:43:08 +02:00
|
|
|
-DVTK_PYTHON_VERSION=3 \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
|
2020-07-19 00:18:35 +02:00
|
|
|
-DJava_JAVAH_EXECUTABLE=%{_bindir}/true \
|
2020-06-03 17:39:23 +02:00
|
|
|
-DVTK_WRAP_JAVA:BOOL=%{?with_java:ON}%{!?with_java:OFF} \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DVTK_WRAP_PYTHON:BOOL=ON \
|
2020-05-29 15:55:10 +02:00
|
|
|
-DVTK_USE_EXTERNAL:BOOL=ON \
|
2020-07-19 00:18:35 +02:00
|
|
|
-DOpenGL_GL_PREFERENCE:STRING='GLVND' \
|
|
|
|
-DVTK_OPENGL_USE_GLES:BOOL=%{?with_gles:ON}%{!?with_gles:OFF} \
|
2020-05-29 15:55:10 +02:00
|
|
|
-DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=%{?with_gl2ps:ON}%{!?with_gl2ps:OFF} \
|
|
|
|
-DVTK_MODULE_USE_EXTERNAL_VTK_libharu=%{?with_haru:ON}%{!?with_haru:OFF} \
|
|
|
|
-DVTK_MODULE_USE_EXTERNAL_VTK_pugixml=%{?with_pugixml:ON}%{!?with_pugixml:OFF} \
|
2020-07-19 00:18:35 +02:00
|
|
|
-DVTK_MODULE_ENABLE_VTK_pegtl=%{?with_pegtl:YES}%{!?with_pegtl:NO}
|
2012-04-22 23:23:55 +02:00
|
|
|
|
2019-03-19 14:50:29 +01:00
|
|
|
#-DVTK_EXTERNAL_LIBHARU_IS_SHARED:BOOL=OFF \
|
|
|
|
|
2020-05-29 15:55:10 +02:00
|
|
|
%cmake_build
|
2011-04-19 17:17:29 +02:00
|
|
|
|
|
|
|
# Remove executable bits from sources (some of which are generated)
|
2017-08-09 12:08:22 +02:00
|
|
|
find . -name \*.c -o -name \*.cxx -o -name \*.h -o -name \*.hxx -o -name \*.gif -exec chmod -x "{}" "+"
|
2008-08-09 15:10:45 +02:00
|
|
|
|
2008-07-18 21:58:34 +02:00
|
|
|
%install
|
2018-06-13 16:16:14 +02:00
|
|
|
%cmake_install
|
2011-04-19 17:17:29 +02:00
|
|
|
|
2020-04-30 04:03:15 +02:00
|
|
|
%if %{with examples}
|
2011-04-19 17:17:29 +02:00
|
|
|
# List of executable examples
|
|
|
|
cat > examples.list << EOF
|
2018-06-13 16:16:14 +02:00
|
|
|
AmbientSpheres
|
|
|
|
Arrays
|
|
|
|
BalloonWidget
|
|
|
|
BandedContours
|
|
|
|
Cone
|
|
|
|
Cone2
|
|
|
|
Cone3
|
|
|
|
Cone4
|
|
|
|
Cone5
|
|
|
|
Cone6
|
|
|
|
Cube
|
|
|
|
Cylinder
|
|
|
|
Delaunay3D
|
|
|
|
Delaunay3DAlpha
|
|
|
|
DiffuseSpheres
|
|
|
|
DumpXMLFile
|
|
|
|
FilledContours
|
|
|
|
FixedPointVolumeRayCastMapperCT
|
|
|
|
GPURenderDemo
|
2013-07-13 14:15:10 +02:00
|
|
|
Generate2DAMRDataSetWithPulse
|
|
|
|
Generate3DAMRDataSetWithPulse
|
|
|
|
GenerateCubesFromLabels
|
|
|
|
GenerateModelsFromLabels
|
2018-06-13 16:16:14 +02:00
|
|
|
HierarchicalBoxPipeline
|
|
|
|
ImageSlicing
|
|
|
|
LabeledMesh
|
2011-04-19 17:17:29 +02:00
|
|
|
Medical1
|
|
|
|
Medical2
|
|
|
|
Medical3
|
2013-07-13 14:15:10 +02:00
|
|
|
Medical4
|
2016-02-21 13:14:22 +01:00
|
|
|
MultiBlock
|
2018-06-13 16:16:14 +02:00
|
|
|
ParticleReader
|
2016-02-21 13:14:22 +01:00
|
|
|
RGrid
|
|
|
|
SGrid
|
2018-06-13 16:16:14 +02:00
|
|
|
Slider
|
|
|
|
Slider2D
|
2011-04-19 17:17:29 +02:00
|
|
|
SpecularSpheres
|
2018-06-13 16:16:14 +02:00
|
|
|
TubesWithVaryingRadiusAndColors
|
|
|
|
finance
|
2011-04-19 17:17:29 +02:00
|
|
|
EOF
|
|
|
|
|
2013-07-13 14:15:10 +02:00
|
|
|
# Install examples
|
2019-01-05 17:21:10 +01:00
|
|
|
%if "%{flavor}" == ""
|
2013-07-13 14:15:10 +02:00
|
|
|
for file in `cat examples.list`; do
|
2019-01-05 17:21:10 +01:00
|
|
|
install -p build/bin/$file %{buildroot}%{my_bindir}
|
2011-04-19 17:17:29 +02:00
|
|
|
done
|
2019-01-05 17:21:10 +01:00
|
|
|
perl -pi -e's,^,%{my_bindir}/,' examples.list
|
|
|
|
%endif
|
2009-06-23 18:55:47 +02:00
|
|
|
|
2020-04-30 04:03:15 +02:00
|
|
|
%endif
|
|
|
|
|
2020-07-19 00:18:35 +02:00
|
|
|
# Move licenses to licensedir instead of %%{my_datadir}/licenses
|
|
|
|
mkdir -p %{buildroot}%{_licensedir}
|
|
|
|
mv %{buildroot}%{my_datadir}/licenses/VTK %{buildroot}%{_licensedir}/%{name}
|
2020-05-29 15:55:10 +02:00
|
|
|
|
2011-04-19 17:17:29 +02:00
|
|
|
%fdupes -s %{buildroot}
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2018-11-26 14:55:19 +01:00
|
|
|
%check
|
|
|
|
# Make sure the python library is at least importable
|
2019-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
|
|
|
source %{mpiprefix}/bin/mpivars.sh
|
2019-03-19 14:50:29 +01:00
|
|
|
export _PYTHON_MPI_PREFIX=`echo %{buildroot}%{my_libdir}/py*/site-packages/`
|
|
|
|
export PYTHONPATH=$_PYTHON_MPI_PREFIX:$PYTHONPATH
|
2019-01-05 17:21:10 +01:00
|
|
|
%endif
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{my_libdir}
|
2019-03-19 14:50:29 +01:00
|
|
|
export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitearch}
|
2018-11-26 14:55:19 +01:00
|
|
|
python3 -c "import vtk"
|
2020-04-27 13:46:27 +02:00
|
|
|
find %{buildroot} . -name vtk.cpython-3*.pyc -delete # drop unreproducible time-based .pyc file
|
2018-11-26 14:55:19 +01:00
|
|
|
|
2017-08-09 09:38:23 +02:00
|
|
|
%post -n %{shlib} -p /sbin/ldconfig
|
|
|
|
%postun -n %{shlib} -p /sbin/ldconfig
|
2020-06-03 17:39:23 +02:00
|
|
|
%if %{with java}
|
2019-03-19 14:50:29 +01:00
|
|
|
%post java -p /sbin/ldconfig
|
|
|
|
%postun java -p /sbin/ldconfig
|
2020-06-03 17:39:23 +02:00
|
|
|
%endif
|
|
|
|
%post qt -p /sbin/ldconfig
|
|
|
|
%postun qt -p /sbin/ldconfig
|
2019-03-19 14:50:29 +01:00
|
|
|
%post -n python3-%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n python3-%{name} -p /sbin/ldconfig
|
2012-04-03 18:10:57 +02:00
|
|
|
|
2018-06-13 16:16:14 +02:00
|
|
|
%files -n %{shlib}
|
|
|
|
%license Copyright.txt
|
2019-01-05 17:21:10 +01:00
|
|
|
%{my_libdir}/lib*.so.*
|
2020-05-29 15:55:10 +02:00
|
|
|
%exclude %{my_libdir}/libvtk*Qt*.so.*
|
2019-03-19 14:50:29 +01:00
|
|
|
%exclude %{my_libdir}/libvtk*Java.so.1
|
2020-05-29 15:55:10 +02:00
|
|
|
%exclude %{my_libdir}/libvtk*Python*.so.1
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2013-07-13 14:15:10 +02:00
|
|
|
%files devel
|
2018-06-13 16:16:14 +02:00
|
|
|
%license Copyright.txt
|
2020-05-29 15:55:10 +02:00
|
|
|
%license %{_datadir}/licenses/%{name}/
|
2020-07-19 00:18:35 +02:00
|
|
|
%if %{without gles}
|
2020-05-29 15:55:10 +02:00
|
|
|
%{my_bindir}/vtkProbeOpenGLVersion
|
2020-07-19 00:18:35 +02:00
|
|
|
%endif
|
2019-01-05 17:21:10 +01:00
|
|
|
%{my_bindir}/%{pkgname}ParseJava
|
|
|
|
%{my_bindir}/%{pkgname}WrapHierarchy
|
|
|
|
%{my_bindir}/%{pkgname}WrapJava
|
|
|
|
%{my_bindir}/%{pkgname}WrapPython
|
|
|
|
%{my_bindir}/%{pkgname}WrapPythonInit
|
|
|
|
%{my_libdir}/*.so
|
2020-05-29 15:55:10 +02:00
|
|
|
%{my_libdir}/vtk/
|
2019-01-05 17:21:10 +01:00
|
|
|
%{?with_mpi: %dir %{my_libdir}/cmake/}
|
2020-05-29 15:55:10 +02:00
|
|
|
%{my_libdir}/cmake/%{pkgname}-%{series}/
|
2019-01-05 17:21:10 +01:00
|
|
|
%{my_incdir}/%{pkgname}-%{series}/
|
2020-05-29 15:55:10 +02:00
|
|
|
# VTK JNI, PythonTkinter, QtGUI
|
2019-01-05 17:21:10 +01:00
|
|
|
%exclude %{my_libdir}/libvtk*Java.so
|
2020-05-29 15:55:10 +02:00
|
|
|
%exclude %{my_libdir}/libvtk*Python*.so
|
|
|
|
%exclude %{my_libdir}/libvtk*Qt*.so
|
2017-08-09 19:48:03 +02:00
|
|
|
|
2020-07-19 00:18:35 +02:00
|
|
|
%if %{with documentation}
|
Accepting request 530507 from home:StefanBruens:branches:science
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
OBS-URL: https://build.opensuse.org/request/show/530507
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=102
2017-10-12 18:20:25 +02:00
|
|
|
%files devel-doc
|
2018-06-13 16:16:14 +02:00
|
|
|
%license Copyright.txt
|
2018-11-26 14:55:19 +01:00
|
|
|
%{_docdir}/%{name}-%{series}
|
2020-07-19 00:18:35 +02:00
|
|
|
%endif
|
Accepting request 530507 from home:StefanBruens:branches:science
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
- Move the vtk binary to the tcl subpackage, it is an interactive
TCL shell, and depends on the TCL bindings. It can be used
standalone from the devel package. Dito for its MPI variant, i.e.
the pvtk binary.
- Move all libvtk*Java.so to the java subpackage. These are part of
the Java bindings, i.e. runtime dependencies. Otherwise, the java
subpacakge depends on the devel subpackage.
- Add the tcl and java subpackage to the devel requires again.
Although not stricly necessary until building java or tcl packages,
the cmake files have a hard dependency on several build artifacts
provided by the tcl and java subpackages. Split devel packages
for the bindings would be preferred, but this is not supported by
the upstream build system.
- Remove the openmpi-devel requires in the python subpackage, the
mpi runtime libraries are provided by openmpi-libs, which is
picked up automatically.
- Split the API documentation from the development subpackage. The
documentation amounts to almost 1 GByte of data, not necessary
when just building packages.
OBS-URL: https://build.opensuse.org/request/show/530507
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=102
2017-10-12 18:20:25 +02:00
|
|
|
|
2020-06-03 17:39:23 +02:00
|
|
|
%if %{with java}
|
2017-08-09 19:48:03 +02:00
|
|
|
%files java
|
2018-06-13 16:16:14 +02:00
|
|
|
%license Copyright.txt
|
2019-01-05 17:21:10 +01:00
|
|
|
%{my_libdir}/libvtk*Java.so
|
2019-03-19 14:50:29 +01:00
|
|
|
%{my_libdir}/libvtk*Java.so.1
|
2020-05-29 15:55:10 +02:00
|
|
|
%{my_libdir}/java/
|
2020-06-03 17:39:23 +02:00
|
|
|
%endif
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2016-02-21 13:14:22 +01:00
|
|
|
%files -n python3-%{name}
|
2018-06-13 16:16:14 +02:00
|
|
|
%license Copyright.txt
|
2019-01-05 17:21:10 +01:00
|
|
|
%{my_bindir}/%{pkgname}python
|
|
|
|
%if %{with mpi}
|
|
|
|
%{my_bindir}/p%{pkgname}python
|
2019-03-19 14:50:29 +01:00
|
|
|
%{my_libdir}/py*
|
|
|
|
%else
|
|
|
|
%{python3_sitearch}/
|
2019-01-05 17:21:10 +01:00
|
|
|
%endif
|
2020-05-29 15:55:10 +02:00
|
|
|
%{my_libdir}/libvtk*Python*.so.1
|
|
|
|
%{my_libdir}/libvtk*Python*.so
|
2012-04-03 18:10:57 +02:00
|
|
|
|
2013-07-13 14:15:10 +02:00
|
|
|
%files qt
|
2018-06-13 16:16:14 +02:00
|
|
|
%license Copyright.txt
|
2020-05-29 15:55:10 +02:00
|
|
|
%{my_libdir}/libvtk*Qt*.so.*
|
|
|
|
%{my_libdir}/libvtk*Qt*.so
|
2012-04-03 18:10:57 +02:00
|
|
|
|
2020-04-30 04:03:15 +02:00
|
|
|
%if %{with examples}
|
|
|
|
%if "%{flavor}" == ""
|
|
|
|
%files examples -f examples.list
|
|
|
|
%license Copyright.txt
|
|
|
|
%endif
|
|
|
|
%endif
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2008-08-09 15:10:45 +02:00
|
|
|
%changelog
|