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
#
2020-01-31 18:14:50 +01:00
# Copyright (c) 2020 SUSE LLC
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.
2018-12-05 14:55:34 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-04-20 10:24:25 +02:00
#
2018-12-03 20:11:01 +01:00
%define major_ver 5.6
2019-08-17 12:28:33 +02:00
2020-01-31 18:14:50 +01:00
%if 0%{?suse_version} <= 1500
%bcond_with pugixml
%else
%bcond_without pugixml
%endif
# Need unrelased version > 1.4.0 with e.g. gl2psTextOptColorBL
%bcond_with gl2ps
# Need patched version with HPDF_SHADING
%bcond_with haru
2011-04-20 10:24:25 +02:00
Name : paraview
2019-09-20 23:39:59 +02:00
Version : 5.6.2
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
2020-01-31 18:14:50 +01:00
URL : https://www.paraview.org
2019-08-17 12:28:33 +02:00
Source0 : https://www.paraview.org/files/v%{major_ver} /ParaView-v%{version} .tar.xz
2014-09-11 11:08:53 +02:00
Source1 : %{name} -rpmlintrc
2019-08-17 12:28:33 +02:00
# CAUTION: GettingStarted may or may not be updated with each minor version
Source2 : https://www.paraview.org/files/v%{major_ver} /ParaViewGettingStarted-%{major_ver} .0.pdf
Source3 : https://www.paraview.org/files/v%{major_ver} /ParaViewGuide-%{version} .pdf
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
2017-03-20 22:33:25 +01:00
# PATCH-FIX-UPSTREAM paraview-do-not-install-missing-vtk-doxygen-dir.patch foss@grueninger.de -- Remove install of nonexistent doxygen/html dir
Patch3 : paraview-do-not-install-missing-vtk-doxygen-dir.patch
2016-12-03 14:07:03 +01:00
# PATCH-FIX-UPSTREAM paraview-find-qhelpgenerator-qt5.patch badshah400@gmail.com -- Help find qhelpgenerator-qt5 instead of qhelpgenerator when Qt5 is used
Patch4 : paraview-find-qhelpgenerator-qt5.patch
2018-08-17 13:12:42 +02:00
# PATCH-FIX-OPENSUSE fix-libharu-missing-m.patch -- missing libraries for linking
Patch8 : fix-libharu-missing-m.patch
2020-01-31 18:14:50 +01:00
# PATCH-FIX-OPENSUSE bundled_exodusii_add_missing_libpthread.patch stefan.bruens@rwth-aachen.de -- Add missing libm for linking
Patch10 : bundled_exodusii_add_missing_libpthread.patch
# PATCH-FIX-OPENSUSE -- Missing libogg symbols
Patch11 : 0001-Add-libogg-to-IOMovie-target-link-libraries.patch
# PATCH-FIX-OPENSUSE 0001-Allow-compilation-on-GLES-platforms.patch VTK issue #17113 stefan.bruens@rwth-aachen.de -- Fix building with Qt GLES builds
Patch12 : 0001-Allow-compilation-on-GLES-platforms.patch
2011-04-20 10:24:25 +02:00
BuildRequires : Mesa-devel
2020-01-31 18:14:50 +01:00
BuildRequires : cgns-devel
2016-12-03 14:07:03 +01:00
BuildRequires : cmake >= 3.3
2020-01-31 18:14:50 +01:00
BuildRequires : double-conversion-devel
2011-04-20 10:24:25 +02:00
BuildRequires : doxygen
2020-01-31 18:14:50 +01:00
BuildRequires : fdupes
2011-04-20 10:24:25 +02:00
BuildRequires : gnuplot
BuildRequires : graphviz
2020-01-31 18:14:50 +01:00
BuildRequires : hdf5-devel
BuildRequires : libboost_graph-devel
BuildRequires : libboost_headers-devel
2011-04-20 10:24:25 +02:00
BuildRequires : libexpat-devel
2020-01-31 18:14:50 +01:00
%if %{with haru}
BuildRequires : libharu-devel > 2.3.0
%endif
2011-04-20 10:24:25 +02:00
BuildRequires : libjpeg-devel
2020-01-31 18:14:50 +01:00
BuildRequires : libnetcdf_c++-devel
2011-04-20 10:24:25 +02:00
BuildRequires : libpqxx-devel
BuildRequires : libtiff-devel
BuildRequires : openssl-devel
2016-12-03 14:07:03 +01:00
BuildRequires : python-Sphinx
2020-01-31 18:14:50 +01:00
BuildRequires : python-Twisted
2011-04-20 10:24:25 +02:00
BuildRequires : python-devel
2013-07-13 14:13:29 +02:00
BuildRequires : python-matplotlib
2018-12-03 20:11:01 +01:00
BuildRequires : python-qt5-devel
2020-01-31 18:14:50 +01:00
BuildRequires : python-rpm-macros
2018-12-03 20:11:01 +01:00
BuildRequires : readline-devel
BuildRequires : wget
BuildRequires : zlib-devel
2016-12-03 14:07:03 +01:00
BuildRequires : pkgconfig(Qt5Core)
BuildRequires : pkgconfig(Qt5Gui)
BuildRequires : pkgconfig(Qt5Help)
BuildRequires : pkgconfig(Qt5Network)
BuildRequires : pkgconfig(Qt5PrintSupport)
2020-01-31 18:14:50 +01:00
BuildRequires : pkgconfig(Qt5WebEngine)
2016-12-03 14:07:03 +01:00
BuildRequires : pkgconfig(Qt5Widgets)
BuildRequires : pkgconfig(Qt5X11Extras)
BuildRequires : pkgconfig(Qt5Xml)
2020-01-31 18:14:50 +01:00
BuildRequires : pkgconfig(eigen3) >= 2.91.0
BuildRequires : pkgconfig(freetype2)
BuildRequires : pkgconfig(glew)
BuildRequires : pkgconfig(jsoncpp) >= 0.7.0
BuildRequires : pkgconfig(liblz4) >= 1.7.3
BuildRequires : pkgconfig(libpng)
BuildRequires : pkgconfig(netcdf)
BuildRequires : pkgconfig(ogg)
BuildRequires : pkgconfig(protobuf) >= 2.6.0
%if %{with pugixml}
BuildRequires : pkgconfig(pugixml)
%endif
BuildRequires : pkgconfig(theora)
BuildRequires : pkgconfig(xt)
2011-04-20 10:24:25 +02:00
Requires : gnuplot
Requires : graphviz
2020-01-31 18:14:50 +01:00
Requires : python-Twisted
Requires : python-qt5
2011-04-20 10:24:25 +02:00
%description
2018-12-05 14:55:34 +01:00
ParaView is a data analysis and visualization application for
visualizing large data sets.
2011-04-20 10:24:25 +02:00
2018-12-03 20:11:01 +01:00
ParaView runs on distributed and shared memory systems alike. It uses VTK
(the Visualization Toolkit) as the data processing and rendering engine.
Data exploration can be done interactively in 3D or programmatically using
batch processing.
2011-04-20 10:24:25 +02:00
NOTE: The version in this package has NOT been compiled with MPI support.
2018-12-03 20:11:01 +01:00
%package devel
Summary : Headers for building ParaView plugins or embedding Catalyst
Group : Development/Libraries/Other
Requires : %{name} = %{version}
%description devel
This package contains headers and libraries required to build plugins
for ParaView or to embed ParaView Catalyst in a simulation program.
2011-04-20 10:24:25 +02:00
%prep
2016-06-22 07:54:02 +02:00
%setup -q -n ParaView-v%{version}
2012-04-08 22:00:29 +02:00
%patch1 -p1
2013-07-13 14:13:29 +02:00
%patch2 -p1
2017-03-20 22:33:25 +01:00
%patch3 -p1
2016-12-03 14:07:03 +01:00
%patch4 -p1
2018-08-17 13:12:42 +02:00
%patch8 -p1
2020-01-31 18:14:50 +01:00
#%%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
2011-04-20 10:24:25 +02:00
%build
2019-09-20 23:39:59 +02:00
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
2011-04-20 10:24:25 +02:00
export CC='gcc'
export CXX='g++'
2016-12-09 07:05:38 +01:00
2017-07-12 00:44:14 +02:00
%cmake -DPV_INSTALL_LIB_DIR:PATH=%{_lib}/%{name} \
2016-12-03 14:07:03 +01:00
-DVTK_INSTALL_ARCHIVE_DIR:PATH=%{_lib}/%{name} \
-DVTK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/%{name} \
2018-12-03 20:11:01 +01:00
-DVTK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/%{name} -%{major_ver} \
2016-12-03 14:07:03 +01:00
-DVTK_INSTALL_DATA_DIR=share/%{name} \
-DVTK_INSTALL_DOC_DIR=share/doc/packages/%{name} \
-DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
-DCMAKE_C_COMPILER:FILEPATH=$CC \
2016-12-09 07:05:38 +01:00
-DCMAKE_SKIP_RPATH:BOOL=OFF \
2018-08-17 13:12:42 +02:00
-DPARAVIEW_USE_VTKM:BOOL=OFF \
2016-12-03 14:07:03 +01:00
-DPARAVIEW_BUILD_QT_GUI:BOOL=ON \
-DPARAVIEW_BUILD_PLUGIN_SLACTools:BOOL=ON \
-DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
2020-01-31 18:14:50 +01:00
-DPARAVIEW_ENABLE_WEB:BOOL=ON \
2016-12-03 14:07:03 +01:00
-DVTK_WRAP_PYTHON:BOOL=ON \
-DVTK_WRAP_PYTHON_SIP:BOOL=ON \
-DVTK_OPENGL_HAS_OSMESA:BOOL=OFF \
2020-01-31 18:14:50 +01:00
-DVTK_USE_SYSTEM_LIBRARIES:BOOL=ON \
2016-12-03 14:07:03 +01:00
-DVTK_USE_SYSTEM_EXPAT:BOOL=ON \
-DVTK_USE_SYSTEM_FREETYPE:BOOL=ON \
2020-01-31 18:14:50 +01:00
-DVTK_USE_SYSTEM_GL2PS:BOOL=%{?with_gl2ps:ON}%{!?with_gl2ps:OFF} \
-DVTK_USE_SYSTEM_LIBHARU:BOOL=%{?with_haru:ON}%{!?with_haru:OFF} \
2016-12-03 14:07:03 +01:00
-DVTK_USE_SYSTEM_JPEG:BOOL=ON \
-DVTK_USE_SYSTEM_PNG:BOOL=ON \
-DVTK_USE_SYSTEM_TIFF:BOOL=ON \
2018-08-17 13:12:42 +02:00
-DVTK_USE_SYSTEM_LZMA:BOOL=ON \
2020-01-31 18:14:50 +01:00
-DVTK_USE_SYSTEM_PEGTL:BOOL=OFF \
-DVTK_USE_SYSTEM_PUGIXML:BOOL=%{?with_pugixml:ON}%{!?with_pugixml:OFF} \
-DVTK_USE_SYSTEM_QTTESTING:BOOL=OFF \
2016-12-03 14:07:03 +01:00
-DVTK_USE_SYSTEM_TWISTED:BOOL=ON \
2020-01-31 18:14:50 +01:00
-DVTK_USE_SYSTEM_XDMF2:BOOL=OFF \
-DVTK_USE_SYSTEM_ZLIB:BOOL=ON \
2016-12-03 14:07:03 +01:00
-DBUILD_DOCUMENTATION:BOOL=ON \
2018-08-17 13:12:42 +02:00
-DBUILD_EXAMPLES:BOOL=OFF \
2018-12-03 20:11:01 +01:00
-DBUILD_TESTING:BOOL=OFF \
-DQtTesting_INSTALL_NO_DEVELOPMENT:BOOL=ON \
-DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON
2016-12-09 07:05:38 +01:00
# FIXME: CAUSES ERRORS WITH THE IN-APP PYTHON SHELL WHICH STILL LOOKS FOR PY MODULES IN THE DEFAULT DIR %%{_libdir}/%%{name}/site-packages
# -DVTK_INSTALL_PYTHON_MODULE_DIR:PATH="%%{python_sitearch}/%%{name}" \
# FIXME: CAUSES PYTHON BYTECODE TIMESTAMP WARNINGS
# -G"Unix Makefiles" \
2016-12-03 14:07:03 +01:00
2016-12-09 07:05:38 +01:00
# https://gitlab.kitware.com/paraview/paraview/issues/17049 from
# -DCMAKE_SKIP_RPATH:BOOL=ON
2016-12-03 14:07:03 +01:00
%make_jobs
2011-04-20 10:24:25 +02:00
%install
2018-12-05 14:55:34 +01:00
find . \( -name \*.txt -o -name \*.xml -o -name '*.[ch]' -o -name '*.[ch][px][px]' \) -exec chmod -x " { } " +
2011-04-20 10:24:25 +02:00
2016-12-03 14:07:03 +01:00
%cmake_install
2014-09-11 10:57:03 +02:00
2015-09-15 09:48:44 +02:00
# UNNECESSARY STATIC LIB
rm -fr %{buildroot} %{_libexecdir} /libFmmMesh.a
2016-12-03 14:07:03 +01:00
# INSTALL DOCUMENTATION USED BY THE HELP MENU IN MAIN APP
install -Dm0644 %{S:2} %{buildroot} %{_datadir} /%{name} -%{major_ver} /doc/GettingStarted.pdf
install -Dm0644 %{S:3} %{buildroot} %{_datadir} /%{name} -%{major_ver} /doc/Guide.pdf
2014-02-04 10:39:54 +01:00
%fdupes %{buildroot} /
2013-07-13 14:13:29 +02:00
2020-01-31 18:14:50 +01:00
%post -p /sbin/ldconfig
2014-09-11 10:57:03 +02:00
2020-01-31 18:14:50 +01:00
%postun -p /sbin/ldconfig
2014-09-11 10:57:03 +02:00
2011-04-20 10:24:25 +02:00
%files
%defattr (-,root,root)
2020-01-31 18:14:50 +01:00
%license License_v1.2.txt
2018-12-03 20:11:01 +01:00
%exclude %{_bindir} /smTest*
%exclude %{_bindir} /vtk*
%exclude %{_includedir} /
%exclude %{_libdir} /cmake/
2013-01-12 13:11:42 +01:00
%{_libdir} /%{name} /
2011-04-20 10:24:25 +02:00
%{_bindir} /*
2016-12-03 14:07:03 +01:00
%{_docdir} /%{name} /
%{_datadir} /%{name} -%{major_ver} /
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
2018-12-03 20:11:01 +01:00
%files devel
%defattr (-,root,root)
%{_bindir} /smTest*
%{_bindir} /vtk*
%{_includedir} /%{name} *
%{_libdir} /cmake/%{name} -%{major_ver} /
2011-04-20 10:24:25 +02:00
%changelog