1 Summary: Parallel visualization application
6 Group: Applications/Engineering
7 URL: http://www.paraview.org/
8 Source0: http://www.paraview.org/files/v4.2/%{name}-v%{version}-source.tar.gz
9 # Source0-md5: 77cf0e3804eb7bb91d2d94b10bd470f4
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 Patch5: protobuf.patch
18 BuildRequires: Mesa-libOSMesa-devel
19 BuildRequires: QtDesigner-devel
20 BuildRequires: QtHelp-devel
21 BuildRequires: QtSql-devel
22 BuildRequires: QtSql-sqlite3
23 BuildRequires: QtUiTools-devel
24 BuildRequires: QtXmlPatterns-devel
25 BuildRequires: QtWebKit-devel
26 BuildRequires: boost-devel
28 BuildRequires: desktop-file-utils
29 BuildRequires: doxygen
30 BuildRequires: expat-devel
31 BuildRequires: freetype-devel
32 BuildRequires: gl2ps-devel
33 BuildRequires: gnuplot
34 BuildRequires: graphviz
35 BuildRequires: hdf5-devel
36 BuildRequires: libjpeg-devel
37 BuildRequires: libpng-devel
38 BuildRequires: libtheora-devel
39 BuildRequires: libtiff-devel
40 BuildRequires: netcdf-devel
41 BuildRequires: netcdf-cxx-devel
42 BuildRequires: openssl-devel
43 BuildRequires: protobuf-devel
44 BuildRequires: python-devel
45 BuildRequires: qt4-build
46 BuildRequires: readline-devel
47 BuildRequires: tk-devel
49 BuildRequires: zlib-devel
50 Requires(post): desktop-file-utils
51 Requires(postun): desktop-file-utils
52 Requires: QtSql-sqlite3
53 %requires_eq_to hdf5 hdf5-devel
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 %define skip_post_check_so lib.*Python.*\.so.*
59 ParaView is an application designed with the need to visualize large
60 data sets in mind. The goals of the ParaView project include the
63 - Develop an open-source, multi-platform visualization application.
64 - Support distributed computation models to process large data sets.
65 - Create an open, flexible, and intuitive user interface.
66 - Develop an extensible architecture based on open standards.
68 ParaView runs on distributed and shared memory parallel as well as
69 single processor systems and has been successfully tested on Windows,
70 Linux and various Unix workstations and clusters. Under the hood,
71 ParaView uses the Visualization Toolkit as the data processing and
72 rendering engine and has a user interface written using a unique blend
75 NOTE: The version in this package has NOT been compiled with MPI
79 Summary: Development files for %{name}
80 Group: Development/Libraries
81 Requires: %{name} = %{version}-%{release}
84 The %{name}-devel package contains libraries and header files for
85 developing applications that use %{name}.
88 %setup -q -n %{name}-v%{version}-source
95 #Remove included thirdparty sources just to be sure
96 for x in protobuf ; do
97 rm -r ThirdParty/$x/vtk$x
99 for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png sqlite tiff zlib ; do
100 rm -r VTK/ThirdParty/$x/vtk$x
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_USE_SYSTEM_PROTOBUF:BOOL=ON \
144 -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
145 -DVTK_USE_INFOVIS:BOOL=OFF \
146 -DVTK_USE_SYSTEM_ICET=OFF \
147 -DVTK_USE_SYSTEM_NETCDF=ON \
148 -DVTK_USE_SYSTEM_QTTESTING=OFF \
149 -DVTK_USE_SYSTEM_XDMF2=OFF \
150 -DXDMF_WRAP_PYTHON:BOOL=ON \
151 -DBUILD_DOCUMENTATION:BOOL=ON \
152 -DBUILD_EXAMPLES:BOOL=ON
154 # -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \
159 rm -rf $RPM_BUILD_ROOT
160 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages}
162 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
163 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages
167 DESTDIR=$RPM_BUILD_ROOT
170 cat > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop <<EOF
174 GenericName=Data Viewer
175 Comment=ParaView allows viewing of large data sets
179 MimeType=application/x-paraview;
180 Categories=Application;Graphics;
184 # Move python files by hand for now
185 %{__mv} $RPM_BUILD_ROOT%{_bindir}/Python/vtk $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/
186 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/Python
188 # Install vtk*Python.so by hand for now
189 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/vtk*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/
190 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/vtkPV*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/
192 # Cleanup vtk conflicting binaries
193 %{__rm} $RPM_BUILD_ROOT%{_bindir}/vtk{EncodeString,HashSource,Parse{Java,OGLExt},ProcessShader,Wrap{Hierarchy,Java,Python,Tcl,TclInit,PythonInit}}
195 %{__rm} $RPM_BUILD_ROOT%{_libdir}/paraview/lib*.a
198 rm -rf $RPM_BUILD_ROOT
202 %update_desktop_database
203 %update_mime_database
207 %update_desktop_database
208 %update_mime_database
211 %defattr(644,root,root,755)
212 %doc License_v1.2.txt
213 %attr(755,root,root) %{_bindir}/paraview
214 %attr(755,root,root) %{_bindir}/pvbatch
215 %attr(755,root,root) %{_bindir}/pvdataserver
216 %attr(755,root,root) %{_bindir}/pvpython
217 %attr(755,root,root) %{_bindir}/pvrenderserver
218 %attr(755,root,root) %{_bindir}/pvserver
219 %attr(755,root,root) %{_bindir}/smTestDriver
220 %dir %{_libdir}/paraview/
221 %attr(755,root,root) %{_libdir}/paraview/paraview
222 %attr(755,root,root) %{_libdir}/paraview/pvbatch
223 %attr(755,root,root) %{_libdir}/paraview/pvdataserver
224 %attr(755,root,root) %{_libdir}/paraview/pvpython
225 %attr(755,root,root) %{_libdir}/paraview/pvrenderserver
226 %attr(755,root,root) %{_libdir}/paraview/pvserver
227 %attr(755,root,root) %{_libdir}/paraview/smTestDriver
228 %attr(755,root,root) %{_libdir}/paraview/lib*.so*
229 %{_libdir}/paraview/.plugins
230 %dir %{_libdir}/paraview/site-packages
231 %{_libdir}/paraview/site-packages/autobahn
232 %dir %{_libdir}/paraview/site-packages/paraview
233 %{_libdir}/paraview/site-packages/paraview/pv_compile_complete
234 %{_libdir}/paraview/site-packages/paraview/*.py*
235 %attr(755,root,root) %{_libdir}/paraview/site-packages/paraview/*.so
236 %{_libdir}/paraview/site-packages/paraview/demos
237 %{_libdir}/paraview/site-packages/paraview/vtk
238 %{_libdir}/paraview/site-packages/twisted
239 %dir %{_libdir}/paraview/site-packages/vtk
240 %{_libdir}/paraview/site-packages/vtk/*.py*
241 %dir %{_libdir}/paraview/site-packages/vtk/gtk
242 %{_libdir}/paraview/site-packages/vtk/gtk/*.py*
243 %dir %{_libdir}/paraview/site-packages/vtk/qt4
244 %{_libdir}/paraview/site-packages/vtk/qt4/*.py*
245 %dir %{_libdir}/paraview/site-packages/vtk/test
246 %{_libdir}/paraview/site-packages/vtk/test/*.py*
247 %dir %{_libdir}/paraview/site-packages/vtk/tk
248 %{_libdir}/paraview/site-packages/vtk/tk/*.py*
249 %dir %{_libdir}/paraview/site-packages/vtk/util
250 %{_libdir}/paraview/site-packages/vtk/util/*.py*
251 %dir %{_libdir}/paraview/site-packages/vtk/wx
252 %{_libdir}/paraview/site-packages/vtk/wx/*.py*
253 %{_libdir}/paraview/site-packages/zope
254 %{_libdir}/paraview/www
255 %{_desktopdir}/ParaView.desktop
256 %{_pixmapsdir}/ParaView_22x22.png
257 %{_datadir}/mime/packages/ParaView.xml
258 %dir %{_datadir}/doc/paraview-4.0
259 %{_datadir}/doc/paraview-4.0/paraview.qch
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_bindir}/vtkkwProcessXML
264 %attr(755,root,root) %{_bindir}/vtkWrapClientServer
265 %{_includedir}/paraview
266 %{_datadir}/cmake/paraview