2011-10-10 17:54:28 +00:00
|
|
|
# Disable OSMesa builds for now - see Bug 744434
|
|
|
|
%bcond_with OSMesa
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2012-05-15 14:42:13 +00:00
|
|
|
# Disable java on ppc64 - fails to build
|
|
|
|
%ifarch ppc64
|
|
|
|
%bcond_with java
|
|
|
|
%else
|
|
|
|
%bcond_without java
|
|
|
|
%endif
|
2013-06-26 16:05:46 +00:00
|
|
|
|
|
|
|
%{!?tcl_version: %global tcl_version %(echo 'puts $tcl_version' | tclsh)}
|
|
|
|
%{!?tcl_sitelib: %global tcl_sitelib %{_datadir}/tcl%{tcl_version}}
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
Summary: The Visualization Toolkit - A high level 3D visualization library
|
|
|
|
Name: vtk
|
2013-04-08 18:11:50 +00:00
|
|
|
Version: 6.0.0
|
2013-08-04 06:30:46 +00:00
|
|
|
Release: 7%{?dist}
|
2008-05-21 20:20:18 +00:00
|
|
|
# This is a variant BSD license, a cross between BSD and ZLIB.
|
|
|
|
# For all intents, it has the same rights and restrictions as BSD.
|
|
|
|
# http://fedoraproject.org/wiki/Licensing/BSD#VTKBSDVariant
|
|
|
|
License: BSD
|
2007-06-03 20:06:13 +00:00
|
|
|
Group: System Environment/Libraries
|
2013-06-27 16:40:29 +00:00
|
|
|
Source: http://www.vtk.org/files/release/6.0/%{name}-%{version}.tar.gz
|
2011-02-18 18:27:48 +00:00
|
|
|
# Use system libraries
|
|
|
|
# http://public.kitware.com/Bug/view.php?id=11823
|
2013-07-01 15:36:36 +00:00
|
|
|
Patch0: vtk-6.0.0-system.patch
|
|
|
|
# Install some more needed cmake files to try to support paraview build
|
|
|
|
# http://www.vtk.org/Bug/view.php?id=14157
|
|
|
|
Patch1: vtk-install.patch
|
2013-07-26 22:47:48 +00:00
|
|
|
# Upsream patch to install vtkpython
|
|
|
|
Patch2: vtk-vtkpython.patch
|
2010-08-01 05:10:11 +00:00
|
|
|
|
2007-06-03 20:06:13 +00:00
|
|
|
URL: http://vtk.org/
|
2012-05-14 23:32:49 +00:00
|
|
|
|
2012-05-15 15:35:56 +00:00
|
|
|
%if 0%{?rhel} && (0%{?rhel} <= 6)
|
2012-05-15 15:47:50 +00:00
|
|
|
BuildRequires: cmake28
|
2012-05-14 23:32:49 +00:00
|
|
|
%else
|
2011-02-18 18:27:48 +00:00
|
|
|
BuildRequires: cmake
|
2012-05-14 23:32:49 +00:00
|
|
|
%endif
|
2007-06-03 20:06:13 +00:00
|
|
|
BuildRequires: gcc-c++
|
2010-07-10 22:00:50 +00:00
|
|
|
#%{?with_java:BuildRequires: gcc-java, libgcj-devel, java-devel}
|
|
|
|
%{?with_java:BuildRequires: java-devel}
|
2007-06-03 20:06:13 +00:00
|
|
|
BuildRequires: libX11-devel, libXt-devel, libXext-devel
|
|
|
|
BuildRequires: libICE-devel, libGL-devel
|
|
|
|
%{?with_OSMesa:BuildRequires: mesa-libOSMesa-devel}
|
|
|
|
BuildRequires: tk-devel, tcl-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: expat-devel, freetype-devel, libjpeg-devel, libpng-devel
|
2011-02-18 18:27:48 +00:00
|
|
|
BuildRequires: gl2ps-devel
|
2007-06-03 20:06:13 +00:00
|
|
|
BuildRequires: libtiff-devel, zlib-devel
|
2011-02-18 18:27:48 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2010-12-28 18:08:41 +00:00
|
|
|
BuildRequires: qt4-devel
|
2011-06-23 17:55:31 +00:00
|
|
|
BuildRequires: qtwebkit-devel
|
2007-06-03 20:06:13 +00:00
|
|
|
BuildRequires: chrpath
|
2008-02-23 11:45:49 +00:00
|
|
|
BuildRequires: doxygen, graphviz
|
2010-07-10 22:00:50 +00:00
|
|
|
BuildRequires: gnuplot
|
2011-03-16 21:32:26 +00:00
|
|
|
BuildRequires: boost-devel
|
2011-10-10 17:54:28 +00:00
|
|
|
BuildRequires: hdf5-devel
|
2011-03-16 21:32:26 +00:00
|
|
|
BuildRequires: libtheora-devel
|
|
|
|
BuildRequires: mysql-devel
|
|
|
|
BuildRequires: postgresql-devel
|
2013-07-12 17:56:49 +00:00
|
|
|
BuildRequires: R-devel
|
2013-07-29 22:57:29 +00:00
|
|
|
BuildRequires: PyQt4-devel
|
2013-07-29 05:42:36 +00:00
|
|
|
BuildRequires: sip-devel
|
2010-07-10 22:00:50 +00:00
|
|
|
BuildRequires: wget
|
|
|
|
BuildRequires: %{_includedir}/Xm
|
|
|
|
%{!?with_java:Conflicts: vtk-java}
|
2011-11-18 21:59:44 +00:00
|
|
|
Requires: hdf5 = %{_hdf5_version}
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2013-06-26 16:05:46 +00:00
|
|
|
# Do not check .so files in the python_sitearch directory
|
|
|
|
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so$
|
|
|
|
|
2007-06-03 20:06:13 +00:00
|
|
|
%description
|
|
|
|
VTK is an open-source software system for image processing, 3D
|
|
|
|
graphics, volume rendering and visualization. VTK includes many
|
2013-06-26 16:05:46 +00:00
|
|
|
advanced algorithms (e.g., surface reconstruction, implicit modeling,
|
2007-06-03 20:06:13 +00:00
|
|
|
decimation) and rendering techniques (e.g., hardware-accelerated
|
|
|
|
volume rendering, LOD control).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: VTK header files for building C++ code
|
|
|
|
Requires: vtk = %{version}-%{release}
|
2010-07-10 22:00:50 +00:00
|
|
|
%{?with_OSMesa:Requires: mesa-libOSMesa-devel}
|
2013-06-26 16:05:46 +00:00
|
|
|
Requires: cmake
|
2011-03-17 15:17:29 +00:00
|
|
|
Requires: gl2ps-devel
|
2010-07-10 22:00:50 +00:00
|
|
|
Requires: expat-devel, libjpeg-devel, libpng-devel
|
2014-01-26 20:55:00 +00:00
|
|
|
Requires: libfreetype-devel
|
2011-03-17 15:17:29 +00:00
|
|
|
Requires: libogg-devel
|
|
|
|
Requires: libtheora-devel
|
2010-07-10 22:00:50 +00:00
|
|
|
Requires: libtiff-devel
|
2014-01-26 20:55:00 +00:00
|
|
|
Requires: libxml2-devel
|
2011-03-17 15:17:29 +00:00
|
|
|
Requires: postgresql-devel
|
|
|
|
Requires: mysql-devel
|
2010-12-28 18:08:41 +00:00
|
|
|
Requires: qt4-devel
|
2007-06-03 20:06:13 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This provides the VTK header files required to compile C++ programs that
|
2013-06-26 16:05:46 +00:00
|
|
|
use VTK to do 3D visualization.
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
%package tcl
|
|
|
|
Summary: Tcl bindings for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description tcl
|
|
|
|
tcl bindings for VTK
|
|
|
|
|
|
|
|
%package python
|
|
|
|
Summary: Python bindings for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description python
|
|
|
|
python bindings for VTK
|
|
|
|
|
|
|
|
%if %{with java}
|
|
|
|
%package java
|
|
|
|
Summary: Java bindings for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description java
|
|
|
|
Java bindings for VTK
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package qt
|
|
|
|
Summary: Qt bindings for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description qt
|
|
|
|
Qt bindings for VTK
|
|
|
|
|
2013-06-28 19:09:38 +00:00
|
|
|
%package qt-python
|
|
|
|
Summary: Qt Python bindings for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description qt-python
|
|
|
|
Qt Python bindings for VTK
|
|
|
|
|
|
|
|
%package qt-tcl
|
|
|
|
Summary: Qt TCL bindings for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description qt-tcl
|
|
|
|
Qt TCL bindings for VTK
|
|
|
|
|
2007-06-03 20:06:13 +00:00
|
|
|
%package testing
|
|
|
|
Summary: Testing programs for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}, vtkdata = %{version}
|
|
|
|
Group: Applications/Engineering
|
|
|
|
|
|
|
|
%description testing
|
|
|
|
Testing programs for VTK
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Examples for VTK
|
|
|
|
Requires: vtk = %{version}-%{release}, vtkdata = %{version}
|
|
|
|
Group: Applications/Engineering
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
This package contains many well-commented examples showing how to use
|
|
|
|
VTK. Examples are available in the C++, Tcl, Python and Java
|
|
|
|
programming languages.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2013-06-27 16:40:29 +00:00
|
|
|
%setup -q -n VTK%{version}
|
2013-07-01 15:36:36 +00:00
|
|
|
%patch0 -p1 -b .system
|
|
|
|
%patch1 -p1 -b .install
|
2013-07-26 22:47:48 +00:00
|
|
|
%patch2 -p1 -b .vtkpython
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
# Replace relative path ../../../VTKData with %{_datadir}/vtkdata-%{version}
|
|
|
|
# otherwise it will break on symlinks.
|
|
|
|
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
|
|
|
|
perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata-%{version},g'
|
|
|
|
|
|
|
|
# Save an unbuilt copy of the Example's sources for %doc
|
2011-10-10 17:54:28 +00:00
|
|
|
mkdir vtk-examples
|
|
|
|
cp -a Examples vtk-examples
|
2009-03-13 03:32:33 +00:00
|
|
|
# Don't ship Win32 examples
|
2013-06-26 16:05:46 +00:00
|
|
|
rm -r vtk-examples/Examples/GUI/Win32
|
2011-10-10 17:54:28 +00:00
|
|
|
find vtk-examples -type f | xargs chmod -R a-x
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags} -D_UNICODE"
|
|
|
|
export CXXFLAGS="%{optflags} -D_UNICODE"
|
|
|
|
%if %{with java}
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/java
|
|
|
|
%endif
|
|
|
|
|
2011-02-18 18:27:48 +00:00
|
|
|
mkdir build
|
|
|
|
pushd build
|
2012-05-15 15:47:50 +00:00
|
|
|
%if 0%{?rhel} && (0%{?rhel} <= 6)
|
2012-05-14 23:32:49 +00:00
|
|
|
%{cmake28} .. \
|
|
|
|
%else
|
2011-02-18 18:27:48 +00:00
|
|
|
%{cmake} .. \
|
2012-05-14 23:32:49 +00:00
|
|
|
%endif
|
2007-06-03 20:06:13 +00:00
|
|
|
-DBUILD_DOCUMENTATION:BOOL=ON \
|
|
|
|
-DBUILD_EXAMPLES:BOOL=ON \
|
|
|
|
-DBUILD_TESTING:BOOL=ON \
|
2013-06-26 16:05:46 +00:00
|
|
|
-DVTK_CUSTOM_LIBRARY_SUFFIX="" \
|
2013-07-01 15:33:55 +00:00
|
|
|
-DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/vtk \
|
2013-06-26 16:05:46 +00:00
|
|
|
-DVTK_INSTALL_INCLUDE_DIR:PATH=include/vtk \
|
|
|
|
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/vtk \
|
|
|
|
-DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/vtk \
|
|
|
|
-DVTK_INSTALL_QT_DIR:PATH=/%{_lib}/qt4/plugins/designer \
|
|
|
|
-DVTK_INSTALL_TCL_DIR:PATH=share/tcl%{tcl_version}/vtk \
|
2008-01-16 05:05:53 +00:00
|
|
|
-DTK_INTERNAL_PATH:PATH=/usr/include/tk-private/generic \
|
2007-06-03 20:06:13 +00:00
|
|
|
%if %{with OSMesa}
|
|
|
|
-DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
|
|
|
|
%endif
|
|
|
|
%if %{with java}
|
|
|
|
-DVTK_WRAP_JAVA:BOOL=ON \
|
|
|
|
-DJAVA_INCLUDE_PATH:PATH=$JAVA_HOME/include \
|
|
|
|
-DJAVA_INCLUDE_PATH2:PATH=$JAVA_HOME/include/linux \
|
|
|
|
-DJAVA_AWT_INCLUDE_PATH:PATH=$JAVA_HOME/include \
|
|
|
|
%else
|
|
|
|
-DVTK_WRAP_JAVA:BOOL=OFF \
|
|
|
|
%endif
|
2013-07-30 04:32:17 +00:00
|
|
|
-DVTK_PYTHON_SETUP_ARGS="--prefix=/usr --root=%{buildroot}" \
|
|
|
|
-DVTK_WRAP_PYTHON:BOOL=ON \
|
2013-07-29 05:05:16 +00:00
|
|
|
-DVTK_WRAP_PYTHON_SIP:BOOL=ON \
|
2013-07-30 04:32:17 +00:00
|
|
|
-DSIP_INCLUDE_DIR:PATH=/usr/include/python2.7 \
|
2007-06-03 20:06:13 +00:00
|
|
|
-DVTK_WRAP_TCL:BOOL=ON \
|
2013-06-26 16:05:46 +00:00
|
|
|
-DVTK_Group_Imaging:BOOL=ON \
|
|
|
|
-DVTK_Group_Qt:BOOL=ON \
|
|
|
|
-DVTK_Group_Rendering:BOOL=ON \
|
|
|
|
-DVTK_Group_StandAlone:BOOL=ON \
|
|
|
|
-DVTK_Group_Tk:BOOL=ON \
|
|
|
|
-DVTK_Group_Views:BOOL=ON \
|
|
|
|
-DModule_vtkFiltersStatisticsGnuR:BOOL=ON \
|
2011-03-16 21:32:26 +00:00
|
|
|
-DVTK_USE_OGGTHEORA_ENCODER=ON \
|
2011-02-18 18:27:48 +00:00
|
|
|
-DVTK_USE_SYSTEM_LIBRARIES=ON \
|
2013-06-26 16:05:46 +00:00
|
|
|
-DVTK_USE_SYSTEM_LIBPROJ4=OFF
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2013-06-26 16:05:46 +00:00
|
|
|
# TODO - MPI
|
|
|
|
#-DVTK_Group_MPI:BOOL=ON \
|
|
|
|
# Needed for some tests. Fails to compile at the moment. We don't run test though.
|
|
|
|
# -DVTK_DATA_ROOT:PATH=%{_datadir}/vtkdata-%{version} \
|
2011-03-16 21:32:26 +00:00
|
|
|
# Not working, see http://public.kitware.com/Bug/view.php?id=11978
|
|
|
|
# -DVTK_USE_ODBC=ON \
|
2007-06-03 20:06:13 +00:00
|
|
|
# Commented old flags in case we'd like to reactive some of them
|
|
|
|
# -DVTK_USE_DISPLAY:BOOL=OFF \ # This prevents building of graphics tests
|
2011-03-16 21:32:26 +00:00
|
|
|
# -DVTK_USE_MPI:BOOL=ON \
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2011-02-18 18:27:48 +00:00
|
|
|
# Got intermittent build error with -j
|
2013-06-26 16:05:46 +00:00
|
|
|
make %{?_smp_mflags}
|
2009-03-13 03:32:33 +00:00
|
|
|
|
|
|
|
# Remove executable bits from sources (some of which are generated)
|
|
|
|
find . -name \*.c -or -name \*.cxx -or -name \*.h -or -name \*.hxx -or \
|
|
|
|
-name \*.gif | xargs chmod -x
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}
|
2011-02-18 18:27:48 +00:00
|
|
|
pushd build
|
|
|
|
make install DESTDIR=%{buildroot}
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2013-07-01 15:33:55 +00:00
|
|
|
# Move python libraries into the proper location
|
2007-06-03 20:06:13 +00:00
|
|
|
if [ "%{_lib}" != lib -a "`ls %{buildroot}%{_prefix}/lib/*`" != "" ]; then
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
2013-07-01 15:33:55 +00:00
|
|
|
mv %{buildroot}%{_prefix}/lib/python* %{buildroot}%{_libdir}/
|
2007-06-03 20:06:13 +00:00
|
|
|
fi
|
2011-11-01 21:10:10 +00:00
|
|
|
|
|
|
|
# ld config
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
|
|
|
|
echo %{_libdir}/vtk > %{buildroot}%{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
# Gather list of non-python/tcl libraries
|
2011-11-01 21:10:10 +00:00
|
|
|
ls %{buildroot}%{_libdir}/vtk/*.so.* \
|
2013-06-28 19:09:38 +00:00
|
|
|
| grep -Ev '(Java|Qt|Python27D|TCL)' | sed -e's,^%{buildroot},,' > libs.list
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
# List of executable utilities
|
|
|
|
cat > utils.list << EOF
|
2008-12-21 21:58:49 +00:00
|
|
|
vtkEncodeString
|
2007-06-03 20:06:13 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
# List of executable examples
|
|
|
|
cat > examples.list << EOF
|
|
|
|
HierarchicalBoxPipeline
|
|
|
|
MultiBlock
|
|
|
|
Arrays
|
|
|
|
Cube
|
|
|
|
RGrid
|
|
|
|
SGrid
|
|
|
|
Medical1
|
|
|
|
Medical2
|
|
|
|
Medical3
|
|
|
|
finance
|
|
|
|
AmbientSpheres
|
|
|
|
Cylinder
|
|
|
|
DiffuseSpheres
|
|
|
|
SpecularSpheres
|
|
|
|
Cone
|
|
|
|
Cone2
|
|
|
|
Cone3
|
|
|
|
Cone4
|
|
|
|
Cone5
|
|
|
|
Cone6
|
|
|
|
EOF
|
|
|
|
|
2013-06-26 16:05:46 +00:00
|
|
|
# Install examples too
|
|
|
|
for filelist in examples.list; do
|
2009-06-08 06:04:09 +00:00
|
|
|
for file in `cat $filelist`; do
|
|
|
|
install -p bin/$file %{buildroot}%{_bindir}
|
|
|
|
done
|
2013-06-26 16:05:46 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
# Fix up filelist paths
|
|
|
|
for filelist in utils.list examples.list; do
|
2009-03-13 03:32:33 +00:00
|
|
|
perl -pi -e's,^,%{_bindir}/,' $filelist
|
2007-06-03 20:06:13 +00:00
|
|
|
done
|
|
|
|
|
2013-06-26 16:05:46 +00:00
|
|
|
# Remove any remnants of rpaths on files we install
|
|
|
|
for file in `cat examples.list`; do
|
2009-06-08 06:04:09 +00:00
|
|
|
chrpath -d %{buildroot}$file
|
|
|
|
done
|
|
|
|
|
2013-06-26 16:05:46 +00:00
|
|
|
# http://vtk.org/Bug/view.php?id=14125
|
|
|
|
chrpath -d %{buildroot}%{python_sitearch}/vtk/*.so
|
|
|
|
|
2007-06-03 20:06:13 +00:00
|
|
|
# Main package contains utils and core libs
|
|
|
|
cat libs.list utils.list > main.list
|
2011-02-18 18:27:48 +00:00
|
|
|
popd
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2011-11-01 21:10:10 +00:00
|
|
|
# Make scripts executable
|
2013-06-26 16:05:46 +00:00
|
|
|
#chmod a+x %{buildroot}%{_libdir}/vtk/doxygen/*.pl
|
|
|
|
#chmod a+x %{buildroot}%{_libdir}/vtk/testing/*.{py,tcl}
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
# Remove exec bit from non-scripts and %%doc
|
|
|
|
for file in `find %{buildroot} -type f -perm 0755 \
|
|
|
|
| xargs -r file | grep ASCII | awk -F: '{print $1}'`; do
|
|
|
|
head -1 $file | grep '^#!' > /dev/null && continue
|
|
|
|
chmod 0644 $file
|
|
|
|
done
|
|
|
|
find Utilities/Upgrading -type f | xargs chmod -x
|
|
|
|
|
2009-06-08 06:04:09 +00:00
|
|
|
# Add exec bits to shared libs ...
|
2009-03-13 03:32:33 +00:00
|
|
|
chmod 0755 %{buildroot}%{_libdir}/python*/site-packages/vtk/*.so
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2012-12-05 18:40:58 +00:00
|
|
|
# Setup Wrapping docs tree
|
|
|
|
mkdir _docs
|
|
|
|
cp -pr --parents Wrapping/*/README* _docs/
|
|
|
|
|
|
|
|
|
2008-08-25 12:06:41 +00:00
|
|
|
%check
|
2007-06-03 20:06:13 +00:00
|
|
|
#LD_LIBARARY_PATH=`pwd`/bin ctest -V
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post tcl -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun tcl -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post python -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun python -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%if %{with java}
|
|
|
|
%post java -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun java -p /sbin/ldconfig
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post qt -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun qt -p /sbin/ldconfig
|
|
|
|
|
2013-06-28 19:09:38 +00:00
|
|
|
%post qt-python -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun qt-python -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post qt-tcl -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun qt-tcl -p /sbin/ldconfig
|
|
|
|
|
2011-02-18 18:27:48 +00:00
|
|
|
%files -f build/main.list
|
2012-12-05 18:40:58 +00:00
|
|
|
%doc Copyright.txt README.html vtkLogo.jpg vtkBanner.gif _docs/Wrapping
|
2011-11-01 21:10:10 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
|
2013-06-26 16:05:46 +00:00
|
|
|
%dir %{_libdir}/vtk
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc Utilities/Upgrading
|
2013-06-26 16:05:46 +00:00
|
|
|
%{_bindir}/vtkHashSource
|
2011-10-10 17:54:28 +00:00
|
|
|
%{_bindir}/vtkWrapHierarchy
|
2007-06-03 20:06:13 +00:00
|
|
|
%{_includedir}/vtk
|
2011-11-01 21:10:10 +00:00
|
|
|
%{_libdir}/vtk/*.so
|
2013-07-01 15:33:55 +00:00
|
|
|
%{_libdir}/vtk/libvtkWrappingTools.a
|
2013-06-26 16:05:46 +00:00
|
|
|
%{_libdir}/cmake/vtk/
|
|
|
|
%{_bindir}/vtkParseOGLExt
|
|
|
|
%{_bindir}/vtkProcessShader
|
|
|
|
%{_docdir}/vtk-6.0/
|
|
|
|
%{tcl_sitelib}/vtk/vtktcl.c
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
%files tcl
|
2011-11-01 21:10:10 +00:00
|
|
|
%{_libdir}/vtk/*TCL.so.*
|
2013-06-28 19:09:38 +00:00
|
|
|
%exclude %{_libdir}/vtk/*QtTCL.so.*
|
2007-06-03 20:06:13 +00:00
|
|
|
%{_bindir}/vtk
|
|
|
|
%{_bindir}/vtkWrapTcl
|
|
|
|
%{_bindir}/vtkWrapTclInit
|
2013-06-26 16:05:46 +00:00
|
|
|
%{tcl_sitelib}/vtk/
|
|
|
|
%exclude %{tcl_sitelib}/vtk/vtktcl.c
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
%files python
|
2008-02-23 11:45:49 +00:00
|
|
|
%{python_sitearch}/*
|
2013-06-26 16:05:46 +00:00
|
|
|
%{_libdir}/vtk/*Python27D.so.*
|
2013-06-28 19:09:38 +00:00
|
|
|
%exclude %{_libdir}/vtk/*QtPython27D.so.*
|
|
|
|
%{_bindir}/vtkpython
|
2007-06-03 20:06:13 +00:00
|
|
|
%{_bindir}/vtkWrapPython
|
|
|
|
%{_bindir}/vtkWrapPythonInit
|
|
|
|
|
|
|
|
%if %{with java}
|
|
|
|
%files java
|
2011-11-01 21:10:10 +00:00
|
|
|
%{_libdir}/vtk/*Java.so.*
|
2013-06-26 16:05:46 +00:00
|
|
|
%{_libdir}/vtk/vtk.jar
|
2007-06-03 20:06:13 +00:00
|
|
|
%{_bindir}/vtkParseJava
|
|
|
|
%{_bindir}/vtkWrapJava
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files qt
|
2013-06-26 16:05:46 +00:00
|
|
|
%{_libdir}/vtk/lib*Qt*.so.*
|
2013-06-28 19:09:38 +00:00
|
|
|
%exclude %{_libdir}/vtk/*TCL.so.*
|
|
|
|
%exclude %{_libdir}/vtk/*Python27D.so.*
|
2013-06-26 16:05:46 +00:00
|
|
|
%{_libdir}/qt4/plugins/designer/libQVTKWidgetPlugin.so
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2013-06-28 19:09:38 +00:00
|
|
|
%files qt-python
|
|
|
|
%{_libdir}/vtk/*QtPython27D.so.*
|
|
|
|
|
|
|
|
%files qt-tcl
|
|
|
|
%{_libdir}/vtk/*QtTCL.so.*
|
|
|
|
|
2013-06-26 16:05:46 +00:00
|
|
|
%files testing
|
2007-06-03 20:06:13 +00:00
|
|
|
|
2011-02-18 18:27:48 +00:00
|
|
|
%files examples -f build/examples.list
|
2011-10-10 17:54:28 +00:00
|
|
|
%doc vtk-examples/Examples
|
2007-06-03 20:06:13 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-08-04 06:30:46 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-30 12:54:48 +00:00
|
|
|
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 6.0.0-6
|
|
|
|
- Rebuild for boost 1.54.0
|
|
|
|
|
2013-07-30 04:32:17 +00:00
|
|
|
* Mon Jul 29 2013 Orion Poplawski <orion@cora.nwra.com> - 6.0.0-5
|
|
|
|
- Enable VTK_WRAP_PYTHON_SIP
|
|
|
|
|
2013-07-26 22:47:48 +00:00
|
|
|
* Fri Jul 26 2013 Orion Poplawski <orion@cora.nwra.com> - 6.0.0-4
|
|
|
|
- Add patch to install vtkpython
|
|
|
|
|
2013-07-17 14:20:00 +00:00
|
|
|
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 6.0.0-3
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-07-15 15:50:20 +00:00
|
|
|
* Mon Jul 15 2013 Orion Poplawski <orion@cora.nwra.com> - 6.0.0-2
|
|
|
|
- Install vtkMakeInstantiator files for gdcm build
|
|
|
|
|
2013-07-12 17:56:49 +00:00
|
|
|
* Fri Jul 12 2013 Orion Poplawski <orion@cora.nwra.com> - 6.0.0-1
|
|
|
|
- Add BR on R-devel
|
|
|
|
|
2013-06-27 16:40:29 +00:00
|
|
|
* Thu Jun 27 2013 Orion Poplawski <orion@cora.nwra.com> - 6.0.0-1
|
2013-06-26 16:05:46 +00:00
|
|
|
- Update to 6.0.0
|
|
|
|
|
2013-05-16 18:45:46 +00:00
|
|
|
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 5.10.1-5
|
|
|
|
- Rebuild for hdf5 1.8.11
|
|
|
|
|
2013-02-15 02:55:29 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.10.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-21 16:57:01 +00:00
|
|
|
* Mon Jan 21 2013 Adam Tkac <atkac redhat com> - 5.10.1-3
|
|
|
|
- rebuild due to "jpeg8-ABI" feature drop
|
|
|
|
|
2012-12-03 21:12:03 +00:00
|
|
|
* Mon Dec 03 2012 Orion Poplawski <orion@cora.nwra.com> - 5.10.1-2
|
|
|
|
- Rebuild for hdf5 1.8.10
|
2012-12-05 18:40:58 +00:00
|
|
|
- Change doc handling
|
2012-12-03 21:12:03 +00:00
|
|
|
|
2012-11-02 02:27:34 +00:00
|
|
|
* Thu Nov 1 2012 Orion Poplawski <orion@cora.nwra.com> - 5.10.1-1
|
|
|
|
- Update to 5.10.1
|
|
|
|
|
2012-07-22 03:05:26 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.10.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-24 17:52:03 +00:00
|
|
|
* Thu May 24 2012 Orion Poplawski <orion@cora.nwra.com> - 5.10.0-2
|
|
|
|
- Add patch to add soname to libvtkNetCDF_cxx
|
|
|
|
|
2012-05-15 15:35:11 +00:00
|
|
|
* Tue May 15 2012 Orion Poplawski <orion@cora.nwra.com> - 5.10.0-1
|
|
|
|
- Update to 5.10.0
|
|
|
|
|
2012-05-14 23:32:49 +00:00
|
|
|
* Tue May 15 2012 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 5.8.0-6
|
|
|
|
- Add cmake28 usage when building for EL6
|
2012-05-15 14:42:13 +00:00
|
|
|
- Disable -java build on PPC64 as it fails to build
|
2012-05-14 23:32:49 +00:00
|
|
|
|
2012-02-28 20:33:37 +00:00
|
|
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.8.0-5
|
|
|
|
- Rebuilt for c++ ABI breakage
|
|
|
|
|
2012-01-08 18:56:51 +00:00
|
|
|
* Sun Jan 8 2012 Orion Poplawski <orion@cora.nwra.com> - 5.8.0-4
|
|
|
|
- Rebuild with gcc 4.7
|
|
|
|
|
2011-11-18 21:59:44 +00:00
|
|
|
* Fri Nov 18 2011 Orion Poplawski <orion@cora.nwra.com> - 5.8.0-3
|
|
|
|
- Rebuild for hdf5 1.8.8, add explicit requires
|
|
|
|
|
2012-12-05 15:49:05 +00:00
|
|
|
* Tue Nov 1 2011 Orion Poplawski <orion@cora.nwra.com> - 5.8.0-2
|
2011-11-01 21:10:10 +00:00
|
|
|
- Keep libraries in %%{_libdir}/vtk, use ld.so.conf.d
|
|
|
|
|
2011-10-10 17:54:28 +00:00
|
|
|
* Fri Oct 7 2011 Orion Poplawski <orion@cora.nwra.com> - 5.8.0-1
|
|
|
|
- Update to 5.8.0
|
|
|
|
- Drop version from directory names
|
|
|
|
- Use VTK_PYTHON_SETUP_ARGS instead of patch to set python install dir
|
|
|
|
- Drop several patches fixed upstream
|
|
|
|
- Remove rpaths from all hand installed binaries (Bug 744437)
|
|
|
|
- Don't link against OSMesa (Bug 744434)
|
|
|
|
|
2011-06-23 17:55:31 +00:00
|
|
|
* Thu Jun 23 2011 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-10
|
|
|
|
- Add BR qtwebkit-devel, fixes FTBS bug 715770
|
|
|
|
|
2011-05-19 15:52:33 +00:00
|
|
|
* Thu May 19 2011 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-9
|
|
|
|
- Update soversion patch to add soversion to libvtkNetCDF.so
|
|
|
|
|
2011-03-28 15:31:43 +00:00
|
|
|
* Mon Mar 28 2011 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-8
|
|
|
|
- Rebuild for new mysql
|
|
|
|
|
2011-03-17 15:17:29 +00:00
|
|
|
* Thu Mar 17 2011 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-7
|
|
|
|
- Add needed requires to vtk-devel
|
|
|
|
|
2011-03-16 21:32:26 +00:00
|
|
|
* Wed Mar 16 2011 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-6
|
|
|
|
- Turn on boost, mysql, postgres, ogg theora, and text analysis support,
|
|
|
|
bug 688275.
|
|
|
|
|
2011-03-16 14:58:42 +00:00
|
|
|
* Wed Mar 16 2011 Marek Kasik <mkasik@redhat.com> - 5.6.1-5
|
|
|
|
- Add backslashes to VTK_INSTALL_LIB_DIR and
|
|
|
|
- VTK_INSTALL_INCLUDE_DIR (#687895)
|
|
|
|
|
2011-03-15 17:26:25 +00:00
|
|
|
* Tue Mar 15 2011 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-4
|
|
|
|
- Set VTK_INSTALL_LIB_DIR, fix bug 687895
|
|
|
|
|
2011-02-18 18:27:48 +00:00
|
|
|
* Fri Feb 18 2011 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-3
|
|
|
|
- Add patch to support gcc 4.6
|
|
|
|
- Add patch to make using system libraries easier
|
|
|
|
- Update pythondestdir patch to use --prefix and --root
|
|
|
|
- Use system gl2ps and libxml2
|
|
|
|
- Use standard cmake build macro, out of tree builds
|
|
|
|
- Add patch from upstream to add sonames to libCosmo and libVPIC (bug #622840)
|
|
|
|
|
2011-02-08 01:55:23 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.6.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2012-12-05 15:49:05 +00:00
|
|
|
* Tue Dec 7 2010 Orion Poplawski <orion@cora.nwra.com> - 5.6.1-1
|
2010-12-28 18:08:41 +00:00
|
|
|
- Update to 5.6.1
|
|
|
|
- Enable qt4 support, drop qt3 support
|
|
|
|
|
2010-10-20 21:16:02 +00:00
|
|
|
* Wed Oct 20 2010 Adam Jackson <ajax@redhat.com> 5.6.0-37
|
|
|
|
- Rebuild for new libOSMesa soname
|
|
|
|
|
2010-08-01 05:10:11 +00:00
|
|
|
* Sat Jul 31 2010 David Malcolm <dmalcolm@redhat.com> - 5.6.0-36
|
|
|
|
- add python 2.7 compat patch
|
|
|
|
|
2010-07-22 07:12:40 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 5.6.0-35
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-07-10 22:00:50 +00:00
|
|
|
* Mon Jul 5 2010 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.6.0-34
|
|
|
|
- Update to 5.6.0.
|
2009-07-27 06:59:35 +00:00
|
|
|
|
2009-06-08 06:04:09 +00:00
|
|
|
* Sat Jun 6 2009 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.4.2-30
|
|
|
|
- Update to 5.4.2.
|
2009-04-25 10:03:26 +00:00
|
|
|
|
2009-06-08 06:04:09 +00:00
|
|
|
* Thu Mar 12 2009 Orion Poplawski <orion@cora.nwra.com> - 5.2.1-29
|
2009-03-13 03:32:33 +00:00
|
|
|
- Update to 5.2.1
|
|
|
|
|
2009-03-06 21:27:20 +00:00
|
|
|
* Fri Mar 06 2009 Jesse Keating <jkeating@redhat.com> - 5.2.0-28
|
|
|
|
- Remove chmod on examples .so files, none are built. This needs
|
|
|
|
more attention.
|
|
|
|
|
2008-12-21 21:58:49 +00:00
|
|
|
* Sun Oct 5 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.2.0-26
|
|
|
|
- Update to 5.2.0.
|
2008-11-29 17:35:09 +00:00
|
|
|
|
2008-10-01 16:12:49 +00:00
|
|
|
* Wed Oct 1 2008 Orion Poplawski <orion@cora.nwra.com> - 5.0.2-25
|
|
|
|
- Fix patch fuzz
|
|
|
|
|
2008-08-26 17:18:39 +00:00
|
|
|
* Mon Aug 25 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-24
|
|
|
|
- Change java build dependencies from java-devel to gcj.
|
|
|
|
|
2008-08-25 12:06:41 +00:00
|
|
|
* Sun Aug 24 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-23
|
|
|
|
- %%check || : does not work anymore.
|
|
|
|
- enable java by default.
|
|
|
|
|
2008-05-21 20:20:18 +00:00
|
|
|
* Wed May 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 5.0.4-22
|
|
|
|
- fix license tag
|
|
|
|
|
2008-04-12 05:42:05 +00:00
|
|
|
* Sat Apr 12 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-21
|
|
|
|
- Fixes for gcc 4.3 by Orion Poplawski.
|
|
|
|
|
2008-04-05 10:44:02 +00:00
|
|
|
* Sat Apr 5 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-20
|
|
|
|
- Change BR to qt-devel to qt3-devel.
|
|
|
|
|
2008-02-23 11:45:49 +00:00
|
|
|
* Sat Feb 23 2008 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.4-19
|
|
|
|
- Update to 5.0.4.
|
2007-08-28 21:42:28 +00:00
|
|
|
|
2007-06-03 20:06:13 +00:00
|
|
|
* Mon May 28 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.3-18
|
|
|
|
- Move headers to %%{_includedir}/vtk.
|
|
|
|
- Remove executable bit from sources.
|
|
|
|
|
|
|
|
* Mon Apr 16 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.3-17
|
|
|
|
- Make java build conditional.
|
|
|
|
- Add ldconfig %%post/%%postun for java/qt subpackages.
|
|
|
|
|
|
|
|
* Sun Apr 15 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.3-16
|
|
|
|
- Remove %%ghosting pyc/pyo.
|
|
|
|
|
|
|
|
* Wed Apr 04 2007 Paulo Roma <roma@lcg.ufrj.br> - 5.0.3-15
|
|
|
|
- Update to 5.0.4.
|
|
|
|
- Added support for qt4 plugin.
|
|
|
|
|
|
|
|
* Wed Feb 7 2007 Orion Poplawski <orion@cora.nwra.com> - 5.0.2-14
|
|
|
|
- Enable Java, Qt, GL2PS, OSMESA
|
|
|
|
|
|
|
|
* Mon Sep 11 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.2-13
|
|
|
|
- Update to 5.0.2.
|
|
|
|
|
|
|
|
* Sun Aug 6 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-12
|
|
|
|
- cmake needs to be >= 2.0.4.
|
|
|
|
|
|
|
|
* Fri Aug 4 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-11
|
|
|
|
- Fix some python issues including pyo management.
|
|
|
|
|
|
|
|
* Sun Jul 23 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-10
|
|
|
|
- Embed feedback from bug 199405 comment 5.
|
|
|
|
- Fix some Group entries.
|
|
|
|
- Remove redundant dependencies.
|
|
|
|
- Use system libs.
|
|
|
|
- Comment specfile more.
|
|
|
|
- Change buildroot handling with CMAKE_INSTALL_PREFIX.
|
|
|
|
- Enable qt designer plugin.
|
|
|
|
|
|
|
|
* Wed Jul 19 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-7
|
|
|
|
- Fix some permissions for rpmlint and debuginfo.
|
|
|
|
|
|
|
|
* Sun Jul 16 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-7
|
|
|
|
- Remove rpath and some further rpmlint warnings.
|
|
|
|
|
|
|
|
* Thu Jul 13 2006 Axel Thimm <Axel.Thimm@ATrpms.net> - 5.0.1-6
|
|
|
|
- Update to 5.0.1.
|
|
|
|
|
|
|
|
* Wed May 31 2006 Axel Thimm <Axel.Thimm@ATrpms.net>
|
|
|
|
- Update to 5.0.
|
|
|
|
|
2012-12-05 15:49:05 +00:00
|
|
|
* Mon Apr 05 2004 Intrinsic Spin <spin@freakbait.com> 2.mr
|
2007-06-03 20:06:13 +00:00
|
|
|
- built on a machine with a stock libGL.so
|
|
|
|
|
|
|
|
* Sun Apr 04 2004 Intrinsic Spin <spin@freakbait.com>
|
|
|
|
- little cleanups
|
|
|
|
- Built for FC1
|
|
|
|
|
|
|
|
* Sun Jan 11 2004 Intrinsic Spin <spin@freakbait.com>
|
|
|
|
- Built against a reasonably good (according to dashboard) CVS version so-as
|
|
|
|
to get GL2PS support.
|
|
|
|
- Rearranged. Cleaned up. Added some comments.
|
|
|
|
|
|
|
|
* Sat Jan 10 2004 Intrinsic Spin <spin@freakbait.com>
|
|
|
|
- Blatently stole this spec file for my own nefarious purposes.
|
|
|
|
- Removed Java (for now). Merged the Python and Tcl stuff into
|
|
|
|
the main rpm.
|
|
|
|
|
|
|
|
* Fri Dec 05 2003 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
|
|
|
|
- (See Fabrice's RPMs for any more comments --Spin)
|