]> git.pld-linux.org Git - packages/OpenSceneGraph.git/blobdiff - OpenSceneGraph.spec
- adjusted patch for OpenCASCADE 7.8.0 libraries; release 3
[packages/OpenSceneGraph.git] / OpenSceneGraph.spec
index 3088ddf5dd6bd8c98f6773008b397b26a187f04d..0536c8597b0a014b760331ee7636741234e51bc3 100644 (file)
@@ -1,13 +1,14 @@
 # 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
@@ -22,7 +23,7 @@ Patch3:               %{name}-openexr3.patch
 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
@@ -40,7 +41,7 @@ BuildRequires:        collada-dom-devel
 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
@@ -71,7 +72,7 @@ BuildRequires:        xorg-lib-libXrandr-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
@@ -136,6 +137,7 @@ cd build
 %if "%{_lib}" == "libx32"
        -DLIB_POSTFIX=x32 \
 %endif
+       %{!?with_ffmpeg:-DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=1} \
        -DOSG_USE_LOCAL_LUA_SOURCE=OFF
 
 %{__make}
This page took 0.064402 seconds and 4 git commands to generate.