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.*
62 # avoid provide clash with vtk.spec
63 %define _noautoprov libvtk.*\.so.* vtk.*\.so.*
64 %define _noautoreq libvtk.*\.so.* vtk.*\.so.*
67 ParaView is an application designed with the need to visualize large
68 data sets in mind. The goals of the ParaView project include the
71 - Develop an open-source, multi-platform visualization application.
72 - Support distributed computation models to process large data sets.
73 - Create an open, flexible, and intuitive user interface.
74 - Develop an extensible architecture based on open standards.
76 ParaView runs on distributed and shared memory parallel as well as
77 single processor systems and has been successfully tested on Windows,
78 Linux and various Unix workstations and clusters. Under the hood,
79 ParaView uses the Visualization Toolkit as the data processing and
80 rendering engine and has a user interface written using a unique blend
83 NOTE: The version in this package has NOT been compiled with MPI
87 Summary: Development files for %{name}
88 Group: Development/Libraries
89 Requires: %{name} = %{version}-%{release}
92 The %{name}-devel package contains libraries and header files for
93 developing applications that use %{name}.
96 %setup -q -n %{name}-v%{version}-source
102 %if %{with system_protobuf}
105 #Remove included thirdparty sources just to be sure
106 for x in protobuf ; do
107 rm -r ThirdParty/$x/vtk$x
111 for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png sqlite tiff zlib ; do
112 rm -r VTK/ThirdParty/$x/vtk$x
115 %{__rm} -r ParaViewCore/ServerImplementation/Default/Testing
122 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
123 -DCMAKE_CXX_COMPILER:FILEPATH=%{__cxx} \
124 -DCMAKE_C_COMPILER:FILEPATH=%{__cc} \
125 -DPV_INSTALL_INCLUDE_DIR:PATH=include/paraview \
126 -DPV_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
127 -DTCL_LIBRARY:PATH=tcl \
128 -DTK_LIBRARY:PATH=tk \
129 -DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=ON \
130 -DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=ON \
131 -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON \
132 -DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=ON \
133 -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
134 -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \
135 -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
136 -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/paraview \
137 -DVTK_INSTALL_INCLUDE_DIR:PATH=include/paraview \
138 -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
139 -DVTK_INSTALL_PACKAGE_DIR=share/cmake/paraview \
140 -DVTK_USE_BOOST:BOOL=ON \
141 -DVTK_USE_INFOVIS:BOOL=OFF \
142 -DVTK_USE_N_WAY_ARRAYS:BOOL=ON \
143 -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
144 -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
145 -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
146 -DFREETYPE_INCLUDE_DIRS=%{_includedir}/freetype2 \
147 -DVTK_USE_SYSTEM_HDF5:BOOL=ON \
148 -DVTK_USE_SYSTEM_HDF5=ON \
149 -DHDF5_HL_LIBRARY:FILEPATH=%{_libdir}/libhdf5_hl.so \
150 -DVTK_USE_SYSTEM_JPEG:BOOL=ON \
151 -DVTK_USE_SYSTEM_LIBPROJ4=OFF \
152 -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
153 -DVTK_USE_SYSTEM_LIBRARIES=ON \
154 -DVTK_USE_SYSTEM_PNG:BOOL=ON \
155 -DVTK_USE_SYSTEM_PROTOBUF:BOOL=%{?with_system_protobuf:ON}%{!?with_system_protobuf:OFF} \
156 -DVTK_USE_SYSTEM_TIFF:BOOL=ON \
157 -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
158 -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
159 -DVTK_USE_INFOVIS:BOOL=OFF \
160 -DVTK_USE_SYSTEM_ICET=OFF \
161 -DVTK_USE_SYSTEM_NETCDF=ON \
162 -DVTK_USE_SYSTEM_QTTESTING=OFF \
163 -DVTK_USE_SYSTEM_XDMF2=OFF \
164 -DXDMF_WRAP_PYTHON:BOOL=ON \
165 -DBUILD_DOCUMENTATION:BOOL=ON \
166 -DBUILD_EXAMPLES:BOOL=ON
168 # -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \
173 rm -rf $RPM_BUILD_ROOT
174 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages}
176 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
177 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages
181 DESTDIR=$RPM_BUILD_ROOT
184 cat > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop <<EOF
188 GenericName=Data Viewer
189 Comment=ParaView allows viewing of large data sets
193 MimeType=application/x-paraview;
194 Categories=Application;Graphics;
198 # Move python files by hand for now
199 %{__mv} $RPM_BUILD_ROOT%{_bindir}/Python/vtk $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/
200 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/Python
202 # Install vtk*Python.so by hand for now
203 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/vtk*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/
204 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/vtkPV*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/
206 # Cleanup vtk conflicting binaries
207 %{__rm} $RPM_BUILD_ROOT%{_bindir}/vtk{EncodeString,HashSource,Parse{Java,OGLExt},ProcessShader,Wrap{Hierarchy,Java,Python,Tcl,TclInit,PythonInit}}
209 %{__rm} $RPM_BUILD_ROOT%{_libdir}/paraview/lib*.a
212 rm -rf $RPM_BUILD_ROOT
216 %update_desktop_database
217 %update_mime_database
221 %update_desktop_database
222 %update_mime_database
225 %defattr(644,root,root,755)
226 %doc License_v1.2.txt
227 %attr(755,root,root) %{_bindir}/paraview
228 %attr(755,root,root) %{_bindir}/pvbatch
229 %attr(755,root,root) %{_bindir}/pvdataserver
230 %attr(755,root,root) %{_bindir}/pvpython
231 %attr(755,root,root) %{_bindir}/pvrenderserver
232 %attr(755,root,root) %{_bindir}/pvserver
233 %attr(755,root,root) %{_bindir}/smTestDriver
234 %dir %{_libdir}/paraview/
235 %attr(755,root,root) %{_libdir}/paraview/paraview
236 %attr(755,root,root) %{_libdir}/paraview/pvbatch
237 %attr(755,root,root) %{_libdir}/paraview/pvdataserver
238 %attr(755,root,root) %{_libdir}/paraview/pvpython
239 %attr(755,root,root) %{_libdir}/paraview/pvrenderserver
240 %attr(755,root,root) %{_libdir}/paraview/pvserver
241 %attr(755,root,root) %{_libdir}/paraview/smTestDriver
242 %attr(755,root,root) %{_libdir}/paraview/lib*.so*
243 %{_libdir}/paraview/.plugins
244 %dir %{_libdir}/paraview/site-packages
245 %{_libdir}/paraview/site-packages/autobahn
246 %dir %{_libdir}/paraview/site-packages/paraview
247 %{_libdir}/paraview/site-packages/paraview/pv_compile_complete
248 %{_libdir}/paraview/site-packages/paraview/*.py*
249 %attr(755,root,root) %{_libdir}/paraview/site-packages/paraview/*.so
250 %{_libdir}/paraview/site-packages/paraview/demos
251 %{_libdir}/paraview/site-packages/paraview/vtk
252 %{_libdir}/paraview/site-packages/twisted
253 %dir %{_libdir}/paraview/site-packages/vtk
254 %{_libdir}/paraview/site-packages/vtk/*.py*
255 %dir %{_libdir}/paraview/site-packages/vtk/gtk
256 %{_libdir}/paraview/site-packages/vtk/gtk/*.py*
257 %dir %{_libdir}/paraview/site-packages/vtk/qt4
258 %{_libdir}/paraview/site-packages/vtk/qt4/*.py*
259 %dir %{_libdir}/paraview/site-packages/vtk/test
260 %{_libdir}/paraview/site-packages/vtk/test/*.py*
261 %dir %{_libdir}/paraview/site-packages/vtk/tk
262 %{_libdir}/paraview/site-packages/vtk/tk/*.py*
263 %dir %{_libdir}/paraview/site-packages/vtk/util
264 %{_libdir}/paraview/site-packages/vtk/util/*.py*
265 %dir %{_libdir}/paraview/site-packages/vtk/wx
266 %{_libdir}/paraview/site-packages/vtk/wx/*.py*
267 %{_libdir}/paraview/site-packages/zope
268 %{_libdir}/paraview/www
269 %{_desktopdir}/ParaView.desktop
270 %{_pixmapsdir}/ParaView_22x22.png
271 %{_datadir}/mime/packages/ParaView.xml
272 %dir %{_datadir}/doc/paraview-4.0
273 %{_datadir}/doc/paraview-4.0/paraview.qch
276 %defattr(644,root,root,755)
277 %attr(755,root,root) %{_bindir}/vtkkwProcessXML
278 %attr(755,root,root) %{_bindir}/vtkWrapClientServer
279 %{_includedir}/paraview
280 %{_datadir}/cmake/paraview