2011-04-20 10:24:25 +02:00
#
2013-07-13 14:13:29 +02:00
# spec file for package paraview
2011-04-20 10:24:25 +02:00
#
2014-02-04 10:39:54 +01:00
# Copyright (c) 2014 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/
#
2013-07-13 14:13:29 +02:00
2014-09-11 10:57:03 +02:00
%define major_ver 4.2
2014-10-01 19:40:27 +02:00
%define complete_ver 4.2.0
2011-04-20 10:24:25 +02:00
Name : paraview
2014-10-01 19:40:27 +02:00
Version : 4.2.0
2013-07-13 14:13:29 +02:00
Release : 0
2011-04-20 10:24:25 +02:00
Summary : Data analysis and visualization application
2013-07-13 14:13:29 +02:00
License : BSD-3-Clause
2011-04-20 10:24:25 +02:00
Group : Productivity/Scientific/Physics
2013-07-13 14:13:29 +02:00
Url : http://www.paraview.org
2014-10-01 19:40:27 +02:00
Source0 : http://www.paraview.org/files/v%{major_ver} /ParaView-v%{complete_ver} -source.tar.gz
2014-09-11 11:08:53 +02:00
Source1 : %{name} -rpmlintrc
2014-09-11 10:57:03 +02:00
# PATCH-FIX-OPENSUSE paraview-default-qtstyle.patch badshah400@gmail.com -- Make paraview inherit default qt gui look and feel, instead of using the Plastique theme
2012-04-08 22:00:29 +02:00
Patch0 : paraview-default-qtstyle.patch
2014-09-11 10:57:03 +02:00
# PATCH-FIX-UPSTREAM paraview-desktop-entry-fix.patch badshah400@gmail.com -- Fix desktop menu entry by inserting proper required categories
Patch1 : paraview-desktop-entry-fix.patch
2013-07-13 14:13:29 +02:00
# PATCH-FIX-UPSTREAM paraview-fix-file-contains-date-time.patch badshah400@gmail.com -- Remove reference to __DATE__ and __TIME__ from source
2014-02-04 10:39:54 +01:00
Patch2 : paraview-fix-file-contains-date-time.patch
2011-04-20 10:24:25 +02:00
BuildRequires : Mesa-devel
BuildRequires : boost-devel
2013-01-12 13:11:42 +01:00
BuildRequires : cmake >= 2.8.8
2011-04-20 10:24:25 +02:00
BuildRequires : desktop-file-utils
BuildRequires : doxygen
BuildRequires : gnuplot
BuildRequires : graphviz
BuildRequires : libexpat-devel
BuildRequires : libjpeg-devel
#BuildRequires: libpq5
2013-07-13 14:13:29 +02:00
BuildRequires : libQtWebKit-devel
2011-04-20 10:24:25 +02:00
BuildRequires : libpqxx-devel
2013-02-26 12:20:04 +01:00
BuildRequires : libqt4-devel >= 4.7.0
2011-04-20 10:24:25 +02:00
BuildRequires : libtiff-devel
BuildRequires : openssl-devel
BuildRequires : python-devel
2013-07-13 14:13:29 +02:00
BuildRequires : python-matplotlib
2013-06-20 15:03:57 +02:00
%py_requires
2013-07-13 14:13:29 +02:00
BuildRequires : fdupes
2014-02-04 19:28:19 +01:00
BuildRequires : python-twisted
BuildRequires : python-zope.interface
2014-02-04 10:39:54 +01:00
BuildRequires : qt4-assistant-adp-devel
2011-04-20 10:24:25 +02:00
BuildRequires : readline-devel
BuildRequires : tk-devel
BuildRequires : wget
BuildRequires : zlib-devel
Requires : gnuplot
Requires : graphviz
Requires : python
Requires : python-base
2014-02-04 19:28:19 +01:00
Requires : python-twisted
Requires : python-zope.interface
2011-04-20 10:24:25 +02:00
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.
2013-02-26 12:20:04 +01:00
# Split the SQTK plugin out into ints own package because it makes use of
# components with a different licence, viz., (L)GPL-3.0+ (bnc#804987).
%package -n %{name}-plugin-SciberQuestToolKit
Summary : The SciberQuestToolKit plugin for paraview
2013-02-27 15:11:24 +01:00
License : GPL-2.0+ or LGPL-3.0+
2013-02-26 12:20:04 +01:00
Group : Productivity/Scientific/Physics
Requires : paraview = %{version} -%{release}
%description -n %{name}-plugin-SciberQuestToolKit
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++.
This package provides the SciberQuestToolKit plugin for paraview.
2011-04-20 10:24:25 +02:00
%prep
2014-10-01 19:40:27 +02:00
%setup -q -n ParaView-v%{complete_ver} -source
2012-04-08 22:00:29 +02:00
%patch0 -p1
%patch1 -p1
2013-07-13 14:13:29 +02:00
%patch2 -p1
2011-04-20 10:24:25 +02:00
%build
2014-09-11 10:57:03 +02:00
# Prepare for gcc 4.9.0: work around gcc 4.9.0 regression
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61294
sed -i -e 's/-Wl,--fatal-warnings//' VTK/CMake/vtkCompilerExtras.cmake
2011-04-20 10:24:25 +02:00
export CC='gcc'
export CXX='g++'
export MAKE='make'
export CFLAGS=" %{optflags} "
export CXXFLAGS=" %{optflags} "
%define paraview_cmake_options \\\
2013-07-13 14:13:29 +02:00
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
-DVTK_INSTALL_INCLUDE_DIR:PATH=include/%{name} \\\
-DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/%{name} \\\
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/%{name} \\\
2014-02-04 10:39:54 +01:00
-DVTK_INSTALL_DATA_DIR=%{_datadir} /%{name} \\\
2011-04-20 10:24:25 +02:00
-DBUILD_SHARED_LIBS:BOOL=ON \\\
-DCMAKE_CXX_COMPILER:FILEPATH=$CXX \\\
-DCMAKE_C_COMPILER:FILEPATH=$CC \\\
2014-02-04 10:39:54 +01:00
-DCMAKE_BUILD_TYPE=RelWithDebInfo \\\
2011-04-20 10:24:25 +02:00
-DPARAVIEW_BUILD_QT_GUI:BOOL=ON \\\
-DPARAVIEW_QT_QMAKE_EXECUTABLE=%{_bindir} /qmake \\\
-DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=ON \\\
2013-06-20 15:03:57 +02:00
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON \\\
2014-02-04 10:39:54 +01:00
-DVTK_WRAP_PYTHON:BOOL=ON \\\
-DVTK_WRAP_PYTHON_SIP:BOOL=ON \\\
2013-01-12 13:11:42 +01:00
-DVTK_OPENGL_HAS_OSMESA:BOOL=OFF \\\
2011-04-20 10:24:25 +02:00
-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 \\\
2014-02-04 19:28:19 +01:00
-DVTK_USE_SYSTEM_ZOPE:BOOL=ON \\\
-DVTK_USE_SYSTEM_TWISTED:BOOL=ON \\\
2011-04-20 10:24:25 +02:00
-DBUILD_DOCUMENTATION:BOOL=ON \\\
2014-02-04 10:39:54 +01:00
-DBUILD_EXAMPLES:BOOL=ON \\\
-DBUILD_TESTING:BOOL=OFF
2011-04-20 10:24:25 +02:00
mkdir temp_dir
pushd temp_dir
cmake .. \
2013-07-13 14:13:29 +02:00
-DPV_INSTALL_LIB_DIR:PATH=%{_lib}/%{name} \
2011-04-20 10:24:25 +02:00
%{paraview_cmake_options}
2012-04-08 22:00:29 +02:00
2013-03-12 13:14:40 +01:00
make %{?_smp_mflags}
2011-04-20 10:24:25 +02:00
popd
%install
find . \( -name \*.txt -o -name \*.xml -o -name '*.[ch]' -o -name '*.[ch][px][px]' \) -print0 | xargs -0 chmod -x
pushd temp_dir
2013-07-13 14:13:29 +02:00
%makeinstall DESTDIR=%{buildroot}
2011-04-20 10:24:25 +02:00
popd
rm -rf temp_dir/
2014-09-11 10:57:03 +02:00
# FIX A BUNCH OF RPMLINT WARNINGS REGARDING python-bytecode-inconsistent-mtime
%py_compile %{buildroot} %{_libdir} /%{name} /site-packages/vtk/
for i in `ls -d %{buildroot} %{_libdir} /%{name} /site-packages/vtk/*/`;
do
%py_compile $i/
done
%py_compile %{buildroot} %{_libdir} /%{name} /site-packages/paraview/vtk/util
2014-02-04 10:39:54 +01:00
%fdupes %{buildroot} /
2013-07-13 14:13:29 +02:00
2014-09-11 10:57:03 +02:00
%post
/sbin/ldconfig
%icon_theme_cache_post
%desktop_database_post
2013-02-26 12:20:04 +01:00
%post -n %{name}-plugin-SciberQuestToolKit -p /sbin/ldconfig
2011-04-20 10:24:25 +02:00
2014-09-11 10:57:03 +02:00
%postun
/sbin/ldconfig
%icon_theme_cache_postun
%desktop_database_postun
2013-02-26 12:20:04 +01:00
%postun -n %{name}-plugin-SciberQuestToolKit -p /sbin/ldconfig
2011-04-20 10:24:25 +02:00
%files
%defattr (-,root,root)
%doc License_v1.2.txt
2013-01-12 13:11:42 +01:00
%{_libdir} /%{name} /
2011-04-20 10:24:25 +02:00
%{_bindir} /*
2013-01-12 13:11:42 +01:00
%{_datadir} /doc/%{name} -%{major_ver} /
2014-02-04 10:39:54 +01:00
%{_datadir} /%{name} /
2014-09-11 10:57:03 +02:00
%dir %{_datadir} /appdata
%{_datadir} /appdata/%{name} .appdata.xml
%{_datadir} /applications/%{name} .desktop
%{_datadir} /icons/hicolor/*/apps/%{name} .png
2013-02-26 12:20:04 +01:00
%exclude %{_libdir} /%{name} /libSciberQuestToolKit.so
2011-04-20 10:24:25 +02:00
2013-02-26 12:20:04 +01:00
%files -n %{name}-plugin-SciberQuestToolKit
%defattr (-,root,root)
%doc Plugins/SciberQuestToolKit/eigen-3.0.3/eigen-eigen-3.0.3/COPYING.LGPL
%doc Plugins/SciberQuestToolKit/eigen-3.0.3/eigen-eigen-3.0.3/COPYING.GPL
%{_libdir} /%{name} /libSciberQuestToolKit.so
2011-04-20 10:24:25 +02:00
%changelog