Accepting request 360188 from home:badshah400:branches:science

Update to version 7.0.0 (mention new patch in changelog).

OBS-URL: https://build.opensuse.org/request/show/360188
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=67
This commit is contained in:
Dirk Stoecker 2016-02-21 12:14:22 +00:00 committed by Git OBS Bridge
parent e23b16d6dd
commit 6221fd827e
6 changed files with 97 additions and 54 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:92a493354c5fa66bea73b5fc014154af5d9f3f6cee8d20a826f4cd5d4b0e8a5e
size 30385070

3
VTK-7.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78a990a15ead79cdc752e86b83cfab7dbf5b7ef51ba409db02570dbdd9ec32c3
size 30659751

View File

@ -0,0 +1,25 @@
Index: VTK-7.0.0/Filters/StatisticsGnuR/vtkRInterface.cxx
===================================================================
--- VTK-7.0.0.orig/Filters/StatisticsGnuR/vtkRInterface.cxx
+++ VTK-7.0.0/Filters/StatisticsGnuR/vtkRInterface.cxx
@@ -20,12 +20,15 @@
#include "vtkRInterface.h"
+// uintptr_t is already defined in recent versions of R which therefore causes a
+// clash when the same symbol is redefined in stddef.h
+
// for uintptr_t
-#ifdef _MSC_VER
-#include <stddef.h>
-#else
-#include <stdint.h>
-#endif
+// #ifdef _MSC_VER
+// #include <stddef.h>
+// #else
+// #include <stdint.h>
+// #endif
#include "vtkInformation.h"
#include "vtkInformationVector.h"

View File

