diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..085bc08 --- /dev/null +++ b/_constraints @@ -0,0 +1,8 @@ + + + + 8 + + + + diff --git a/vtk-gcc6.patch b/vtk-gcc6.patch new file mode 100644 index 0000000..5cc9b8f --- /dev/null +++ b/vtk-gcc6.patch @@ -0,0 +1,44 @@ +diff --git a/CMake/GenerateExportHeader.cmake b/CMake/GenerateExportHeader.cmake +index ecfae31..80244df 100644 +--- a/CMake/GenerateExportHeader.cmake ++++ b/CMake/GenerateExportHeader.cmake +@@ -163,10 +163,10 @@ endmacro() + macro(_test_compiler_hidden_visibility) + + if(CMAKE_COMPILER_IS_GNUCXX) +- execute_process(COMMAND ${CMAKE_C_COMPILER} ARGS --version ++ execute_process(COMMAND ${CMAKE_C_COMPILER} --version + OUTPUT_VARIABLE _gcc_version_info + ERROR_VARIABLE _gcc_version_info) +- string(REGEX MATCH "[345]\\.[0-9]\\.[0-9]*" ++ string(REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*" + _gcc_version "${_gcc_version_info}") + # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the + # patch level, handle this here: +@@ -181,7 +181,7 @@ macro(_test_compiler_hidden_visibility) + endif() + + if(CMAKE_CXX_COMPILER_ID MATCHES "Intel") +- execute_process(COMMAND ${CMAKE_CXX_COMPILER} ARGS -V ++ execute_process(COMMAND ${CMAKE_CXX_COMPILER} -V + OUTPUT_VARIABLE _intel_version_info + ERROR_VARIABLE _intel_version_info) + string(REGEX REPLACE ".*Version ([0-9]+(\\.[0-9]+)+).*" "\\1" +diff --git a/CMake/vtkCompilerExtras.cmake b/CMake/vtkCompilerExtras.cmake +index e39bd30..4dc928a 100644 +--- a/CMake/vtkCompilerExtras.cmake ++++ b/CMake/vtkCompilerExtras.cmake +@@ -28,11 +28,11 @@ if(CMAKE_COMPILER_IS_GNUCXX) + endif() + + # Now check if we can use visibility to selectively export symbols +- execute_process(COMMAND ${CMAKE_C_COMPILER} ARGS --version ++ execute_process(COMMAND ${CMAKE_C_COMPILER} --version + OUTPUT_VARIABLE _gcc_version_info + ERROR_VARIABLE _gcc_version_info) + +- string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]*" ++ string (REGEX MATCH "[3-9]\\.[0-9]\\.[0-9]*" + _gcc_version "${_gcc_version_info}") + if(NOT _gcc_version) + string (REGEX REPLACE ".*\\(GCC\\).*([34]\\.[0-9]).*" "\\1.0" diff --git a/vtk.changes b/vtk.changes index 4e52b26..a80cd25 100644 --- a/vtk.changes +++ b/vtk.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Wed Apr 13 11:32:12 UTC 2016 - badshah400@gmail.com + +- Add freetype2-devel as a Requires for vtk-devel. + +------------------------------------------------------------------- +Wed Mar 30 14:31:03 UTC 2016 - badshah400@gmail.com + +- Apply vtk-gcc6.patch also to python-vtk. + +------------------------------------------------------------------- +Wed Mar 30 13:08:09 UTC 2016 - stecue@gmail.com + +- Fixed RPATH error for Factory by passing the option + CMAKE_NO_BUILTIN_CHRPATH:BOOL=ON to cmake. + +------------------------------------------------------------------- +Tue Mar 29 20:27:32 UTC 2016 - dmueller@suse.com + +- add vtk-gcc6.patch: Fix build with gcc 6 +- skip RPATH setting + +------------------------------------------------------------------- +Fri Mar 18 19:27:34 UTC 2016 - stecue@gmail.com + +- openmpi-libs will be installed with openmpi-devel if necessary. + No such package on openSUSE 13.1. + +------------------------------------------------------------------- +Tue Mar 15 13:33:58 UTC 2016 - dvaleev@suse.com + +- Add disk constraints + ------------------------------------------------------------------- Wed Feb 17 01:13:12 UTC 2016 - badshah400@gmail.com diff --git a/vtk.spec b/vtk.spec index 21aa787..c936122 100644 --- a/vtk.spec +++ b/vtk.spec @@ -34,6 +34,8 @@ Source1: vtk-rpmlintrc 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 +# PATCH-FIX-UPSTREAM vtk-gcc6.patch dmueller@suse.com -- Fix compilation with GCC >= 6.0 +Patch3: vtk-gcc6.patch BuildRequires: Mesa-libGL-devel BuildRequires: R-base-devel BuildRequires: boost-devel @@ -115,6 +117,7 @@ Requires: hdf5-devel %if 0%{?suse_version} > 1320 Requires: jsoncpp-devel %endif +Requires: freetype2-devel Requires: libexpat-devel Requires: libjpeg-devel Requires: libmysqlclient-devel @@ -159,7 +162,6 @@ Group: System/Libraries Requires: %{name} = %{version} # DESPITE NOT BEING A DEVEL PACKAGE, THIS REQUIRES OPENMPI-DEVEL TO RUN Requires: openmpi-devel -Requires: openmpi-libs %description -n python3-%{name} VTK is an open-source software system for image processing, 3D @@ -187,6 +189,8 @@ Requires: python3-qt5 Requires: libqt4-devel Requires: python3-qt4 %endif +# CONFLICTS IS FOR A PKG (python-vtk) IN SCIENCE THAT IS NOT INTENDED TO BE INCLUDED IN openSUSE:FACTORY +Conflicts: python-vtk %description -n python3-%{name}-qt VTK is an open-source software system for image processing, 3D @@ -261,6 +265,7 @@ This package provides a few testing programs for VTK. %setup -q -n VTK-%{version} %patch1 -p1 %patch2 -p1 +%patch3 -p1 # Replace relative path ../../../VTKData with %%{_datadir}/%%{name}data-%%{version} # otherwise it will break on symlinks. @@ -279,6 +284,7 @@ cmake .. \ -DBUILD_EXAMPLES:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_TESTING:BOOL=OFF \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ -DVTK_CUSTOM_LIBRARY_SUFFIX="" \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ -DSIP_INCLUDE_DIR:Path=%{py3_incdir} \ @@ -316,7 +322,8 @@ cmake .. \ -DVTK_WRAP_TCL:BOOL=ON \ -DVTK_USE_SYSTEM_HDF5:BOOL=ON \ -DVTK_USE_SYSTEM_NETCDF:BOOL=ON \ - -DVTK_PYTHON_VERSION=3 + -DVTK_PYTHON_VERSION=3 \ + -DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON make %{?_smp_mflags} VERBOSE=1