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-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
|
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
%define pkgname vtk
|
|
|
|
|
2019-03-19 14:50:29 +01:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
%bcond_with pugixml
|
|
|
|
%else
|
|
|
|
%bcond_without pugixml
|
|
|
|
%endif
|
|
|
|
# Need patched version with HPDF_SHADING
|
|
|
|
%bcond_with haru
|
|
|
|
# Need unrelased version > 1.4.0 with e.g. gl2psTextOptColorBL
|
|
|
|
%bcond_with gl2ps
|
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
%if "%{flavor}" == ""
|
|
|
|
%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}
|
2019-03-19 14:50:29 +01:00
|
|
|
Version: 8.2.0
|
2012-04-08 15:38:48 +02:00
|
|
|
Release: 0
|
2019-03-19 14:50:29 +01:00
|
|
|
%define series 8.2
|
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
|
|
|
|
Summary: The Visualization Toolkit - A high level 3D visualization library
|
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
|
2017-09-12 14:40:37 +02:00
|
|
|
# PATCH-FIX-OPENSUSE 0001-Allow-compilation-on-GLES-platforms.patch VTK issue #17113 stefan.bruens@rwth-aachen.de -- Fix building with Qt GLES builds
|
2019-03-19 14:50:29 +01:00
|
|
|
Patch2: 0001-Allow-compilation-on-GLES-platforms.patch
|
|
|
|
# PATCH-FIX-OPENSUSE bundled_libharu_add_missing_libm.patch stefan.bruens@rwth-aachen.de -- Add missing libm for linking
|
|
|
|
Patch3: bundled_libharu_add_missing_libm.patch
|
|
|
|
# PATCH-FIX-OPENSUSE bundled_exodusii_add_missing_libpthread.patch stefan.bruens@rwth-aachen.de -- Add missing libm for linking
|
|
|
|
Patch4: bundled_exodusii_add_missing_libpthread.patch
|
|
|
|
# PATCH-FIX-OPENSUSE -- Missing libogg symbols
|
|
|
|
Patch5: 0001-Add-libogg-to-IOMovie-target-link-libraries.patch
|
|
|
|
# PATCH-FIX-UPSTREAM -- Compatibility for proj4 5.x and 6.0, https://gitlab.kitware.com/vtk/vtk/issues/17554
|
|
|
|
Patch6: 0001-Make-code-calling-proj4-compatible-with-proj4-5.0-an.patch
|
2020-03-10 16:16:23 +01:00
|
|
|
# PATCH-FIX-UPSTREAM -- Support for python3.8
|
|
|
|
Patch7: python38.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: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2019-03-19 14:50:29 +01:00
|
|
|
%if %{with gl2ps}
|
|
|
|
BuildRequires: gl2ps-devel > 1.4.0
|
|
|
|
%endif
|
2011-04-19 17:17:29 +02:00
|
|
|
BuildRequires: gnuplot
|
|
|
|
BuildRequires: graphviz
|
2019-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
|
|
|
BuildRequires: hdf5-%{mpi_flavor}-devel
|
|
|
|
%endif
|
2018-05-08 08:38:04 +02:00
|
|
|
BuildRequires: hdf5-devel
|
2018-01-24 17:47:22 +01:00
|
|
|
BuildRequires: java-devel
|
2020-01-31 17:21:56 +01:00
|
|
|
BuildRequires: libboost_graph-devel
|
|
|
|
BuildRequires: libboost_graph_parallel-devel
|
|
|
|
BuildRequires: libboost_serialization-devel
|
|
|
|
%if %{with mpi}
|
|
|
|
BuildRequires: libboost_mpi-devel
|
|
|
|
%endif
|
2019-03-19 14:50:29 +01:00
|
|
|
%if %{with haru}
|
|
|
|
BuildRequires: libharu-devel > 2.3.0
|
|
|
|
%endif
|
2011-04-19 17:17:29 +02:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libmysqlclient-devel
|
|
|
|
BuildRequires: libtiff-devel
|
2019-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
|
|
|
BuildRequires: %{mpi_flavor}-devel
|
|
|
|
%endif
|
2016-02-21 13:14:22 +01:00
|
|
|
BuildRequires: python3-devel
|
2019-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
2017-08-09 09:38:23 +02:00
|
|
|
BuildRequires: python3-mpi4py-devel
|
2019-01-05 17:21:10 +01:00
|
|
|
%endif
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: python3-numpy-devel
|
2018-06-13 16:16:14 +02:00
|
|
|
BuildRequires: python3-qt5-devel
|
2012-04-03 18:10:57 +02:00
|
|
|
BuildRequires: wget
|
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-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
|
|
|
BuildRequires: netcdf-%{mpi_flavor}-devel
|
|
|
|
%endif
|
2019-11-06 17:38:57 +01:00
|
|
|
BuildRequires: pkgconfig(proj) >= 5.0.0
|
2019-03-19 14:50:29 +01:00
|
|
|
%if %{with pugixml}
|
|
|
|
BuildRequires: pkgconfig(pugixml)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(theora)
|
2019-03-19 14:50:29 +01:00
|
|
|
# Still required with 8.2.x for PythonTkInter
|
2018-11-26 14:55:19 +01:00
|
|
|
BuildRequires: pkgconfig(tk)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
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
|
2018-12-14 01:56:10 +01:00
|
|
|
# not strictly necessary, but required by VTKs cmake files
|
2019-01-05 17:21:10 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
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
|
|
|
Requires: %{name}-java = %{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}
|
|
|
|
Requires: python3-%{name} = %{version}
|
|
|
|
%{?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)
|
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
|
2014-02-01 12:59:26 +01:00
|
|
|
%setup -q -n VTK-%{version}
|
2019-03-19 14:50:29 +01:00
|
|
|
%patch2 -p1
|
2017-09-12 14:40:37 +02:00
|
|
|
%patch3 -p1
|
2018-06-13 16:16:14 +02:00
|
|
|
%patch4 -p1
|
2019-03-19 14:50:29 +01:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
2020-03-10 16:16:23 +01:00
|
|
|
%patch7 -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-09-11 13:11:59 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
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}"
|
|
|
|
|
2018-01-24 17:47:22 +01:00
|
|
|
# FindJava.cmake looks for javah executable. However,
|
|
|
|
# the build never invokes the tool. Define a bogus
|
|
|
|
# Java_JAVAH_EXECUTABLE in order to be able to build
|
|
|
|
# with JDK10 that does not have this tool, deprecated
|
|
|
|
# since JDK8.
|
2018-06-13 16:16:14 +02:00
|
|
|
%cmake \
|
2012-04-03 18:10:57 +02:00
|
|
|
-DBUILD_DOCUMENTATION:BOOL=ON \
|
2011-04-19 17:17:29 +02:00
|
|
|
-DBUILD_EXAMPLES:BOOL=ON \
|
2014-02-01 12:59:26 +01:00
|
|
|
-DBUILD_TESTING:BOOL=OFF \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON \
|
|
|
|
-DJava_JAVAH_EXECUTABLE:PATH=%{_bindir}/true \
|
|
|
|
-DModule_vtkTestingCore:BOOL=ON \
|
|
|
|
-DModule_vtkTestingRendering:BOOL=ON \
|
|
|
|
-DOpenGL_GL_PREFERENCE:STRING='GLVND' \
|
2013-07-13 14:15:10 +02:00
|
|
|
-DVTK_CUSTOM_LIBRARY_SUFFIX="" \
|
|
|
|
-DVTK_Group_Imaging:BOOL=ON \
|
2019-01-05 17:21:10 +01:00
|
|
|
%if %{with mpi}
|
|
|
|
-DVTK_Group_MPI:BOOL=ON \
|
|
|
|
%else
|
2018-11-26 14:55:19 +01:00
|
|
|
-DVTK_Group_MPI:BOOL=OFF \
|
2019-01-05 17:21:10 +01:00
|
|
|
%endif
|
2013-07-13 14:15:10 +02:00
|
|
|
-DVTK_Group_Qt:BOOL=ON \
|
|
|
|
-DVTK_Group_Rendering:BOOL=ON \
|
|
|
|
-DVTK_Group_StandAlone:BOOL=ON \
|
|
|
|
-DVTK_Group_Tk:BOOL=ON \
|
|
|
|
-DVTK_Group_Views:BOOL=ON \
|
2019-01-05 17:21:10 +01:00
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=%{my_prefix} \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib} \
|
|
|
|
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib} \
|
|
|
|
-DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/%{pkgname} \
|
2018-11-26 14:55:19 +01:00
|
|
|
-DVTK_INSTALL_QT_DIR:STRING=%{_lib}/qt5/plugins/designer \
|
2016-04-05 12:43:08 +02:00
|
|
|
-DVTK_PYTHON_VERSION=3 \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DVTK_QT_VERSION=5 \
|
|
|
|
-DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
|
|
|
|
-DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
|
2016-11-25 21:14:23 +01:00
|
|
|
-DVTK_USE_SYSTEM_DIY2=OFF \
|
2019-03-19 14:50:29 +01:00
|
|
|
-DVTK_USE_SYSTEM_GL2PS:BOOL=%{?with_gl2ps:ON}%{!?with_gl2ps:OFF} \
|
|
|
|
-DVTK_USE_SYSTEM_LIBHARU:BOOL=%{?with_haru:ON}%{!?with_haru:OFF} \
|
|
|
|
-DVTK_USE_SYSTEM_LIBPROJ:BOOL=ON \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DVTK_USE_SYSTEM_HDF5:BOOL=ON \
|
|
|
|
-DVTK_USE_SYSTEM_MPI4PY=ON \
|
|
|
|
-DVTK_USE_SYSTEM_NETCDF:BOOL=ON \
|
2019-03-19 14:50:29 +01:00
|
|
|
-DVTK_USE_SYSTEM_PUGIXML:BOOL=%{?with_pugixml:ON}%{!?with_pugixml:OFF} \
|
2018-06-13 16:16:14 +02:00
|
|
|
-DVTK_WRAP_JAVA:BOOL=ON \
|
|
|
|
-DVTK_WRAP_PYTHON:BOOL=ON \
|
|
|
|
-DVTK_WRAP_PYTHON_SIP:BOOL=ON \
|
2019-01-05 17:21:10 +01:00
|
|
|
-DVTK_INSTALL_DOC_DIR:PATH=%{_docdir}/%{name}-%{series}
|
2012-04-22 23:23:55 +02:00
|
|
|
|
2019-03-19 14:50:29 +01:00
|
|
|
#-DVTK_EXTERNAL_LIBHARU_IS_SHARED:BOOL=OFF \
|
|
|
|
|
2018-06-13 16:16:14 +02:00
|
|
|
%make_jobs
|
2017-07-14 10:49:26 +02:00
|
|
|
make %{?_smp_mflags} DoxygenDoc
|
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
|
|
|
|
|
|
|
# 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
|
|
|
|
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"
|
|
|
|
|
2017-08-09 09:38:23 +02:00
|
|
|
%post -n %{shlib} -p /sbin/ldconfig
|
|
|
|
%postun -n %{shlib} -p /sbin/ldconfig
|
2019-03-19 14:50:29 +01:00
|
|
|
%post java -p /sbin/ldconfig
|
|
|
|
%postun java -p /sbin/ldconfig
|
|
|
|
%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.*
|
2019-03-19 14:50:29 +01:00
|
|
|
%exclude %{my_libdir}/libvtk*Java.so.1
|
|
|
|
%exclude %{my_libdir}/libvtk*Python3*.so.1
|
|
|
|
%exclude %{my_libdir}/libvtkFiltersPython.so.1
|
|
|
|
%exclude %{my_libdir}/libvtkPythonContext2D.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
|
2019-03-19 14:50:29 +01:00
|
|
|
#%%{my_bindir}/%%{pkgname}EncodeString
|
|
|
|
#%%{my_bindir}/%%{pkgname}HashSource
|
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
|
|
|
|
%{?with_mpi: %dir %{my_libdir}/cmake/}
|
|
|
|
%{my_libdir}/cmake/%{pkgname}/
|
|
|
|
%{my_libdir}/libvtkWrappingTools.a
|
|
|
|
%{my_incdir}/%{pkgname}-%{series}/
|
2019-03-19 14:50:29 +01:00
|
|
|
# VTK JNI, PythonTkinter
|
2019-01-05 17:21:10 +01:00
|
|
|
%exclude %{my_libdir}/libvtk*Java.so
|
2019-03-19 14:50:29 +01:00
|
|
|
%exclude %{my_libdir}/libvtk*Python3*.so
|
2019-01-05 17:21:10 +01:00
|
|
|
%exclude %{my_libdir}/libvtkRenderingPythonTkWidgets*.so
|
2017-08-09 19:48:03 +02:00
|
|
|
|
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}
|
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
|
|
|
|
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}/%{pkgname}.jar
|
|
|
|
%{my_libdir}/libvtk*Java.so
|
2019-03-19 14:50:29 +01:00
|
|
|
%{my_libdir}/libvtk*Java.so.1
|
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
|
2019-03-19 14:50:29 +01:00
|
|
|
%{my_libdir}/libvtk*Python3*.so.1
|
|
|
|
%{my_libdir}/libvtkFiltersPython.so.1
|
|
|
|
%{my_libdir}/libvtkPythonContext2D.so.1
|
2019-01-05 17:21:10 +01:00
|
|
|
%{my_libdir}/libvtkRenderingPythonTkWidgets*.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
|
2019-01-05 17:21:10 +01:00
|
|
|
%{?with_mpi: %dir %{my_libdir}/qt5/}
|
|
|
|
%{?with_mpi: %dir %{my_libdir}/qt5/plugins/}
|
|
|
|
%dir %{my_libdir}/qt5/plugins/designer/
|
|
|
|
%{my_libdir}/qt5/plugins/designer/libQVTKWidgetPlugin.so
|
2012-04-03 18:10:57 +02:00
|
|
|
|
2019-01-05 17:21:10 +01:00
|
|
|
%if "%{flavor}" == ""
|
2018-06-13 16:16:14 +02:00
|
|
|
%files examples -f examples.list
|
|
|
|
%license Copyright.txt
|
2019-01-05 17:21:10 +01:00
|
|
|
%endif
|
2008-07-18 21:58:34 +02:00
|
|
|
|
2008-08-09 15:10:45 +02:00
|
|
|
%changelog
|