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: gl2ps-devel
32 BuildRequires: gnuplot
33 BuildRequires: graphviz
34 BuildRequires: hdf5-devel
35 BuildRequires: libjpeg-devel
36 BuildRequires: libpng-devel
37 BuildRequires: libtheora-devel
38 BuildRequires: libtiff-devel
39 BuildRequires: netcdf-devel
40 BuildRequires: netcdf-cxx-devel
41 BuildRequires: openssl-devel
42 BuildRequires: protobuf-devel
43 BuildRequires: python-devel
44 BuildRequires: qt4-build
45 BuildRequires: readline-devel
46 BuildRequires: tk-devel
48 BuildRequires: zlib-devel
49 Requires(post): desktop-file-utils
50 Requires(postun): desktop-file-utils
51 Requires: QtSql-sqlite3
52 %requires_eq_to hdf5 hdf5-devel
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 %define skip_post_check_so lib.*Python.*\.so.*
58 ParaView is an application designed with the need to visualize large
59 data sets in mind. The goals of the ParaView project include the
62 - Develop an open-source, multi-platform visualization application.
63 - Support distributed computation models to process large data sets.
64 - Create an open, flexible, and intuitive user interface.
65 - Develop an extensible architecture based on open standards.
67 ParaView runs on distributed and shared memory parallel as well as
68 single processor systems and has been successfully tested on Windows,
69 Linux and various Unix workstations and clusters. Under the hood,
70 ParaView uses the Visualization Toolkit as the data processing and
71 rendering engine and has a user interface written using a unique blend
74 NOTE: The version in this package has NOT been compiled with MPI
78 Summary: Development files for %{name}
79 Group: Development/Libraries
80 Requires: %{name} = %{version}-%{release}
83 The %{name}-devel package contains libraries and header files for
84 developing applications that use %{name}.
87 %setup -q -n %{name}-v%{version}-source
93 #Remove included thirdparty sources just to be sure
94 for x in protobuf ; do
95 rm -r ThirdParty/$x/vtk$x
97 for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png sqlite tiff zlib ; do
98 rm -r VTK/ThirdParty/$x/vtk$x
101 %{__rm} -r ParaViewCore/ServerImplementation/Default/Testing
108 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
109 -DCMAKE_CXX_COMPILER:FILEPATH=%{__cxx} \
110 -DCMAKE_C_COMPILER:FILEPATH=%{__cc} \
111 -DPV_INSTALL_INCLUDE_DIR:PATH=include/paraview \
112 -DPV_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
113 -DTCL_LIBRARY:PATH=tcl \
114 -DTK_LIBRARY:PATH=tk \
115 -DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=ON \
116 -DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=ON \
117 -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON \
118 -DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=ON \
119 -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
120 -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \
121 -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
122 -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/paraview \
123 -DVTK_INSTALL_INCLUDE_DIR:PATH=include/paraview \
124 -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
125 -DVTK_INSTALL_PACKAGE_DIR=share/cmake/paraview \
126 -DVTK_USE_BOOST:BOOL=ON \
127 -DVTK_USE_INFOVIS:BOOL=OFF \
128 -DVTK_USE_N_WAY_ARRAYS:BOOL=ON \
129 -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
130 -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
131 -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
132 -DFREETYPE_INCLUDE_DIRS=%{_includedir}/freetype2 \
133 -DVTK_USE_SYSTEM_HDF5:BOOL=ON \
134 -DVTK_USE_SYSTEM_HDF5=ON \
135 -DHDF5_HL_LIBRARY:FILEPATH=%{_libdir}/libhdf5_hl.so \
136 -DVTK_USE_SYSTEM_JPEG:BOOL=ON \
137 -DVTK_USE_SYSTEM_LIBPROJ4=OFF \
138 -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
139 -DVTK_USE_SYSTEM_LIBRARIES=ON \
140 -DVTK_USE_SYSTEM_PNG:BOOL=ON \
141 -DVTK_USE_SYSTEM_TIFF:BOOL=ON \
142 -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
143 -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
144 -DVTK_USE_INFOVIS:BOOL=OFF \
145 -DVTK_USE_SYSTEM_ICET=OFF \
146 -DVTK_USE_SYSTEM_NETCDF=ON \
147 -DVTK_USE_SYSTEM_QTTESTING=OFF \
148 -DVTK_USE_SYSTEM_XDMF2=OFF \
149 -DXDMF_WRAP_PYTHON:BOOL=ON \
150 -DBUILD_DOCUMENTATION:BOOL=ON \
151 -DBUILD_EXAMPLES:BOOL=ON
153 # -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \
158 rm -rf $RPM_BUILD_ROOT
159 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages}
161 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
162 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages
166 DESTDIR=$RPM_BUILD_ROOT
169 cat > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop <<EOF
173 GenericName=Data Viewer
174 Comment=ParaView allows viewing of large data sets
178 MimeType=application/x-paraview;
179 Categories=Application;Graphics;
183 # Move python files by hand for now
184 %{__mv} $RPM_BUILD_ROOT%{_bindir}/Python/vtk $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/
185 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/Python
187 # Install vtk*Python.so by hand for now
188 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/vtk*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/
189 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/vtkPV*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/
191 # Cleanup vtk conflicting binaries
192 %{__rm} $RPM_BUILD_ROOT%{_bindir}/vtk{EncodeString,HashSource,Parse{Java,OGLExt},ProcessShader,Wrap{Hierarchy,Java,Python,Tcl,TclInit,PythonInit}}
194 %{__rm} $RPM_BUILD_ROOT%{_libdir}/paraview/lib*.a
197 rm -rf $RPM_BUILD_ROOT
201 %update_desktop_database
202 %update_mime_database
206 %update_desktop_database
207 %update_mime_database
210 %defattr(644,root,root,755)
211 %doc License_v1.2.txt
212 %attr(755,root,root) %{_bindir}/paraview
213 %attr(755,root,root) %{_bindir}/pvbatch
214 %attr(755,root,root) %{_bindir}/pvdataserver
215 %attr(755,root,root) %{_bindir}/pvpython
216 %attr(755,root,root) %{_bindir}/pvrenderserver
217 %attr(755,root,root) %{_bindir}/pvserver
218 %attr(755,root,root) %{_bindir}/smTestDriver
219 %dir %{_libdir}/paraview/
220 %attr(755,root,root) %{_libdir}/paraview/paraview
221 %attr(755,root,root) %{_libdir}/paraview/pvbatch
222 %attr(755,root,root) %{_libdir}/paraview/pvdataserver
223 %attr(755,root,root) %{_libdir}/paraview/pvpython
224 %attr(755,root,root) %{_libdir}/paraview/pvrenderserver
225 %attr(755,root,root) %{_libdir}/paraview/pvserver
226 %attr(755,root,root) %{_libdir}/paraview/smTestDriver
227 %attr(755,root,root) %{_libdir}/paraview/lib*.so*
228 %{_libdir}/paraview/.plugins
229 %dir %{_libdir}/paraview/site-packages
230 %{_libdir}/paraview/site-packages/autobahn
231 %dir %{_libdir}/paraview/site-packages/paraview
232 %{_libdir}/paraview/site-packages/paraview/pv_compile_complete
233 %{_libdir}/paraview/site-packages/paraview/*.py*
234 %attr(755,root,root) %{_libdir}/paraview/site-packages/paraview/*.so
235 %{_libdir}/paraview/site-packages/paraview/demos
236 %{_libdir}/paraview/site-packages/paraview/vtk
237 %{_libdir}/paraview/site-packages/twisted
238 %dir %{_libdir}/paraview/site-packages/vtk
239 %{_libdir}/paraview/site-packages/vtk/*.py*
240 %dir %{_libdir}/paraview/site-packages/vtk/gtk
241 %{_libdir}/paraview/site-packages/vtk/gtk/*.py*
242 %dir %{_libdir}/paraview/site-packages/vtk/qt4
243 %{_libdir}/paraview/site-packages/vtk/qt4/*.py*
244 %dir %{_libdir}/paraview/site-packages/vtk/test
245 %{_libdir}/paraview/site-packages/vtk/test/*.py*
246 %dir %{_libdir}/paraview/site-packages/vtk/tk
247 %{_libdir}/paraview/site-packages/vtk/tk/*.py*
248 %dir %{_libdir}/paraview/site-packages/vtk/util
249 %{_libdir}/paraview/site-packages/vtk/util/*.py*
250 %dir %{_libdir}/paraview/site-packages/vtk/wx
251 %{_libdir}/paraview/site-packages/vtk/wx/*.py*
252 %{_libdir}/paraview/site-packages/zope
253 %{_libdir}/paraview/www
254 %{_desktopdir}/ParaView.desktop
255 %{_pixmapsdir}/ParaView_22x22.png
256 %{_datadir}/mime/packages/ParaView.xml
257 %dir %{_datadir}/doc/paraview-4.0
258 %{_datadir}/doc/paraview-4.0/paraview.qch
261 %defattr(644,root,root,755)
262 %attr(755,root,root) %{_bindir}/vtkkwProcessXML
263 %attr(755,root,root) %{_bindir}/vtkWrapClientServer
264 %{_includedir}/paraview
265 %{_datadir}/cmake/paraview