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