1 Summary: Parallel visualization application
6 Group: Applications/Engineering
7 URL: http://www.paraview.org/
8 Source0: http://www.paraview.org/files/v4.0/%{name}-v%{version}-source.tgz
9 # Source0-md5: 6a300744eaf32676a3a7e1b42eb642c7
10 Source1: %{name}_22x22.png
12 Patch0: %{name}-vtk-use-system-libs.patch
13 Patch1: %{name}-install.patch
14 Patch2: %{name}-system-Protobuf.patch
15 Patch3: %{name}-system-netcdf.patch
16 Patch4: disable-broken-tests.patch
17 BuildRequires: Mesa-libOSMesa-devel
18 BuildRequires: QtDesigner-devel
19 BuildRequires: QtHelp-devel
20 BuildRequires: QtSql-devel
21 BuildRequires: QtSql-sqlite3
22 BuildRequires: QtUiTools-devel
23 BuildRequires: QtXmlPatterns-devel
24 BuildRequires: QtWebKit-devel
25 BuildRequires: boost-devel
27 BuildRequires: desktop-file-utils
28 BuildRequires: doxygen
29 BuildRequires: expat-devel
30 BuildRequires: freetype-devel
31 BuildRequires: gnuplot
32 BuildRequires: graphviz
33 BuildRequires: hdf5-devel
34 BuildRequires: libjpeg-devel
35 BuildRequires: libpng-devel
36 BuildRequires: libtheora-devel
37 BuildRequires: libtiff-devel
38 BuildRequires: netcdf-devel
39 BuildRequires: netcdf-cxx-devel
40 BuildRequires: openssl-devel
41 BuildRequires: protobuf-devel
42 BuildRequires: python-devel
43 BuildRequires: qt4-build
44 BuildRequires: readline-devel
45 BuildRequires: tk-devel
47 BuildRequires: zlib-devel
48 Requires(post): desktop-file-utils
49 Requires(postun): desktop-file-utils
50 Requires: QtSql-sqlite3
51 %requires_eq_to hdf5 hdf5-devel
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 %define skip_post_check_so lib.*Python.*\.so.*
57 ParaView is an application designed with the need to visualize large
58 data sets in mind. The goals of the ParaView project include the
61 - Develop an open-source, multi-platform visualization application.
62 - Support distributed computation models to process large data sets.
63 - Create an open, flexible, and intuitive user interface.
64 - Develop an extensible architecture based on open standards.
66 ParaView runs on distributed and shared memory parallel as well as
67 single processor systems and has been successfully tested on Windows,
68 Linux and various Unix workstations and clusters. Under the hood,
69 ParaView uses the Visualization Toolkit as the data processing and
70 rendering engine and has a user interface written using a unique blend
73 NOTE: The version in this package has NOT been compiled with MPI
77 Summary: Development files for %{name}
78 Group: Development/Libraries
79 Requires: %{name} = %{version}-%{release}
82 The %{name}-devel package contains libraries and header files for
83 developing applications that use %{name}.
86 %setup -q -n %{name}-v%{version}-source
92 #Remove included thirdparty sources just to be sure
93 for x in protobuf ; do
94 rm -r ThirdParty/$x/vtk$x
96 for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png sqlite tiff zlib ; do
97 rm -r VTK/ThirdParty/$x/vtk$x
100 %{__rm} -r ParaViewCore/ServerImplementation/Default/Testing
107 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
108 -DCMAKE_CXX_COMPILER:FILEPATH=%{__cxx} \
109 -DCMAKE_C_COMPILER:FILEPATH=%{__cc} \
110 -DPV_INSTALL_INCLUDE_DIR:PATH=include/paraview \
111 -DPV_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
112 -DTCL_LIBRARY:PATH=tcl \
113 -DTK_LIBRARY:PATH=tk \
114 -DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=ON \
115 -DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=ON \
116 -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON \
117 -DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=ON \
118 -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
119 -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \
120 -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
121 -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/paraview \
122 -DVTK_INSTALL_INCLUDE_DIR:PATH=include/paraview \
123 -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
124 -DVTK_INSTALL_PACKAGE_DIR=share/cmake/paraview \
125 -DVTK_USE_BOOST:BOOL=ON \
126 -DVTK_USE_INFOVIS:BOOL=OFF \
127 -DVTK_USE_N_WAY_ARRAYS:BOOL=ON \
128 -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
129 -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
130 -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
131 -DVTK_USE_SYSTEM_HDF5:BOOL=ON \
132 -DVTK_USE_SYSTEM_HDF5=ON \
133 -DHDF5_HL_LIBRARY:FILEPATH=%{_libdir}/libhdf5_hl.so \
134 -DVTK_USE_SYSTEM_JPEG:BOOL=ON \
135 -DVTK_USE_SYSTEM_LIBPROJ4=OFF \
136 -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
137 -DVTK_USE_SYSTEM_LIBRARIES=ON \
138 -DVTK_USE_SYSTEM_PNG:BOOL=ON \
139 -DVTK_USE_SYSTEM_TIFF:BOOL=ON \
140 -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
141 -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
142 -DVTK_USE_INFOVIS:BOOL=OFF \
143 -DVTK_USE_SYSTEM_ICET=OFF \
144 -DVTK_USE_SYSTEM_NETCDF=ON \
145 -DVTK_USE_SYSTEM_QTTESTING=OFF \
146 -DVTK_USE_SYSTEM_XDMF2=OFF \
147 -DXDMF_WRAP_PYTHON:BOOL=ON \
148 -DBUILD_DOCUMENTATION:BOOL=ON \
149 -DBUILD_EXAMPLES:BOOL=ON
151 # -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \
156 rm -rf $RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages}
159 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
160 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages
164 DESTDIR=$RPM_BUILD_ROOT
167 cat > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop <<EOF
171 GenericName=Data Viewer
172 Comment=ParaView allows viewing of large data sets
176 MimeType=application/x-paraview;
177 Categories=Application;Graphics;
181 # Move python files by hand for now
182 %{__mv} $RPM_BUILD_ROOT%{_bindir}/Python/vtk $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/
183 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/Python
185 # Install vtk*Python.so by hand for now
186 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/vtk*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/
187 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/vtkPV*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/
189 # Cleanup vtk conflicting binaries
190 %{__rm} $RPM_BUILD_ROOT%{_bindir}/vtk{EncodeString,HashSource,Parse{Java,OGLExt},ProcessShader,Wrap{Hierarchy,Java,Python,Tcl,TclInit,PythonInit}}
192 %{__rm} $RPM_BUILD_ROOT%{_libdir}/paraview/lib*.a
195 rm -rf $RPM_BUILD_ROOT
199 %update_desktop_database
200 %update_mime_database
204 %update_desktop_database
205 %update_mime_database
208 %defattr(644,root,root,755)
209 %doc License_v1.2.txt
210 %attr(755,root,root) %{_bindir}/paraview
211 %attr(755,root,root) %{_bindir}/pvbatch
212 %attr(755,root,root) %{_bindir}/pvdataserver
213 %attr(755,root,root) %{_bindir}/pvpython
214 %attr(755,root,root) %{_bindir}/pvrenderserver
215 %attr(755,root,root) %{_bindir}/pvserver
216 %attr(755,root,root) %{_bindir}/smTestDriver
217 %dir %{_libdir}/paraview/
218 %attr(755,root,root) %{_libdir}/paraview/paraview
219 %attr(755,root,root) %{_libdir}/paraview/pvbatch
220 %attr(755,root,root) %{_libdir}/paraview/pvdataserver
221 %attr(755,root,root) %{_libdir}/paraview/pvpython
222 %attr(755,root,root) %{_libdir}/paraview/pvrenderserver
223 %attr(755,root,root) %{_libdir}/paraview/pvserver
224 %attr(755,root,root) %{_libdir}/paraview/smTestDriver
225 %attr(755,root,root) %{_libdir}/paraview/lib*.so*
226 %{_libdir}/paraview/.plugins
227 %dir %{_libdir}/paraview/site-packages
228 %{_libdir}/paraview/site-packages/autobahn
229 %dir %{_libdir}/paraview/site-packages/paraview
230 %{_libdir}/paraview/site-packages/paraview/pv_compile_complete
231 %{_libdir}/paraview/site-packages/paraview/*.py*
232 %attr(755,root,root) %{_libdir}/paraview/site-packages/paraview/*.so
233 %{_libdir}/paraview/site-packages/paraview/demos
234 %{_libdir}/paraview/site-packages/paraview/vtk
235 %{_libdir}/paraview/site-packages/twisted
236 %dir %{_libdir}/paraview/site-packages/vtk
237 %{_libdir}/paraview/site-packages/vtk/*.py*
238 %dir %{_libdir}/paraview/site-packages/vtk/gtk
239 %{_libdir}/paraview/site-packages/vtk/gtk/*.py*
240 %dir %{_libdir}/paraview/site-packages/vtk/qt4
241 %{_libdir}/paraview/site-packages/vtk/qt4/*.py*
242 %dir %{_libdir}/paraview/site-packages/vtk/test
243 %{_libdir}/paraview/site-packages/vtk/test/*.py*
244 %dir %{_libdir}/paraview/site-packages/vtk/tk
245 %{_libdir}/paraview/site-packages/vtk/tk/*.py*
246 %dir %{_libdir}/paraview/site-packages/vtk/util
247 %{_libdir}/paraview/site-packages/vtk/util/*.py*
248 %dir %{_libdir}/paraview/site-packages/vtk/wx
249 %{_libdir}/paraview/site-packages/vtk/wx/*.py*
250 %{_libdir}/paraview/site-packages/zope
251 %{_libdir}/paraview/www
252 %{_desktopdir}/ParaView.desktop
253 %{_pixmapsdir}/ParaView_22x22.png
254 %{_datadir}/mime/packages/ParaView.xml
255 %dir %{_datadir}/doc/paraview-4.0
256 %{_datadir}/doc/paraview-4.0/paraview.qch
259 %defattr(644,root,root,755)
260 %attr(755,root,root) %{_bindir}/vtkkwProcessXML
261 %attr(755,root,root) %{_bindir}/vtkWrapClientServer
262 %{_includedir}/paraview
263 %{_datadir}/cmake/paraview