2011-04-20 10:24:25 +02:00
#
# spec file for package
#
2011-11-10 12:42:23 +01:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2011-04-20 10:24:25 +02:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name : paraview
2011-11-10 12:42:23 +01:00
Version : 3.12.0
2011-04-20 10:24:25 +02:00
Release : 1
License : BSD
Summary : Data analysis and visualization application
Url : http://www.paraview.org
Group : Productivity/Scientific/Physics
Source0 : ParaView-%{version} .tar.bz2
# PATCH-FIX-UPSTREAM paraview-default-qtstyle.patch badshah400@gmail.com --Make paraview inherit default qt gui look and feel, instead of using the Plastique theme
Patch2 : paraview-default-qtstyle.patch
BuildRequires : Mesa-devel
BuildRequires : boost-devel
BuildRequires : cmake
BuildRequires : desktop-file-utils
BuildRequires : doxygen
BuildRequires : gnuplot
BuildRequires : graphviz
BuildRequires : libexpat-devel
BuildRequires : libjpeg-devel
#BuildRequires: libpq5
BuildRequires : libpqxx-devel
BuildRequires : libqt4-devel
BuildRequires : libQtWebKit-devel
BuildRequires : libtiff-devel
BuildRequires : openssl-devel
BuildRequires : python-devel
%if 0%{?suse_version} > 1130
BuildRequires : qt4-assistant-adp-devel
%endif
BuildRequires : readline-devel
BuildRequires : tk-devel
BuildRequires : wget
BuildRequires : zlib-devel
Requires : gnuplot
Requires : graphviz
Requires : python
Requires : python-base
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%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++.
NOTE: The version in this package has NOT been compiled with MPI support.
%prep
%setup -q -n ParaView-%{version}
%patch2 -p1
%build
export CC='gcc'
export CXX='g++'
export MAKE='make'
export CFLAGS=" %{optflags} "
export CXXFLAGS=" %{optflags} "
%define paraview_cmake_options \\\
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
-DBUILD_SHARED_LIBS:BOOL=ON \\\
-DCMAKE_CXX_COMPILER:FILEPATH=$CXX \\\
-DCMAKE_C_COMPILER:FILEPATH=$CC \\\
-DCMAKE_BUILD_TYPE=Release \\\
-DTCL_LIBRARY:PATH=tcl \\\
-DTK_LIBRARY:PATH=tk \\\
-DPARAVIEW_INSTALL_DEVELOPMENT:BOOL=OFF \\\
-DPARAVIEW_BUILD_QT_GUI:BOOL=ON \\\
-DPARAVIEW_QT_QMAKE_EXECUTABLE=%{_bindir} /qmake \\\
-DPARAVIEW_BUILD_StreamingParaView:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_Streaming:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_Array:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_CosmoFilters:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_Infovis:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_netCDFReaders:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_pvblot:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=ON \\\
-DPARAVIEW_BUILD_PLUGIN_VisItReaderPlugin:BOOL=OFF \\\
-DPARAVIEW_ENABLE_PYTHON:BOOL=OFF \\\
-DPARAVIEW_INSTALL_THIRD_PARTY_LIBRARIES:BOOL=OFF \\\
-DPARAVIEW_USE_SYSTEM_HDF5:BOOL=OFF \\\
-DVTK_OPENGL_HAS_OSMESA:BOOL=ON \\\
-DVTK_USE_BOOST:BOOL=ON \\\
-DVTK_USE_INFOVIS:BOOL=OFF \\\
-DVTK_USE_N_WAY_ARRAYS:BOOL=ON \\\
-DVTK_USE_RPATH:BOOL=OFF \\\
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \\\
-DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \\\
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \\\
-DVTK_USE_SYSTEM_PNG:BOOL=ON \\\
-DVTK_USE_SYSTEM_TIFF:BOOL=ON \\\
-DVTK_USE_SYSTEM_ZLIB:BOOL=ON \\\
-DBUILD_DOCUMENTATION:BOOL=ON \\\
-DBUILD_EXAMPLES:BOOL=ON
mkdir temp_dir
pushd temp_dir
cmake .. \
-DPV_INSTALL_LIB_DIR:PATH=%{_lib}/paraview \
%{paraview_cmake_options}
make
popd
%install
find . \( -name \*.txt -o -name \*.xml -o -name '*.[ch]' -o -name '*.[ch][px][px]' \) -print0 | xargs -0 chmod -x
pushd temp_dir
%makeinstall
popd
rm -rf temp_dir/
2011-11-10 12:42:23 +01:00
rm -rf /usr/src/packages/BUILD/ParaView-%{version} /temp_dir/Plugins/PointSprite/PointSpriteDemo
2011-04-20 10:24:25 +02:00
%clean
%{?buildroot:%__rm -rf %{buildroot} }
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root)
%doc License_v1.2.txt
%{_libdir} /paraview/
%{_bindir} /*
%changelog