# TODO: nvtt
#
# Conditional build:
-%bcond_with fbx # Autodesk FBX SDK support (proprietary)
+%bcond_with fbx # Autodesk FBX SDK support (proprietary)
+%bcond_with ffmpeg # FFmpeg support, needs ffmpeg < 5
Summary: Open Scene Graph - real-time visualization library
Summary(pl.UTF-8): Open Scene Graph - biblioteka do wizualizacji
Name: OpenSceneGraph
Version: 3.6.5
-Release: 1
+Release: 3
License: OpenSceneGraph Public Licence (based on LGPL with exceptions)
Group: X11/Libraries
#Source0Download: https://github.com/openscenegraph/OpenSceneGraph/releases
URL: https://www.openscenegraph.org/index.php/33-openscenegraph/4-front-page
BuildRequires: Coin-devel
BuildRequires: EGL-devel
-BuildRequires: OpenCASCADE-devel
+BuildRequires: OpenCASCADE-devel >= 7.8.0
BuildRequires: OpenEXR-devel
BuildRequires: OpenGL-devel >= 2
BuildRequires: Qt5Core-devel >= 5
BuildRequires: curl-devel
BuildRequires: dcmtk-devel
%{?with_fbx:BuildRequires: fbxsdk-devel}
-BuildRequires: ffmpeg-devel
+%{?with_ffmpeg:BuildRequires: ffmpeg-devel}
BuildRequires: fontconfig-devel
BuildRequires: freetype-devel >= 2
BuildRequires: gdal-devel
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define specflags -std=c++11
+#define specflags -std=c++11
%description
The Open Scene Graph is a cross-platform C++/OpenGL library for the
%if "%{_lib}" == "libx32"
-DLIB_POSTFIX=x32 \
%endif
+ %{!?with_ffmpeg:-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=1} \
-DOSG_USE_LOCAL_LUA_SOURCE=OFF
%{__make}