Accepting request 384432 from home:dirkmueller:branches:science
1 OBS-URL: https://build.opensuse.org/request/show/384432 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=71
This commit is contained in:
parent
0f2b66e0df
commit
da53c9cbcb
@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
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 21:15:31 UTC 2016 - stecue@gmail.com
|
||||
|
||||
|
@ -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
|
||||
@ -143,6 +145,7 @@ This package provides python-qt bindings for VTK.
|
||||
%setup -q -n VTK-%{version}
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
# Replace relative path ../../../VTKData with %%{_datadir}/%vtkdata-%%{version}
|
||||
# otherwise it will break on symlinks.
|
||||
@ -207,7 +210,8 @@ cmake .. \
|
||||
%endif
|
||||
-DVTK_USE_SYSTEM_GL2PS:BOOL=ON \
|
||||
-DVTK_USE_SYSTEM_LIBXML2:BOOL=ON \
|
||||
-DVTK_PYTHON_VERSION=2
|
||||
-DVTK_PYTHON_VERSION=2 \
|
||||
-DCMAKE_NO_BUILTIN_CHRPATH:BOOL=ON
|
||||
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
|
||||
|
44
vtk-gcc6.patch
Normal file
44
vtk-gcc6.patch
Normal file
@ -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"
|
17
vtk.changes
17
vtk.changes
@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
7
vtk.spec
7
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
|
||||
@ -260,6 +262,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.
|
||||
@ -278,6 +281,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} \
|
||||
@ -315,7 +319,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user