forked from pool/paraview
Accepting request 67947 from home:badshah400
thanks! OBS-URL: https://build.opensuse.org/request/show/67947 OBS-URL: https://build.opensuse.org/package/show/science/paraview?expand=0&rev=1
This commit is contained in:
commit
505d2372b2
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
ParaView-3.10.0.tar.bz2
Normal file
3
ParaView-3.10.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5a68f998c193ac3368bc998d8c19aa87e95a3327f6ce9393d339dfd00dec69a9
|
||||||
|
size 32474608
|
28
paraview-default-qtstyle.patch
Normal file
28
paraview-default-qtstyle.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
diff -ur ParaView-3.10.0.orig//CMake/branded_paraview_main.cxx.in ParaView-3.10.0//CMake/branded_paraview_main.cxx.in
|
||||||
|
--- ParaView-3.10.0.orig//CMake/branded_paraview_main.cxx.in 2011-03-10 00:01:13.000000000 +0530
|
||||||
|
+++ ParaView-3.10.0//CMake/branded_paraview_main.cxx.in 2011-04-03 22:44:49.705998568 +0530
|
||||||
|
@@ -40,19 +40,20 @@
|
||||||
|
#include "pq@BPC_NAME@Initializer.h"
|
||||||
|
|
||||||
|
#ifdef Q_WS_X11
|
||||||
|
-#include <QPlastiqueStyle>
|
||||||
|
+#include <QStyle>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
|
int main(int argc, char* argv[])
|
||||||
|
{
|
||||||
|
-#ifdef Q_WS_X11
|
||||||
|
+//#ifdef Q_WS_X11
|
||||||
|
// Using motif style gives us test failures (and its ugly).
|
||||||
|
// Using cleanlooks style gives us errors when using valgrind (Trolltech's bug #179200)
|
||||||
|
// let's just use plastique for now
|
||||||
|
- QApplication::setStyle(new QPlastiqueStyle);
|
||||||
|
-#endif
|
||||||
|
+
|
||||||
|
+ //QApplication::setStyle(new QPlastiqueStyle);
|
||||||
|
+//#endif
|
||||||
|
|
||||||
|
// When playing tests, disable all effects.
|
||||||
|
if (getenv("DART_TEST_FROM_DART") ||
|
10
paraview-demo.patch
Normal file
10
paraview-demo.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- ParaView-3.8.0/Plugins/PointSprite/Examples/Rendering/Cxx/CMakeLists.txt.demo 2010-05-27 11:04:39.000000000 -0600
|
||||||
|
+++ ParaView-3.8.0/Plugins/PointSprite/Examples/Rendering/Cxx/CMakeLists.txt 2010-06-02 09:45:44.105517239 -0600
|
||||||
|
@@ -4,7 +4,3 @@
|
||||||
|
add_executable(${exe} PointSpriteDemo.cxx)
|
||||||
|
|
||||||
|
target_link_libraries(${exe} PointSprite_Rendering vtkIO)
|
||||||
|
-
|
||||||
|
-install(TARGETS ${exe}
|
||||||
|
- RUNTIME DESTINATION ${PROJECT_BINARY_DIR}
|
||||||
|
-)
|
3
paraview-rpmlintrc
Normal file
3
paraview-rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# paraview has *.so symbolic links to other files
|
||||||
|
# and these are mistaken by rpmlint to be devel files
|
||||||
|
addFilter("devel-file-in-non-devel-package")
|
18
paraview-sqldatabaseschema.patch
Normal file
18
paraview-sqldatabaseschema.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff -ur ParaView-3.10.0.orig//VTK/IO/vtkSQLDatabaseSchema.h ParaView-3.10.0//VTK/IO/vtkSQLDatabaseSchema.h
|
||||||
|
--- ParaView-3.10.0.orig//VTK/IO/vtkSQLDatabaseSchema.h 2011-03-10 00:01:44.000000000 +0530
|
||||||
|
+++ ParaView-3.10.0//VTK/IO/vtkSQLDatabaseSchema.h 2011-03-30 09:31:44.544000001 +0530
|
||||||
|
@@ -40,6 +40,14 @@
|
||||||
|
#ifndef __vtkSQLDatabaseSchema_h
|
||||||
|
#define __vtkSQLDatabaseSchema_h
|
||||||
|
|
||||||
|
+#ifdef TIME
|
||||||
|
+#undef TIME
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#ifdef DATE
|
||||||
|
+#undef DATE
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#include "vtkObject.h"
|
||||||
|
|
||||||
|
#include <cstdarg> // Because one method has a variable list of arguments
|
17
paraview.changes
Normal file
17
paraview.changes
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 3 12:25:39 UTC 2011 - badshah400@gmail.com
|
||||||
|
|
||||||
|
- Added paraview-default-qtstyle.patch to make paraview inherit
|
||||||
|
user-set qt-GUI style instead of always using Plastique
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 2 16:13:00 UTC 2011 - badshah400@gmail.com
|
||||||
|
|
||||||
|
- Added rpmlintrc file to suppress devel-file warnings for
|
||||||
|
required files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 31 00:30:36 UTC 2011 - badshah400@gmail.com
|
||||||
|
|
||||||
|
- Initial package (version 3.10.0)
|
||||||
|
|
159
paraview.spec
Normal file
159
paraview.spec
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
#
|
||||||
|
# spec file for package
|
||||||
|
#
|
||||||
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
Version: 3.10.0
|
||||||
|
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-sqldatabaseschema.patch badshah400@gmail.com --Patch to fix compilation problems with python enabled (patch came from upstream)
|
||||||
|
Patch0: paraview-sqldatabaseschema.patch
|
||||||
|
# PATCH-FIX-UPSTREAM paraview-demo.patch badshah400@gmail.com --Patch for PointSprite demo
|
||||||
|
Patch1: paraview-demo.patch
|
||||||
|
# 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}
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%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/
|
||||||
|
rm -rf /usr/src/packages/BUILD/ParaView-3.10.0/temp_dir/Plugins/PointSprite/PointSpriteDemo
|
||||||
|
|
||||||
|
%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
|
Loading…
x
Reference in New Issue
Block a user