Todd R 2018-11-22 14:54:18 +00:00 committed by Git OBS Bridge
parent c973343cfc
commit 1dd6e8c79b

View File

@ -81,6 +81,7 @@ BuildRequires: netcdf-devel
BuildRequires: openmpi-devel
BuildRequires: python3-devel
BuildRequires: python3-mpi4py-devel
BuildRequires: python3-numpy-devel
BuildRequires: python3-qt5-devel
BuildRequires: tcl-devel
BuildRequires: tk-devel
@ -106,7 +107,7 @@ rendering and visualization. VTK includes many advanced algorithms
rendering techniques (e.g. hardware-accelerated volume rendering, LOD
control).
%package -n %{shlib}
%package -n %{shlib}
Summary: The Visualization Toolkit - A high level 3D visualization library
Group: System/Libraries
Conflicts: %{vtkcompatlib}
@ -117,7 +118,7 @@ rendering and visualization.
This package provides the shared libraries for VTK.
%package devel
%package devel
Summary: VTK header files for building C++ code
# not strictly necessary, but required by VTKs cmake files
Group: Development/Libraries/C and C++
@ -145,40 +146,43 @@ Requires: netcdf-devel
Requires: openmpi-devel
Conflicts: vtk-compat_gl-devel
%description devel
%description devel
VTK is a software system for image processing, 3D graphics, volume
rendering and visualization.
This provides the VTK header files required to compile C++ programs that
use VTK to do 3D visualisation.
%package devel-doc
%package devel-doc
Summary: VTK API documentation
Group: Documentation/HTML
%description devel-doc
%description devel-doc
VTK is a software system for image processing, 3D graphics, volume
rendering and visualization.
This provides the VTK API documentation useful for developing programs that
use VTK to do 3D visualisation.
%package java
%package java
Summary: Java bindings for VTK
Group: Development/Libraries/Java
Requires: %{shlib} = %{version}
Conflicts: vtk-compat_gl-java
%description java
%description java
VTK is a software system for image processing, 3D graphics, volume
rendering and visualization.
This package provides java bindings for VTK.
%package -n python3-%{name}
%package -n python3-%{name}
Summary: Python bindings for VTK
Group: Development/Languages/Python
Requires: %{shlib} = %{version}
Requires: python3-mpi4py
Requires: python3-numpy
Requires: python3-qt5
Conflicts: python3-vtk-compat_gl
%description -n python3-%{name}
@ -187,7 +191,7 @@ rendering and visualization.
This package provides python bindings for VTK.
%package qt
%package qt
Summary: Qt Designer plugin for QVTKWidget
Group: Development/Libraries/C and C++
Requires: %{shlib} = %{version}
@ -199,40 +203,40 @@ rendering and visualization.
This package provides a Qt Designer plugin for the QVTKWidget.
%package tcl
%package tcl
Summary: Tcl bindings for VTK
Group: Development/Languages/Tcl
Requires: %{shlib} = %{version}
Conflicts: vtk-compat_gl-tcl
%description tcl
%description tcl
VTK is a software system for image processing, 3D graphics, volume
rendering and visualization.
This package provides tcl bindings for VTK.
%package examples
%package examples
Summary: Examples for VTK
Group: Productivity/Scientific/Other
Requires: %{shlib} = %{version}
Recommends: %{name}data = %{version}
Conflicts: vtk-compat_gl-examples
%description examples
%description examples
VTK is a software system for image processing, 3D graphics, volume
rendering and visualization.
This package contains many examples showing how to use VTK. Examples
are available in the C++, Tcl, Python and Java programming languages.
%package testing
%package testing
Summary: Testing programs for VTK
Group: Productivity/Scientific/Other
Requires: %{name}data = %{version}
Requires: %{shlib} = %{version}
Conflicts: vtk-compat_gl-testing
%description testing
%description testing
VTK is a software system for image processing, 3D graphics, volume
rendering and visualization.
@ -366,6 +370,10 @@ chrpath -d %{buildroot}%{_bindir}/*
%fdupes -s %{buildroot}
%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
python3 -c "import python3"
%post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig