Package paraview: Specfile

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
%define mpiimpl openmpi
%define mpidir %_libexecdir/%mpiimpl

%define pv_maj 3
%define pv_min 8
%define pv_patch 0
%define pv_majmin %pv_maj.%pv_min

Name: paraview
Version: 3.8.1
Release: alt8.M60T.1
Summary: Parallel visualization application
License: BSD
Group: Sciences/Other

Url: http://www.paraview.org
Source: %url/files/v%pv_majmin/ParaView-%version.tar.gz
Source1: paraview_22x22.png
%define pixfile paraview_22x22.png
Source2: paraview.xml
Source3: CMakeCache.txt
#Add needed link libraries
#http://public.kitware.com/Bug/view.php?id=10298
Patch: paraview-3.6.2-libs.patch
#Add some needed includes
Patch1: paraview-3.8.0-include.patch
#Upstream patch to fix install paths
Patch2: paraview-3.8.0-installpath.patch
#Support Python 2.7
Patch3: paraview-3.8.0-py27.patch
#Installs PointSpriteDemo into incorrect location, remove install for now
#Reported upstream: http://public.kitware.com/mantis/view.php?id=9292
Patch5: paraview-3.8.0-demo.patch
#Reported upstream: http://public.kitware.com/mantis/view.php?id=7023
Patch7: paraview-3.2.2-hdf5.patch
#Change H5_USE_16_API_DEFAULT to H5_USE_16_API
Patch8: paraview-3.8.0-hdf5-1.8.patch
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

BuildRequires: cmake ctest unzip
BuildRequires: %mpiimpl-devel
BuildRequires: paraview-data
BuildRequires: qt4-devel, libGL-devel libGLU-devel
BuildRequires: tk-devel, libhdf5-mpi-devel
BuildRequires: libfreetype-devel, libtiff-devel, zlib-devel
BuildRequires: libexpat-devel libjpeg-devel libOSMesa-devel
BuildRequires: %_bindir/desktop-file-install
BuildRequires: doxygen, graphviz
BuildRequires: libreadline-devel
BuildRequires: libssl-devel
BuildRequires: gnuplot
#BuildRequires: wget
BuildRequires: boost-devel libproj-devel phonon-devel
BuildRequires: libqt4-assistant-devel libvtk-tcl-devel
BuildRequires: gcc-c++ libvtk-devel
BuildPreReq: libopenmotif-devel tcl-devel libhdf5-mpi-devel
BuildPreReq: libnetcdf-mpi-devel libOSMesa-devel chrpath
BuildPreReq: libsilo-devel vtk vtk-data libGLU-devel
Requires: %name-data >= %version
Requires: %name-doc = %version-%release

%description
ParaView is an application designed with the need to visualize large data
sets in mind. The goals of the ParaView project include the following:

    * Develop an open-source, multi-platform visualization application.
    * Support distributed computation models to process large data sets.
    * Create an open, flexible, and intuitive user interface.
    * Develop an extensible architecture based on open standards.

ParaView runs on distributed and shared memory parallel as well as single
processor systems and has been successfully tested on Windows, Linux and
various Unix workstations and clusters. Under the hood, ParaView uses the
Visualization Toolkit as the data processing and rendering engine and has a
user interface written using a unique blend of Tcl/Tk and C++.

%package devel
Summary: Development files for ParaView
Group: Development/C++
Requires: %name = %version-%release

%description devel
%summary.

%package devel-static
Summary: Static libraries of ParaView
Group: Development/C++
Requires: %name-devel = %version-%release

%description devel-static
%summary.

%package doc
Summary: Documentation files for ParaView
Group: Documentation
BuildArch: noarch

%description doc
%summary.

%prep
%setup -n ParaView-%version
#Remove included hdf5 just to be sure
rm -r Utilities/hdf5

%build
mpi-selector --set %mpiimpl
source %mpidir/bin/mpivars.sh
export OMPI_LDFLAGS="-Wl,--as-needed,-Rpath=%mpidir/lib -L%mpidir/lib"

mkdir altlinux-%mpiimpl
pushd altlinux-%mpiimpl
install -m644 %SOURCE3 .
sed -i 's|@LIBDIR@|%_libdir|' CMakeCache.txt
sed -i 's|@CXX@|mpic++|' CMakeCache.txt
sed -i 's|@CC@|mpicc|' CMakeCache.txt
FLAGS="%optflags -DH5PART_HAS_MPI -fno-strict-aliasing"
cmake .. \
				-DPARAVIEW_USE_MPI:BOOL=ON \
        -DPV_INSTALL_BIN_DIR:PATH=bin \
        -DPV_INSTALL_LIB_DIR:PATH=%_lib \
        -DICET_BUILD_TESTING:BOOL=ON \
				-DCMAKE_C_FLAGS:STRING="$FLAGS" \
				-DCMAKE_CXX_FLAGS:STRING="$FLAGS" \
				-DCMAKE_Fortran_FLAGS:STRING="$FLAGS" \
        -DMPI_COMPILER:FILEPATH=%mpidir/bin/mpicxx
#Need to run cmake twice to get MPI headers into VTK/Parallel build config
cmake ..
export LD_LIBRARY_PATH=$PWD/bin:%mpidir/lib
%make VERBOSE=1
popd

%install
source %mpidir/bin/mpivars.sh
export OMPI_LDFLAGS="-Wl,--as-needed,-Rpath=%mpidir/lib -L%mpidir/lib"

#Fix permissions
find . \( -name \*.txt -o -name \*.xml -o -name '*.[ch]' -o -name '*.[ch][px][px]' \) -print0 | xargs -0 chmod -x

# Create some needed directories
install -d %buildroot%_miconsdir
install -pm644 %SOURCE1 %buildroot%_miconsdir
install -d %buildroot%_datadir/mime/packages
install -pm644 %SOURCE2 %buildroot%_datadir/mime/packages

# Install openmpi version
pushd altlinux-%mpiimpl
export LD_LIBRARY_PATH=$PWD/bin:%mpidir/lib
%makeinstall_std
popd

rm -f %buildroot%_bindir/lproj

#Create desktop file
cat > paraview.desktop <<EOF
[Desktop Entry]
Name=ParaView Viewer
GenericName=Data Viewer
Comment=ParaView allows viewing of large data sets
Type=Application
Terminal=false
Icon=paraview_22x22
MimeType=application/x-paraview;
Categories=Graphics;Viewer;
Exec=paraview %%U
EOF
install -pDm644 paraview.desktop %buildroot%_desktopdir/paraview.desktop

pushd %buildroot%_bindir
chmod +x *
#execs=$(ls)
popd

pushd %buildroot%prefix
for i in bin/* $(find %_lib -name '*.so')
do
	chrpath -r %mpidir/lib $i ||:
done
popd

#pushd %buildroot%_libdir
#for i in $execs
#do
#	chrpath -r %mpidir/lib $i ||:
#	mv $i %buildroot%_bindir/
#done
#popd

#rm -f %buildroot%mpidir/lib/terminfo
#ln -s %_datadir/terminfo %buildroot%_libdir

# delete unnecessary files
rm -fR %buildroot%prefix/src
pushd %buildroot%_libdir
rm -fR alsa-lib alt-gpgkeys avahi bash cairo chkpwd coreutils dbus-1.0 \
	debug doc elfutils games gcc gcc-lib gconv gdb gdk-pixbuf-2.0 getconf \
	gettext gio girepository-1.0 gnuplot graphviz gstreamer-0.10 gtk-2.0 \
	gtkglext-1.0 helper kernel krb5 ldscripts libfakeroot libglade locale \
	lua5 menu openmpi pango perl5 pkgconfig python* qt* rpm sasl2 tcl tls \
	trace_rlog trace_sample vtk vtk-5.6 X11 \
	libphonon.so.*.* libQtCLucene.so.*.* libQtCore.so.*.* libQtDBus.so.*.* \
	libQtGui.so.*.* libQtHelp.so.*.* libQtNetwork.so.*.* libQtSql.so.*.* \
	libQtWebKit.so.*.* libQtXmlPatterns.so.*.* libQtXml.so.*.*
for i in libphonon.so* libQtCLucene.so* libQtCore.so* libQtDBus.so* \
	libQtGui.so* libQtHelp.so* libQtNetwork.so* libQtSql.so* \
	libQtWebKit.so* libQtXmlPatterns.so* libQtXml.so*
do
	rm -f $i
#	ln -s %_libdir/$i ./
done
popd

# antirepocop
rm -f %buildroot/usr/doc/paraview.qch
rm -f %buildroot%mpidir/lib/.plugins

%files
%doc License_v1.2.txt
%_bindir/*
%exclude %_bindir/vtkEncodeString
%_libdir/ServerManager
%_libdir/testing
%_libdir/sqldrivers
#_libdir/hints
#_libdir/terminfo
%_desktopdir/paraview.desktop
%_miconsdir/*
%_datadir/mime/packages/paraview.xml

%files devel
#_libdir/*.so
%_libdir/*.cmake
%_libdir/CMake
%_includedir/*
%_man3dir/*
%exclude %_man3dir/icet*

#files devel-static
#_libdir/*.a

%files doc
%doc Documentation/*

%changelog
* Fri Apr 06 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt8.M60T.1
- Rebuilt with libhdf5-7-mpi

* Sun Apr 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt8
- Rebuilt with libnetcdf7

* Sun Mar 27 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt7
- BuildRequires: replaced xorg-devel by libGL-devel and libGLU-devel
- Disabled static package

* Fri Mar 18 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt6
- Rebuilt with Boost 1.46.1 and for debuginfo

* Sat Dec 11 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt5
- Removed links to *.so.*.* of Qt4

* Fri Dec 10 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt4
- Replaced native Qt4 libraries by links
- Moved CMake and *.so into devel package
- Extracted *.a into devel-static package

* Thu Dec 09 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt3
- Avoid floating point exception (ALT #24714)

* Thu Nov 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt2
- Fixed desktop file
- Avoid conflict with icet-devel-docs

* Tue Nov 16 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt1
- Version 3.8.1 (with OpenMPI)

* Fri Sep 03 2010 Michael Shigorin <mike@altlinux.org> 3.8.0-alt1
- initial ALT Linux package (based on Fedora one)
  + disabled MPI subpackages build for now
  + considerable spec cleanup

* Fri Jul 30 2010 Orion Poplawski <orion@cora.nwra.com> - 3.8.0-4
- Add patch to support python 2.7

* Tue Jul 27 2010 David Malcolm <dmalcolm@redhat.com> - 3.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Fri Jun 4 2010 Orion Poplawski <orion@cora.nwra.com> - 3.8.0-2
- Drop doc sub-package

* Tue Jun 1 2010 Orion Poplawski <orion@cora.nwra.com> - 3.8.0-1
- Update to 3.8.0
- Update demo patch
- Update hdf5 patch
- Drop old documentation patches
- Add patch to add needed include headers
- Add patch from upstream to fix install path issue

* Sat Mar 13 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 3.6.2-4
- BR qt-assistant-adp-devel
- Don't Require qt4-assistant, should be qt-assistant-adp now, and it (or qt-x11
  4.6.x which Provides it) gets dragged in anyway by the soname dependencies

* Fri Feb 19 2010 Orion Poplawski <orion@cora.nwra.com> - 3.6.2-3
- More MPI packaging changes

* Tue Feb 16 2010 Orion Poplawski <orion@cora.nwra.com> - 3.6.2-2
- Conform to updated MPI packaging guidelines
- Build mpich2 version

* Mon Jan 4 2010 Orion Poplawski <orion@cora.nwra.com> - 3.6.2-1
- Update to 3.6.2

* Thu Nov 19 2009 Orion Poplawski <orion@cora.nwra.com> - 3.6.1-7
- New location for openmpi (fixes FTBFS bug #539179)

* Mon Aug 31 2009 Orion Poplawski <orion@cora.nwra.com> - 3.6.1-6
- Don't ship lproj, conflicts with vtk

* Thu Aug 27 2009 Orion Poplawski <orion@cora.nwra.com> - 3.6.1-5
- Specify PV_INSTALL_LIB_DIR as relative path, drop install prefix patch
- Update assitant patch to use assistant_adp, don't ship assistant-real

* Wed Aug 26 2009 Orion Poplawski <orion@cora.nwra.com> - 3.6.1-4
- Disable building various plugins that need OverView

* Tue Aug 25 2009 Orion Poplawski <orion@cora.nwra.com> - 3.6.1-3
- Disable building OverView - not ready yet

* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 3.6.1-2
- rebuilt with new openssl

* Wed Jul 22 2009 Orion Poplawski <orion@cora.nwra.com> - 3.6.1-1
- Update to 3.6.1

* Thu May 7 2009 Orion Poplawski <orion@cora.nwra.com> - 3.4.0-5
- Update doc patch to look for help file in the right place (bug #499273)

* Tue Feb 24 2009 Orion Poplawski <orion@cora.nwra.com> - 3.4.0-4
- Rebuild with hdf5 1.8.2, gcc 4.4.0
- Update hdf5-1.8 patch to work with hdf5 1.8.2
- Add patch to allow build with Qt 4.5
- Move documentation into noarch sub-package

* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 3.4.0-3
- rebuild with new openssl

* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.4.0-2
- Rebuild for Python 2.6

* Fri Oct 17 2008 Orion Poplawski <orion@cora.nwra.com> - 3.4.0-1
- Update to 3.4.0 final

* Thu Oct 2 2008 Orion Poplawski <orion@cora.nwra.com> - 3.4.0-0.20081002.1
- Update 3.4.0 CVS snapshot
- Update gcc43 patch
- Drop qt patch, upstream now allows compiling against Qt 4.4.*

* Mon Aug 11 2008 Orion Poplawski <orion@cora.nwra.com> - 3.3.1-0.20080811.1
- Update 3.3.1 CVS snapshot
- Update hdf5 patch to drop upstreamed changes
- Fix mpi build (bug #450598)
- Use rpath instead of ls.so conf files so mpi and non-mpi can be installed at
  the same time
- mpi package now just ships mpi versions of the server components
- Drop useless mpi-devel subpackage
- Update hdf5 patch to fix H5pubconf.h -> H5public.h usage

* Wed May 20 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.3.0-0.20080520.1
- Update to 3.3.0 CVS snapshot
- Update qt and gcc43 patches, drop unneeded patches
- Add openssl-devel, gnuplot, and wget BRs
- Update license text filename
- Set VTK_USE_RPATH to off, needed with development versions
- Run ctest in %%check - still need to exclude more tests

* Wed Mar 5 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-5
- Rebuild for hdf5 1.8.0 using compatability API define and new patch

* Mon Feb 18 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-4
- Add patch to compile with gcc 4.3

* Fri Jan 18 2008 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-3
- Add patch to fix parallel make
- Obsolete demos package (bug #428528)

* Tue Dec 18 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-2
- Name ld.so.conf.d file with .conf extension
- Drop parallel make for now

* Mon Dec 03 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.2.1-1
- Update to 3.2.1
- Use macros for version numbers
- Add patches to fix documentation install location and use assistant-qt4,
  not install copies of Qt libraries, and not use rpath.
- Install ld.so.conf.d file
- Fixup desktop files

* Thu Aug 23 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.0.2-2
- Update license tag to BSD
- Fix make %%{_smp_mflags}
- Rebuild for ppc32

* Wed Jul 11 2007 - Orion Poplawski <orion@cora.nwra.com> - 3.0.2-1
- Update to 3.0.2
- Turn mpi build back on
- Add devel packages
- Remove demo package no longer in upstream
- Use cmake macros

* Thu Mar 08 2007 - Orion Poplawski <orion@cora.nwra.com> - 2.4.4-6
- Don't build mpi version until upstream fixes the build system

* Fri Dec 22 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.4-5
- Fix .so permissions
- Patch for const issue
- Patch for new cmake
- Build with openmpi

* Thu Dec 14 2006 - Jef Spaleta <jspaleta@gmail.com> - 2.4.4-4
- Bump and build for python 2.5

* Fri Oct  6 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.4-3
- Install needed python libraries to get around make install bug

* Wed Oct  4 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.4-2
- Re-enable OSMESA support for FC6
- Enable python wrapping

* Fri Sep 15 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.4-1
- Update to 2.4.4

* Thu Jun 29 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-8
- No OSMesa support in FC5
- Make data sub-package pull in main package (bug #193837)
- A patch from CVS to fix vtkXOpenRenderWindow.cxx
- Need lam-devel for FC6

* Fri Apr 21 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-7
- Re-enable ppc

* Mon Apr 17 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-6
- Exclude ppc due to gcc bug #189160

* Wed Apr 12 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-5
- Cleanup permissions

* Mon Apr 10 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-4
- Add icon and cleanup desktop file

* Mon Apr 10 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-3
- Add VTK_USE_MANGLE_MESA for off screen rendering
- Cleanup source permisions
- Add an initial .desktop file
- Make requirement on -data specific to version
- Don't package Ice-T man pages and cmake files

* Thu Apr  6 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-2
- Add mpi version

* Tue Apr  4 2006 - Orion Poplawski <orion@cora.nwra.com> - 2.4.3-1
- Initial Fedora Extras version