opencascade 7.6.2-1 (znver1;x86_64) 2022-15307
9999

Status published
Submitter alexander [@T] mezon.ru
Platform rolling
Repository unsupported
URL https://abf.openmandriva.org/build_lists/235261
Packages
lib64opencascade-devel-7.6.2-1.znver1.binary
lib64opencascade7-7.6.2-1.znver1.binary
lib64opencascade7-debuginfo-7.6.2-1.znver1.debuginfo
opencascade-7.6.2-1.znver1.binary
opencascade-7.6.2-1.znver1.source
opencascade-debuginfo-7.6.2-1.znver1.debuginfo
opencascade-debugsource-7.6.2-1.znver1.binary
lib64opencascade-devel-7.6.2-1.x86_64.binary
lib64opencascade7-7.6.2-1.x86_64.binary
lib64opencascade7-debuginfo-7.6.2-1.x86_64.debuginfo
opencascade-7.6.2-1.x86_64.source
opencascade-7.6.2-1.x86_64.binary
opencascade-debuginfo-7.6.2-1.x86_64.debuginfo
opencascade-debugsource-7.6.2-1.x86_64.binary
Build Date 2022-09-27 14:01:35 +0000 UTC
Last Updated 2022-09-30 17:12:25.739860966 +0000 UTC
$ git diff --patch-with-stat --summary 86ae9f1c0d34476e4a8c48f2513cc8674b17514e..b65e0c4c9d7aefe38fec1d8931230bd2c0bfbbbb

 .abf.yml         |  2 +-
 opencascade.spec | 49 ++++++++++++++++++++++++++++++++++++++++++-------
 2 files changed, 43 insertions(+), 8 deletions(-)

diff --git a/.abf.yml b/.abf.yml
index b79599e..b746d45 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
 sources:
-  opencascade-7.6.1.tar.gz: de296626283d34b1d967f97005e97c64da8af162
+  opencascade-7.6.2.tar.gz: 7ae864cfa1f69091651283e3664ad1a803d52de1
diff --git a/opencascade.spec b/opencascade.spec
index dfd2fab..3a2d4ce 100644
--- a/opencascade.spec
+++ b/opencascade.spec
@@ -8,13 +8,22 @@
 %define _from_git 1
 
 %if %_from_git
-%define commit	d2abb6d844231cb8f29be6894440874a4700e4a5
+%define commit	bb368e271e24f63078129283148ce83db6b9670a
 %define shortcommit	%(c=%{commit}; echo ${c:0:7})
 %endif
 
+%bcond_with	draco
+%bcond_without	eigen
+%bcond_without	freeimage
+%bcond_with	fffmpeg
+%bcond_with	openvr
+%bcond_without	rapidjson
+%bcond_without	tbb
+%bcond_without	vtk
+
 Name:		opencascade
 Group:		Sciences/Physics
-Version:	7.6.1
+Version:	7.6.2
 Release:	1
 Summary:	3D modeling & numerical simulation
 License:	LGPLv2.1 with exceptions
@@ -37,18 +46,33 @@ Patch3:		opencascade-cmake.patch
 Patch4:		oce-7.5.0-clang.patch
 # (upstream)
 Patch100:	opencascade-7.5.0-fix_tbb.patch
+
 BuildRequires:	cmake
 BuildRequires:	doxygen
 BuildRequires: 	ninja
 BuildRequires:	bison
+%if %{with rapidjson}
+BuildRequires:  cmake(rapidjson)
+%endif
 BuildRequires:  cmake(Qt5)
 BuildRequires:  cmake(Qt5Core)
 BuildRequires:  cmake(Qt5Widgets)
 BuildRequires:  cmake(Qt5Quick)
 BuildRequires:  cmake(Qt5Xml)
 BuildRequires:  cmake(Qt5Sql)
+%if %{with vtk}
 BuildRequires:  cmake(vtk)
+%endif
+%if %{with eigen}
+BuildRequires:	eigen-devel
+%endif
+%if %{with ffmpeg}
+BuildRequires:	ffmpeg-devel
+%endif
 BuildRequires:	flex
+%if %{with freeimage}
+BuildRequires:	freeimage-devel
+%endif
 BuildRequires:	hdf5-devel
 BuildRequires:	mesa-common-devel
 BuildRequires:	pkgconfig(gl)
@@ -61,7 +85,9 @@ BuildRequires:	pkgconfig(freetype2)
 BuildRequires:	pkgconfig(ftgl)
 BuildRequires:	pkgconfig(tcl)
 BuildRequires:	pkgconfig(tk)
+%if %{with tbb}
 BuildRequires:  pkgconfig(tbb)
+%endif
 BuildRequires:  pkgconfig(xi)
 
 Requires:	tcl
@@ -149,18 +175,27 @@ edition to heavy industry.
 # FIXME as of 7.5.0, clang 13.0.0, fails to build with clang
 export CC=gcc
 export CXX=g++
+# FIXME: BUILD_RELEASE_DISABLE_EXCEPTIONS=OFF is needed by FreeCAD
+# https://github.com/FreeCAD/FreeCAD/issues/6200
 %cmake \
-	-DCMAKE_VERBOSE_MAKEFILE=OFF \
-	-DUSE_TBB:BOOL=ON \
-	-DUSE_VTK:BOOL=ON \
+	-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
+	-DBUILD_RELEASE_DISABLE_EXCEPTIONS:BOOL=OFF \
+	-DUSE_DRACO:BOOL=%{?with_draco:ON}%{!?with_draco:OFF} \
+	-DUSE_EIGEN:BOOL=%{?with_eigen:ON}%{!?with_eigen:OFF} \
+	-DUSE_FREEIMAGE:BOOL=%{?with_freimage:ON}%{!?with_freeimage:OFF} \
+	-DUSE_FFMPEG:BOOL=%{?with_ffmpeg:ON}%{!?with_ffmpeg:OFF} \
+	-DUSE_OPENVR:BOOL=%{?with_openvr:ON}%{!?with_openvr:OFF} \
+	-DUSE_RAPIDJSON:BOOL=%{?with_rapidjson:ON}%{!?with_rapidjson:OFF} \
+	-DUSE_TBB:BOOL=%{?with_tbb:ON}%{!?with_tbb:OFF} \
+	-DUSE_VTK:BOOL=%{?with_vtk:ON}%{!?with_vtk:OFF} \
 	-DINSTALL_VTK:BOOL=False \
 	-D3RDPARTY_VTK_LIBRARY_DIR:PATH=%{_libdir} \
-	-D3RDPARTY_VTK_INCLUDE_DIR:PATH=%{_includedir} \
-	-D3RDPARTY_VTK_INCLUDE_DIR=%{_includedir}/vtk \
+	-D3RDPARTY_VTK_INCLUDE_DIR:PATH=%{_includedir}/vtk \
 	-DINSTALL_DIR=%{buildroot}%{_prefix} \
 	-DINSTALL_DIR_LIB=%{_lib} \
 	-DINSTALL_DIR_CMAKE=%{_lib}/cmake/%{name} \
 	-G Ninja
+
 %ninja_build
 
 %install
Not Available

benbullard79 [@T] cox.netNo Comment.566d 13hrs
benbullard79 [@T] cox.netNo Comment.566d 12hrs