SHA256
1
0
forked from pool/vtk

Accepting request 288000 from science

1

OBS-URL: https://build.opensuse.org/request/show/288000
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vtk?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2015-02-27 10:10:27 +00:00 committed by Git OBS Bridge
commit 9564edf8f8
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 26 12:30:11 UTC 2015 - dkxls23@gmail.com
- Add MPI support
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 11 01:52:56 UTC 2014 - badshah400@gmail.com Thu Sep 11 01:52:56 UTC 2014 - badshah400@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package vtk # spec file for package vtk
# #
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX Products 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
@ -61,6 +61,7 @@ BuildRequires: libpng-devel
BuildRequires: libqt4-devel BuildRequires: libqt4-devel
BuildRequires: libtheora-devel BuildRequires: libtheora-devel
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
BuildRequires: openmpi-devel
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-qt4-devel BuildRequires: python-qt4-devel
BuildRequires: tcl-devel BuildRequires: tcl-devel
@ -69,7 +70,7 @@ BuildRequires: wget
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if %{?sles_version} %if %{?sles_version}
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
%else %else
BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libxml-2.0)
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -101,6 +102,7 @@ Requires: libpng-devel
Requires: libqt4-devel Requires: libqt4-devel
Requires: libtheora-devel Requires: libtheora-devel
Requires: libtiff-devel Requires: libtiff-devel
Requires: openmpi-devel
Requires: python-%{name} = %{version} Requires: python-%{name} = %{version}
Requires: python-%{name}-qt = %{version} Requires: python-%{name}-qt = %{version}
@ -241,6 +243,8 @@ export CXXFLAGS="%{optflags}"
mkdir build mkdir build
pushd build pushd build
cmake .. \ cmake .. \
-DCMAKE_CXX_COMPILER:STRING='mpicxx' \
-DCMAKE_C_COMPILER:STRING='mpicc' \
-DBUILD_DOCUMENTATION:BOOL=ON \ -DBUILD_DOCUMENTATION:BOOL=ON \
-DBUILD_EXAMPLES:BOOL=ON \ -DBUILD_EXAMPLES:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \
@ -265,6 +269,7 @@ cmake .. \
-DVTK_WRAP_JAVA:BOOL=ON \ -DVTK_WRAP_JAVA:BOOL=ON \
-DVTK_WRAP_PYTHON_SIP:BOOL=ON \ -DVTK_WRAP_PYTHON_SIP:BOOL=ON \
-DVTK_WRAP_TCL:BOOL=ON \ -DVTK_WRAP_TCL:BOOL=ON \
-DVTK_Group_MPI:BOOL=ON \
-DVTK_Group_Imaging:BOOL=ON \ -DVTK_Group_Imaging:BOOL=ON \
-DVTK_Group_Qt:BOOL=ON \ -DVTK_Group_Qt:BOOL=ON \
-DModule_vtkTestingCore:BOOL=ON \ -DModule_vtkTestingCore:BOOL=ON \
@ -399,6 +404,7 @@ chrpath -d %{buildroot}%{_bindir}/*
%files -n python-%{name} %files -n python-%{name}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/%{name}python %{_bindir}/%{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.*