]>
Commit | Line | Data |
---|---|---|
72d81c28 JR |
1 | Summary: Parallel visualization application |
2 | Name: ParaView | |
8d833c50 | 3 | Version: 3.14.1 |
c65cdd1c | 4 | Release: 2 |
72d81c28 JR |
5 | License: BSD |
6 | Group: Applications/Engineering | |
7 | URL: http://www.paraview.org/ | |
8d833c50 JR |
8 | Source0: http://www.paraview.org/files/v3.14/%{name}-%{version}-Source.tar.gz |
9 | # Source0-md5: 039c612777f5eb7bba5d37319f34c922 | |
72d81c28 JR |
10 | Source1: %{name}_22x22.png |
11 | Source2: %{name}.xml | |
12 | Patch0: %{name}-3.8.0-include.patch | |
8d833c50 JR |
13 | Patch1: %{name}-gcc47.patch |
14 | Patch2: %{name}-3.2.2-hdf5.patch | |
15 | Patch3: %{name}-kwprocessxml_rpath.patch | |
16 | Patch4: %{name}-vtkboost.patch | |
17 | Patch5: %{name}-vtk-use-system-libs.patch | |
18 | Patch6: %{name}-vtknetcdf-lm.patch | |
8626142d JR |
19 | BuildRequires: Mesa-libOSMesa-devel |
20 | BuildRequires: QtDesigner-devel | |
21 | BuildRequires: QtHelp-devel | |
22 | BuildRequires: QtSql-devel | |
23 | BuildRequires: QtSql-sqlite | |
24 | BuildRequires: QtUiTools-devel | |
8d833c50 | 25 | BuildRequires: QtXmlPatterns-devel |
8626142d | 26 | BuildRequires: QtWebKit-devel |
72d81c28 JR |
27 | BuildRequires: boost-devel |
28 | BuildRequires: cmake | |
29 | BuildRequires: desktop-file-utils | |
30 | BuildRequires: doxygen | |
31 | BuildRequires: expat-devel | |
32 | BuildRequires: freetype-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 | |
72d81c28 JR |
40 | BuildRequires: openssl-devel |
41 | BuildRequires: python-devel | |
42 | BuildRequires: qt4-build | |
72d81c28 JR |
43 | BuildRequires: readline-devel |
44 | BuildRequires: tk-devel | |
45 | BuildRequires: wget | |
46 | BuildRequires: zlib-devel | |
72d81c28 JR |
47 | Requires(post): desktop-file-utils |
48 | Requires(postun): desktop-file-utils | |
8d833c50 | 49 | %requires_eq_to hdf5 hdf5-devel |
72d81c28 JR |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
8f94022e JR |
52 | %define skip_post_check_so lib.*Python.*\.so.* |
53 | ||
72d81c28 JR |
54 | %description |
55 | ParaView is an application designed with the need to visualize large | |
56 | data sets in mind. The goals of the ParaView project include the | |
57 | following: | |
58 | ||
59 | - Develop an open-source, multi-platform visualization application. | |
60 | - Support distributed computation models to process large data sets. | |
61 | - Create an open, flexible, and intuitive user interface. | |
62 | - Develop an extensible architecture based on open standards. | |
63 | ||
64 | ParaView runs on distributed and shared memory parallel as well as | |
65 | single processor systems and has been successfully tested on Windows, | |
66 | Linux and various Unix workstations and clusters. Under the hood, | |
67 | ParaView uses the Visualization Toolkit as the data processing and | |
68 | rendering engine and has a user interface written using a unique blend | |
69 | of Tcl/Tk and C++. | |
70 | ||
71 | NOTE: The version in this package has NOT been compiled with MPI | |
72 | support. | |
73 | ||
72d81c28 JR |
74 | %package devel |
75 | Summary: Development files for %{name} | |
76 | Group: Development/Libraries | |
77 | Requires: %{name}%{?_isa} = %{version}-%{release} | |
78 | ||
79 | %description devel | |
80 | The %{name}-devel package contains libraries and header files for | |
81 | developing applications that use %{name}. | |
82 | ||
72d81c28 | 83 | %prep |
8d833c50 | 84 | %setup -q -n %{name}-%{version}-Source |
72d81c28 | 85 | %patch0 -p1 |
8d833c50 | 86 | %patch1 -p1 |
72d81c28 JR |
87 | %patch2 -p1 |
88 | %patch3 -p1 | |
8d833c50 JR |
89 | %patch4 -p1 |
90 | %patch5 -p0 | |
91 | %patch6 -p1 | |
72d81c28 JR |
92 | #Remove included hdf5 just to be sure |
93 | rm -r VTK/Utilities/vtkhdf5 | |
94 | ||
95 | %build | |
96 | mkdir build | |
97 | cd build | |
98 | %cmake .. \ | |
99 | -DPV_INSTALL_INCLUDE_DIR:PATH=include/paraview \ | |
100 | -DPV_INSTALL_LIB_DIR:PATH=%{_lib}/paraview \ | |
101 | -DTCL_LIBRARY:PATH=tcl \ | |
102 | -DTK_LIBRARY:PATH=tk \ | |
103 | -DPARAVIEW_BUILD_PLUGIN_AdiosReader:BOOL=ON \ | |
104 | -DPARAVIEW_BUILD_PLUGIN_CoProcessingScriptGenerator:BOOL=ON \ | |
105 | -DPARAVIEW_BUILD_PLUGIN_EyeDomeLighting:BOOL=ON \ | |
106 | -DPARAVIEW_BUILD_PLUGIN_ForceTime:BOOL=ON \ | |
107 | -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \ | |
108 | -DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \ | |
109 | -DPARAVIEW_INSTALL_DEVELOPMENT:BOOL=ON \ | |
8d833c50 | 110 | -DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \ |
72d81c28 JR |
111 | -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \ |
112 | -DVTK_USE_BOOST:BOOL=ON \ | |
113 | -DVTK_USE_INFOVIS:BOOL=OFF \ | |
114 | -DVTK_USE_N_WAY_ARRAYS:BOOL=ON \ | |
115 | -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON \ | |
8d833c50 JR |
116 | -DVTK_USE_SYSTEM_LIBRARIES=ON \ |
117 | -DVTK_USE_SYSTEM_HDF5=ON \ | |
72d81c28 JR |
118 | -DVTK_USE_SYSTEM_EXPAT:BOOL=ON \ |
119 | -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \ | |
120 | -DVTK_USE_SYSTEM_HDF5:BOOL=ON \ | |
121 | -DVTK_USE_SYSTEM_JPEG:BOOL=ON \ | |
122 | -DVTK_USE_SYSTEM_PNG:BOOL=ON \ | |
123 | -DVTK_USE_SYSTEM_TIFF:BOOL=ON \ | |
124 | -DVTK_USE_SYSTEM_ZLIB:BOOL=ON \ | |
8d833c50 | 125 | -DVTK_USE_SYSTEM_LIBPROJ4=OFF \ |
72d81c28 JR |
126 | -DXDMF_WRAP_PYTHON:BOOL=ON \ |
127 | -DBUILD_DOCUMENTATION:BOOL=ON \ | |
128 | -DBUILD_EXAMPLES:BOOL=ON | |
129 | ||
8d833c50 JR |
130 | # -DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=$RPM_BUILD_ROOT" \ |
131 | ||
72d81c28 JR |
132 | %{__make} VERBOSE=1 |
133 | ||
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
8f94022e | 136 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/mime/packages} |
72d81c28 | 137 | |
8f94022e JR |
138 | install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir} |
139 | install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/mime/packages | |
72d81c28 JR |
140 | |
141 | cd build | |
8626142d JR |
142 | %{__make} install \ |
143 | DESTDIR=$RPM_BUILD_ROOT | |
72d81c28 JR |
144 | |
145 | #Create desktop file | |
8f94022e | 146 | cat > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop <<EOF |
72d81c28 JR |
147 | [Desktop Entry] |
148 | Encoding=UTF-8 | |
149 | Name=ParaView Viewer | |
150 | GenericName=Data Viewer | |
151 | Comment=ParaView allows viewing of large data sets | |
152 | Type=Application | |
153 | Terminal=false | |
8f94022e | 154 | Icon=ParaView_22x22 |
72d81c28 JR |
155 | MimeType=application/x-paraview; |
156 | Categories=Application;Graphics; | |
157 | Exec=paraview | |
158 | EOF | |
159 | ||
8d833c50 JR |
160 | # Move python files by hand for now |
161 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/Python/vtk $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/ | |
162 | %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/Python | |
163 | ||
8f94022e | 164 | # Install vtk*Python.so by hand for now |
8d833c50 JR |
165 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/vtk*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/ |
166 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/vtk/vtkPV*Python.so $RPM_BUILD_ROOT%{_libdir}/paraview/site-packages/paraview/ | |
72d81c28 | 167 | |
8f94022e | 168 | # Cleanup vtk binaries |
72d81c28 JR |
169 | rm $RPM_BUILD_ROOT%{_bindir}/vtk* |
170 | ||
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %post | |
175 | /sbin/ldconfig | |
176 | %update_desktop_database | |
8f94022e | 177 | %update_mime_database |
72d81c28 JR |
178 | |
179 | %postun | |
180 | /sbin/ldconfig | |
181 | %update_desktop_database | |
72d81c28 JR |
182 | %update_mime_database |
183 | ||
184 | %files | |
185 | %defattr(644,root,root,755) | |
186 | %doc License_v1.2.txt | |
187 | %attr(755,root,root) %{_bindir}/paraview | |
188 | %attr(755,root,root) %{_bindir}/pvbatch | |
189 | %attr(755,root,root) %{_bindir}/pvblot | |
190 | %attr(755,root,root) %{_bindir}/pvdataserver | |
191 | %attr(755,root,root) %{_bindir}/pvpython | |
192 | %attr(755,root,root) %{_bindir}/pvrenderserver | |
193 | %attr(755,root,root) %{_bindir}/pvserver | |
194 | %attr(755,root,root) %{_bindir}/smTestDriver | |
8f94022e JR |
195 | %dir %{_libdir}/paraview/ |
196 | %attr(755,root,root) %{_libdir}/paraview/paraview | |
197 | %attr(755,root,root) %{_libdir}/paraview/pvbatch | |
198 | %attr(755,root,root) %{_libdir}/paraview/pvdataserver | |
199 | %attr(755,root,root) %{_libdir}/paraview/pvpython | |
200 | %attr(755,root,root) %{_libdir}/paraview/pvrenderserver | |
201 | %attr(755,root,root) %{_libdir}/paraview/pvserver | |
202 | %attr(755,root,root) %{_libdir}/paraview/smTestDriver | |
203 | %attr(755,root,root) %{_libdir}/paraview/lib*.so* | |
204 | %{_libdir}/paraview/CMake | |
205 | %{_libdir}/paraview/*.cmake | |
206 | %{_libdir}/paraview/doc | |
207 | %{_libdir}/paraview/*.py | |
208 | %{_libdir}/paraview/testing | |
209 | %{_libdir}/paraview/.plugins | |
8f94022e JR |
210 | %{_libdir}/paraview/hints |
211 | %{_libdir}/paraview/ParaViewCore | |
212 | %dir %{_libdir}/paraview/site-packages | |
213 | %dir %{_libdir}/paraview/site-packages/paraview | |
214 | %{_libdir}/paraview/site-packages/paraview/pv_compile_complete | |
215 | %{_libdir}/paraview/site-packages/paraview/*.py* | |
216 | %attr(755,root,root) %{_libdir}/paraview/site-packages/paraview/*.so | |
217 | %{_libdir}/paraview/site-packages/paraview/demos | |
218 | %{_libdir}/paraview/site-packages/paraview/vtk | |
8d833c50 JR |
219 | %dir %{_libdir}/paraview/site-packages/vtk |
220 | %{_libdir}/paraview/site-packages/vtk/*.py* | |
221 | %dir %{_libdir}/paraview/site-packages/vtk/gtk | |
222 | %{_libdir}/paraview/site-packages/vtk/gtk/*.py* | |
223 | %dir %{_libdir}/paraview/site-packages/vtk/qt | |
224 | %{_libdir}/paraview/site-packages/vtk/qt/*.py* | |
225 | %dir %{_libdir}/paraview/site-packages/vtk/qt4 | |
226 | %{_libdir}/paraview/site-packages/vtk/qt4/*.py* | |
227 | %dir %{_libdir}/paraview/site-packages/vtk/test | |
228 | %{_libdir}/paraview/site-packages/vtk/test/*.py* | |
229 | %dir %{_libdir}/paraview/site-packages/vtk/tk | |
230 | %{_libdir}/paraview/site-packages/vtk/tk/*.py* | |
231 | %dir %{_libdir}/paraview/site-packages/vtk/util | |
232 | %{_libdir}/paraview/site-packages/vtk/util/*.py* | |
233 | %dir %{_libdir}/paraview/site-packages/vtk/wx | |
234 | %{_libdir}/paraview/site-packages/vtk/wx/*.py* | |
8f94022e JR |
235 | %{_desktopdir}/ParaView.desktop |
236 | %{_pixmapsdir}/ParaView_22x22.png | |
237 | %{_datadir}/mime/packages/ParaView.xml | |
8d833c50 JR |
238 | %dir %{_datadir}/doc/paraview-3.14 |
239 | %{_datadir}/doc/paraview-3.14/paraview.qch | |
72d81c28 JR |
240 | |
241 | %files devel | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_bindir}/kwProcessXML | |
8d833c50 | 244 | %attr(755,root,root) %{_libdir}/paraview/kwProcessXML-real |
72d81c28 | 245 | %{_includedir}/paraview/ |