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 Patch6: freetype.patch
23 BuildRequires: Mesa-libOSMesa-devel
24 BuildRequires: QtDesigner-devel
25 BuildRequires: QtHelp-devel
26 BuildRequires: QtSql-devel
27 BuildRequires: QtSql-sqlite3
28 BuildRequires: QtUiTools-devel
29 BuildRequires: QtXmlPatterns-devel
30 BuildRequires: QtWebKit-devel
31 BuildRequires: boost-devel
33 BuildRequires: desktop-file-utils
34 BuildRequires: doxygen
35 BuildRequires: expat-devel
36 BuildRequires: freetype-devel
37 BuildRequires: gl2ps-devel
38 BuildRequires: gnuplot
39 BuildRequires: graphviz
40 BuildRequires: hdf5-devel
41 BuildRequires: libjpeg-devel
42 BuildRequires: libpng-devel
43 BuildRequires: libtheora-devel
44 BuildRequires: libtiff-devel
45 BuildRequires: netcdf-devel
46 BuildRequires: netcdf-cxx-devel
47 BuildRequires: openssl-devel
48 %{?with_system_protobuf:BuildRequires: protobuf-devel}
49 BuildRequires: python-devel
50 BuildRequires: qt4-build
51 BuildRequires: readline-devel
52 BuildRequires: tk-devel
54 BuildRequires: zlib-devel
55 Requires(post): desktop-file-utils
56 Requires(postun): desktop-file-utils
57 Requires: QtSql-sqlite3
58 %requires_eq_to hdf5 hdf5-devel
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 %define skip_post_check_so lib.*Python.*\.so.*
63 # avoid provide clash with vtk.spec
64 %define _noautoprov libvtk.*\.so.* vtk.*\.so.*
65 %define _noautoreq libvtk.*\.so.* vtk.*\.so.*
68 ParaView is an application designed with the need to visualize large
69 data sets in mind. The goals of the ParaView project include the
72 - Develop an open-source, multi-platform visualization application.
73 - Support distributed computation models to process large data sets.
74 - Create an open, flexible, and intuitive user interface.
75 - Develop an extensible architecture based on open standards.
77 ParaView runs on distributed and shared memory parallel as well as
78 single processor systems and has been successfully tested on Windows,
79 Linux and various Unix workstations and clusters. Under the hood,
80 ParaView uses the Visualization Toolkit as the data processing and
81 rendering engine and has a user interface written using a unique blend
84 NOTE: The version in this package has NOT been compiled with MPI
88 Summary: Development files for %{name}
89 Group: Development/Libraries
90 Requires: %{name} = %{version}-%{release}
93 The %{name}-devel package contains libraries and header files for
94 developing applications that use %{name}.
97 %setup -q -n %{name}-v%{version}-source
104 %if %{with system_protobuf}
107 #Remove included thirdparty sources just to be sure
108 for x in protobuf ; do
109 rm -r ThirdParty/$x/vtk$x
113 for x in expat freetype gl2ps hdf5 jpeg libxml2 netcdf oggtheora png sqlite tiff zlib ; do
114 rm -r VTK/ThirdParty/$x/vtk$x
117 %{__rm} -r ParaViewCore/ServerImplementation/Default/Testing
124 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
125 -DCMAKE_CXX_COMPILER:FILEPATH=%{__cxx} \
126 -DCMAKE_C_COMPILER:FILEPATH=%{__cc} \
127 -DPV_INSTALL_INCLUDE_DIR:PATH=include/paraview \
128 -DPV_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
129 -DTCL_LIBRARY:PATH=tcl \
130 -DTK_LIBRARY:PATH=tk \
131 -DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=ON \
132 -DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=ON \
133 -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON \
134 -DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=ON \
135 -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
136 -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \
137 -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
138 -DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/paraview \
139 -DVTK_INSTALL_INCLUDE_DIR:PATH=include/paraview \
140 -DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/paraview \
141 -DVTK_INSTALL_PACKAGE_DIR=share/cmake/paraview \
142 -DVTK_USE_BOOST:BOOL=ON \
143 -DVTK_USE_INFOVIS:BOOL=OFF \
144 -DVTK_USE_N_WAY_ARRAYS:BOOL=ON \
145 -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \
146 -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
147 -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
148 -DFREETYPE_INCLUDE_DIRS=%{_includedir}/freetype2 \
149 -DVTK_USE_SYSTEM_HDF5:BOOL=ON \
150 -DVTK_USE_SYSTEM_HDF5=ON \
151 -DHDF5_HL_LIBRARY:FILEPATH=%{_libdir}/libhdf5_hl.so \
152 -DVTK_USE_SYSTEM_JPEG:BOOL=ON \
153 -DVTK_USE_SYSTEM_LIBPROJ4=OFF \
154 -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
155 -DVTK_USE_SYSTEM_LIBRARIES=ON \
156 -DVTK_USE_SYSTEM_PNG:BOOL=ON \
157 -DVTK_USE_SYSTEM_PROTOBUF:BOOL=%{?with_system_protobuf:ON}%{!?with_system_protobuf:OFF} \
158 -DVTK_USE_SYSTEM_TIFF:BOOL=ON \
159 -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
160 -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
161 -DVTK_USE_INFOVIS:BOOL=OFF \
162 -DVTK_USE_SYSTEM_ICET=OFF \
163 -DVTK_USE_SYSTEM_NETCDF=ON \
164 -DVTK_USE_SYSTEM_QTTESTING=OFF \
165 -DVTK_USE_SYSTEM_XDMF2=OFF \
166 -DXDMF_WRAP_PYTHON:BOOL=ON \
167 -DBUILD_DOCUMENTATION:BOOL=ON \
168 -DBUILD_EXAMPLES:BOOL=ON
170 # -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \
175 rm -rf $RPM_BUILD_ROOT
176 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages}
178 install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
179 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages
183 DESTDIR=$RPM_BUILD_ROOT
186 cat > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop <<EOF
190 GenericName=Data Viewer
191 Comment=ParaView allows viewing of large data sets
195 MimeType=application/x-paraview;
196 Categories=Application;Graphics;
200 # Move python files by hand for now
201 %{__mv} $RPM_BUILD_ROOT%{_bindir}/Python/vtk $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/
202 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/Python
204 # Install vtk*Python.so by hand for now
205 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/vtk*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/
206 %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/vtkPV*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/
208 # Cleanup vtk conflicting binaries
209 %{__rm} $RPM_BUILD_ROOT%{_bindir}/vtk{EncodeString,HashSource,Parse{Java,OGLExt},ProcessShader,Wrap{Hierarchy,Java,Python,Tcl,TclInit,PythonInit}}
211 %{__rm} $RPM_BUILD_ROOT%{_libdir}/paraview/lib*.a
214 rm -rf $RPM_BUILD_ROOT
218 %update_desktop_database
219 %update_mime_database
223 %update_desktop_database
224 %update_mime_database
227 %defattr(644,root,root,755)
228 %doc License_v1.2.txt
229 %attr(755,root,root) %{_bindir}/paraview
230 %attr(755,root,root) %{_bindir}/pvbatch
231 %attr(755,root,root) %{_bindir}/pvdataserver
232 %attr(755,root,root) %{_bindir}/pvpython
233 %attr(755,root,root) %{_bindir}/pvrenderserver
234 %attr(755,root,root) %{_bindir}/pvserver
235 %attr(755,root,root) %{_bindir}/smTestDriver
236 %dir %{_libdir}/paraview/
237 %attr(755,root,root) %{_libdir}/paraview/paraview
238 %attr(755,root,root) %{_libdir}/paraview/pvbatch
239 %attr(755,root,root) %{_libdir}/paraview/pvdataserver
240 %attr(755,root,root) %{_libdir}/paraview/pvpython
241 %attr(755,root,root) %{_libdir}/paraview/pvrenderserver
242 %attr(755,root,root) %{_libdir}/paraview/pvserver
243 %attr(755,root,root) %{_libdir}/paraview/smTestDriver
244 %attr(755,root,root) %{_libdir}/paraview/lib*.so*
245 %{_libdir}/paraview/.plugins
246 %dir %{_libdir}/paraview/site-packages
247 %{_libdir}/paraview/site-packages/autobahn
248 %dir %{_libdir}/paraview/site-packages/paraview
249 %{_libdir}/paraview/site-packages/paraview/pv_compile_complete
250 %{_libdir}/paraview/site-packages/paraview/*.py*
251 %attr(755,root,root) %{_libdir}/paraview/site-packages/paraview/*.so
252 %{_libdir}/paraview/site-packages/paraview/demos
253 %{_libdir}/paraview/site-packages/paraview/vtk
254 %{_libdir}/paraview/site-packages/twisted
255 %dir %{_libdir}/paraview/site-packages/vtk
256 %{_libdir}/paraview/site-packages/vtk/*.py*
257 %dir %{_libdir}/paraview/site-packages/vtk/gtk
258 %{_libdir}/paraview/site-packages/vtk/gtk/*.py*
259 %dir %{_libdir}/paraview/site-packages/vtk/qt4
260 %{_libdir}/paraview/site-packages/vtk/qt4/*.py*
261 %dir %{_libdir}/paraview/site-packages/vtk/test
262 %{_libdir}/paraview/site-packages/vtk/test/*.py*
263 %dir %{_libdir}/paraview/site-packages/vtk/tk
264 %{_libdir}/paraview/site-packages/vtk/tk/*.py*
265 %dir %{_libdir}/paraview/site-packages/vtk/util
266 %{_libdir}/paraview/site-packages/vtk/util/*.py*
267 %dir %{_libdir}/paraview/site-packages/vtk/wx
268 %{_libdir}/paraview/site-packages/vtk/wx/*.py*
269 %{_libdir}/paraview/site-packages/zope
270 %{_libdir}/paraview/www
271 %{_desktopdir}/ParaView.desktop
272 %{_pixmapsdir}/ParaView_22x22.png
273 %{_datadir}/mime/packages/ParaView.xml
274 %dir %{_datadir}/doc/paraview-4.0
275 %{_datadir}/doc/paraview-4.0/paraview.qch
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_bindir}/vtkkwProcessXML
280 %attr(755,root,root) %{_bindir}/vtkWrapClientServer
281 %{_includedir}/paraview
282 %{_datadir}/cmake/paraview