@ -1,3 +1,6 @@
# FIXME: See if packaging can be tweaked to avoid these warnings later # FIXME: See if packaging can be tweaked to avoid these warnings later
# python-vtk needs these devel files to work # python-vtk needs these devel files to work
addFilter("python-vtk.* devel-file-in-non-devel-package") addFilter("python3-vtk.* devel-file-in-non-devel-package")
# Upstream does not supply manuals for any binary, suppress warnings
addFilter(".* no-manual-page-for-binary")

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Wed Feb 17 01:13:12 UTC 2016 - badshah400@gmail.com
- Update to version 7.0.0:
+ See https://blog.kitware.com/vtk-7-0-0/ for a detailed
article describing all the changes in this version.
- Add vtk-Rinterface-uintptr_t.patch to fix building: uintptr_t
is already defined in the R headers, uintptr_t definition in
<stdint.h> conflicts with the R definition and causes builds to
fail. This patch fixes the problem by commenting out the call
to include stdint.h (it was only being used for this solitary
symbol).
- Use python 3 for building, rename python- subpackages
accordingly to python3-.
- Update file lists in accordance with added/dropped binaries
upstream; affects vtk-examples, vtk-devel.
- Drop conditionals referencing outdated openSUSE version 12.3.
- Update rpmlintrc file to suppress rpmlint warnings for
"no-manual-page-for-binary": upstream does not supply manuals
for its binaries and does not plan to.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 18 09:11:38 UTC 2015 - badshah400@gmail.com Fri Sep 18 09:11:38 UTC 2015 - badshah400@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package vtk # spec file for package vtk
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,9 +17,9 @@
Name: vtk Name: vtk
Version: 6.3.0 Version: 7.0.0
Release: 0 Release: 0
%define series 6.3 %define series 7.0
# This is a variant BSD license, a cross between BSD and ZLIB. # This is a variant BSD license, a cross between BSD and ZLIB.
# For all intents, it has the same rights and restrictions as BSD. # For all intents, it has the same rights and restrictions as BSD.
# http://fedoraproject.org/wiki/Licensing/BSD#VTKBSDVariant # http://fedoraproject.org/wiki/Licensing/BSD#VTKBSDVariant
@ -32,6 +32,8 @@ Source: http://www.vtk.org/files/release/%{series}/VTK-%{version}.tar.gz
Source1: vtk-rpmlintrc Source1: vtk-rpmlintrc
# PATCH-FIX-UPSTREAM vtk-fix-file-contains-date-time.patch badshah400@gmail.com -- Fix file containing DATE and TIME # PATCH-FIX-UPSTREAM vtk-fix-file-contains-date-time.patch badshah400@gmail.com -- Fix file containing DATE and TIME
Patch1: vtk-fix-file-contains-date-time.patch Patch1: vtk-fix-file-contains-date-time.patch
# PATCH-FIX-UPSTREAM vtk-Rinterface-uintptr_t.patch badshah400@gmail.com -- Only use uintptr_t definition from R headers; no longer include stdint.h
Patch2: vtk-Rinterface-uintptr_t.patch
BuildRequires: Mesa-libGL-devel BuildRequires: Mesa-libGL-devel
BuildRequires: R-base-devel BuildRequires: R-base-devel
BuildRequires: boost-devel BuildRequires: boost-devel
@ -59,14 +61,13 @@ BuildRequires: libtheora-devel
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
BuildRequires: netcdf-devel BuildRequires: netcdf-devel
BuildRequires: openmpi-devel BuildRequires: openmpi-devel
BuildRequires: python-devel BuildRequires: python3-devel
BuildRequires: tcl-devel BuildRequires: tcl-devel
BuildRequires: tk-devel BuildRequires: tk-devel
BuildRequires: wget BuildRequires: wget
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if 0%{?suse_version} > 1320 %if 0%{?suse_version} > 1320
BuildRequires: python-qt5-devel BuildRequires: python3-qt5-devel
BuildRequires: pkgconfig(Qt5OpenGL) BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5OpenGLExtensions) BuildRequires: pkgconfig(Qt5OpenGLExtensions)
BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Sql)
@ -74,7 +75,7 @@ BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Widgets)
%else %else
BuildRequires: libqt4-devel BuildRequires: libqt4-devel
BuildRequires: python-qt4-devel BuildRequires: python3-qt4-devel
%endif %endif
%if %{?sles_version} %if %{?sles_version}
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
@ -125,8 +126,8 @@ Requires: libtiff-devel
Requires: libxml2-devel Requires: libxml2-devel
Requires: netcdf-devel Requires: netcdf-devel
Requires: openmpi-devel Requires: openmpi-devel
Requires: python-%{name} = %{version} Requires: python3-%{name} = %{version}
Requires: python-%{name}-qt = %{version} Requires: python3-%{name}-qt = %{version}
%description devel %description devel
VTK is an open-source software system for image processing, 3D VTK is an open-source software system for image processing, 3D
@ -152,16 +153,15 @@ volume rendering, LOD control).
This package provides java bindings for VTK. This package provides java bindings for VTK.
%package -n python-%{name} %package -n python3-%{name}
Summary: Python bindings for VTK Summary: Python bindings for VTK
Group: System/Libraries Group: System/Libraries
Requires: %{name} = %{version} Requires: %{name} = %{version}
# DESPITE NOT BEING A DEVEL PACKAGE, THIS REQUIRES OPENMPI-DEVEL TO RUN # DESPITE NOT BEING A DEVEL PACKAGE, THIS REQUIRES OPENMPI-DEVEL TO RUN
Requires: openmpi-devel Requires: openmpi-devel
Requires: openmpi-libs Requires: openmpi-libs
%{py_requires}
%description -n python-%{name} %description -n python3-%{name}
VTK is an open-source software system for image processing, 3D VTK is an open-source software system for image processing, 3D
graphics, volume rendering and visualization. VTK includes many graphics, volume rendering and visualization. VTK includes many
advanced algorithms (e.g., surface reconstruction, implicit modelling, advanced algorithms (e.g., surface reconstruction, implicit modelling,
@ -170,26 +170,25 @@ volume rendering, LOD control).
This package provides python bindings for VTK. This package provides python bindings for VTK.
%package -n python-%{name}-qt %package -n python3-%{name}-qt
Summary: Qt Python VTK widget Summary: Qt Python VTK widget
Group: System/Libraries Group: System/Libraries
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: %{name}-qt = %{version} Requires: %{name}-qt = %{version}
Requires: python-%{name} = %{version} Requires: python3-%{name} = %{version}
%if 0%{?suse_version} > 1320 %if 0%{?suse_version} > 1320
Requires: libQt5OpenGL-devel Requires: libQt5OpenGL-devel
Requires: libQt5OpenGLExtensions-devel-static Requires: libQt5OpenGLExtensions-devel-static
Requires: libQt5Sql-devel Requires: libQt5Sql-devel
Requires: libQt5WebKitWidgets-devel Requires: libQt5WebKitWidgets-devel
Requires: libQt5Widgets-devel Requires: libQt5Widgets-devel
Requires: python-qt5 Requires: python3-qt5
%else %else
Requires: libqt4-devel Requires: libqt4-devel
Requires: python-qt4 Requires: python3-qt4
%endif %endif
%{py_requires}
%description -n python-%{name}-qt %description -n python3-%{name}-qt
VTK is an open-source software system for image processing, 3D VTK is an open-source software system for image processing, 3D
graphics, volume rendering and visualization. VTK includes many graphics, volume rendering and visualization. VTK includes many
advanced algorithms (e.g., surface reconstruction, implicit modelling, advanced algorithms (e.g., surface reconstruction, implicit modelling,
@ -261,6 +260,7 @@ This package provides a few testing programs for VTK.
%prep %prep
%setup -q -n VTK-%{version} %setup -q -n VTK-%{version}
%patch1 -p1 %patch1 -p1
%patch2 -p1
# Replace relative path ../../../VTKData with %%{_datadir}/%%{name}data-%%{version} # Replace relative path ../../../VTKData with %%{_datadir}/%%{name}data-%%{version}
# otherwise it will break on symlinks. # otherwise it will break on symlinks.
@ -281,7 +281,7 @@ cmake .. \
-DBUILD_TESTING:BOOL=OFF \ -DBUILD_TESTING:BOOL=OFF \
-DVTK_CUSTOM_LIBRARY_SUFFIX="" \ -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DSIP_INCLUDE_DIR:Path=%{py_incdir} \ -DSIP_INCLUDE_DIR:Path=%{py3_incdir} \
-DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/%{name} \ -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/%{name} \
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/%{name}\ -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/%{name}\
-DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/%{name} \ -DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/%{name} \
@ -298,10 +298,7 @@ cmake .. \
-DVTK_USE_SYSTEM_LIBRARIES:BOOL=OFF \ -DVTK_USE_SYSTEM_LIBRARIES:BOOL=OFF \
%endif %endif
-DVTK_USE_SYSTEM_LIBPROJ4:BOOL=OFF \ -DVTK_USE_SYSTEM_LIBPROJ4:BOOL=OFF \
%if 0%{?suse_version} <= 1230 -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=%{_lib}/python%{py3_ver}/site-packages \
-DVTK_USE_SYSTEM_GL2PS:BOOL=OFF \
%endif
-DVTK_INSTALL_PYTHON_MODULE_DIR:PATH=%{_lib}/python%{py_ver}/site-packages \
-DVTK_WRAP_PYTHON:BOOL=ON \ -DVTK_WRAP_PYTHON:BOOL=ON \
-DVTK_WRAP_JAVA:BOOL=ON \ -DVTK_WRAP_JAVA:BOOL=ON \
-DVTK_WRAP_PYTHON_SIP:BOOL=ON \ -DVTK_WRAP_PYTHON_SIP:BOOL=ON \
@ -318,7 +315,8 @@ cmake .. \
-DModule_vtkFiltersStatisticsGnuR:BOOL=ON \ -DModule_vtkFiltersStatisticsGnuR:BOOL=ON \
-DVTK_WRAP_TCL:BOOL=ON \ -DVTK_WRAP_TCL:BOOL=ON \
-DVTK_USE_SYSTEM_HDF5:BOOL=ON \ -DVTK_USE_SYSTEM_HDF5:BOOL=ON \
-DVTK_USE_SYSTEM_NETCDF:BOOL=ON -DVTK_USE_SYSTEM_NETCDF:BOOL=ON \
-DVTK_PYTHON_VERSION=3
make %{?_smp_mflags} VERBOSE=1 make %{?_smp_mflags} VERBOSE=1
@ -342,14 +340,6 @@ cat > examples.list << EOF
Generate2DAMRDataSetWithPulse Generate2DAMRDataSetWithPulse
Generate3DAMRDataSetWithPulse Generate3DAMRDataSetWithPulse
HierarchicalBoxPipeline HierarchicalBoxPipeline
LabeledMesh
MultiBlock
Arrays
Cube
RGrid
SGrid
ImageDataLIC2DDemo
StructuredGridLIC2DDemo
ImageSlicing ImageSlicing
DumpXMLFile DumpXMLFile
ParticleReader ParticleReader
@ -362,25 +352,30 @@ Medical4
Delaunay3D Delaunay3D
Delaunay3DAlpha Delaunay3DAlpha
finance finance
MultiBlock
BandedContours
FilledContours
TubesWithVaryingRadiusAndColors
BalloonWidget
Slider
Slider2D
LabeledMesh
Arrays
Cube
RGrid
SGrid
AmbientSpheres AmbientSpheres
Cylinder Cylinder
DiffuseSpheres DiffuseSpheres
SpecularSpheres SpecularSpheres
SurfaceLICDemo
Cone Cone
Cone2 Cone2
Cone3 Cone3
Cone4 Cone4
Cone5 Cone5
Cone6 Cone6
BandedContours
FilledContours
TubesWithVaryingRadiusAndColors
FixedPointVolumeRayCastMapperCT FixedPointVolumeRayCastMapperCT
GPURenderDemo GPURenderDemo
BalloonWidget
Slider
Slider2D
EOF EOF
# Install examples # Install examples
@ -400,11 +395,11 @@ chrpath -d %{buildroot}%{_bindir}/*
%post java -p /sbin/ldconfig %post java -p /sbin/ldconfig
%postun java -p /sbin/ldconfig %postun java -p /sbin/ldconfig
%post -n python-%{name} -p /sbin/ldconfig %post -n python3-%{name} -p /sbin/ldconfig
%postun -n python-%{name} -p /sbin/ldconfig %postun -n python3-%{name} -p /sbin/ldconfig
%post -n python-%{name}-qt -p /sbin/ldconfig %post -n python3-%{name}-qt -p /sbin/ldconfig
%postun -n python-%{name}-qt -p /sbin/ldconfig %postun -n python3-%{name}-qt -p /sbin/ldconfig
%post qt -p /sbin/ldconfig %post qt -p /sbin/ldconfig
%postun qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig
@ -422,7 +417,6 @@ chrpath -d %{buildroot}%{_bindir}/*
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/%{name}EncodeString %{_bindir}/%{name}EncodeString
%{_bindir}/%{name}HashSource %{_bindir}/%{name}HashSource
%{_bindir}/%{name}ParseOGLExt
%{_bindir}/%{name}WrapHierarchy %{_bindir}/%{name}WrapHierarchy
%if 0%{?suse_version} <= 1320 %if 0%{?suse_version} <= 1320
%{_bindir}/%{name}mkg3states %{_bindir}/%{name}mkg3states
@ -442,17 +436,17 @@ chrpath -d %{buildroot}%{_bindir}/*
%{_libdir}/%{name}/%{name}.jar %{_libdir}/%{name}/%{name}.jar
%{_libdir}/%{name}/*Java.so.* %{_libdir}/%{name}/*Java.so.*
%files -n python-%{name} %files -n python3-%{name}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/%{name}python %{_bindir}/%{name}python
%{_bindir}/p%{name}python %{_bindir}/p%{name}python
%{_bindir}/%{name}WrapPython %{_bindir}/%{name}WrapPython
%{_bindir}/%{name}WrapPythonInit %{_bindir}/%{name}WrapPythonInit
%{_libdir}/%{name}/*Python*.so.* %{_libdir}/%{name}/*Python*.so.*
%{python_sitearch}/%{name}/ %{python3_sitearch}/%{name}/
%dir %{_libdir}/%{name}/site-packages %dir %{_libdir}/%{name}/site-packages
%{_libdir}/%{name}/site-packages/mpi4py/ %{_libdir}/%{name}/site-packages/mpi4py/
%exclude %{_libdir}/%{name}/*QtPython27D.so.* %exclude %{_libdir}/%{name}/*QtPython*.so.*
%files tcl %files tcl
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -469,11 +463,11 @@ chrpath -d %{buildroot}%{_bindir}/*
%{_libdir}/%{name}/lib*Qt*.so.* %{_libdir}/%{name}/lib*Qt*.so.*
%dir %{_prefix}/%{qtdir}/plugins/designer %dir %{_prefix}/%{qtdir}/plugins/designer
%{_prefix}/%{qtdir}/plugins/designer/libQVTKWidgetPlugin.so %{_prefix}/%{qtdir}/plugins/designer/libQVTKWidgetPlugin.so
%exclude %{_libdir}/%{name}/*Python27D.so.* %exclude %{_libdir}/%{name}/*Python*.so.*
%files -n python-%{name}-qt %files -n python3-%{name}-qt
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/%{name}/*QtPython27D.so.* %{_libdir}/%{name}/*QtPython*.so.*
%files examples -f build/examples.list %files examples -f build/examples.list
%defattr(-,root,root,-) %defattr(-,root,root,-)