diff --git a/OpenSceneGraph.spec b/OpenSceneGraph.spec index f9cdd19..9e85929 100644 --- a/OpenSceneGraph.spec +++ b/OpenSceneGraph.spec @@ -1,57 +1,88 @@ Name: OpenSceneGraph -Version: 3.4.0 +Version: 3.6.5 Release: 1mamba Summary: An open source high performance 3D graphics toolkit Group: Applications/Graphics Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.openscenegraph.org/projects/osg -Source: http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-%{version}/source/OpenSceneGraph-%{version}.zip +URL: http://trac.openscenegraph.org/projects/osg/ +Source: https://github.com/openscenegraph/OpenSceneGraph/archive/refs/tags/OpenSceneGraph-%{version}.tar.gz Patch0: %{name}-2.9.7-ffmpeg-0.6.1.patch License: OSGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libGL-devel BuildRequires: libSDL-devel BuildRequires: libX11-devel +BuildRequires: libXinerama-devel BuildRequires: libXrandr-devel BuildRequires: libavcodec-ffmpeg-devel BuildRequires: libavdevice-ffmpeg-devel BuildRequires: libavformat-ffmpeg-devel +BuildRequires: libavresample-ffmpeg-devel BuildRequires: libavutil-ffmpeg-devel BuildRequires: libcairo-devel +BuildRequires: libcoin-devel BuildRequires: libcurl-devel BuildRequires: libdcmtk-devel +BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libgdal-devel BuildRequires: libgdk-pixbuf-devel BuildRequires: libgif-devel BuildRequires: libglib-devel -BuildRequires: libilmbase-devel +BuildRequires: libglvnd-devel +BuildRequires: libgst-plugins-base-devel +BuildRequires: libgstreamer-devel +BuildRequires: libicu-devel BuildRequires: libjasper-devel BuildRequires: libjpeg-devel -BuildRequires: libopenexr-devel +BuildRequires: libnsl-devel +BuildRequires: libopenssl-devel BuildRequires: libpng-devel BuildRequires: libpoppler-glib-devel -BuildRequires: libqt5-devel BuildRequires: librsvg-devel BuildRequires: libstdc++6-devel +BuildRequires: libswresample-ffmpeg-devel BuildRequires: libswscale-ffmpeg-devel BuildRequires: libtiff-devel BuildRequires: libvncserver-devel -BuildRequires: libxine-devel +BuildRequires: libwrap-devel +BuildRequires: libxml2-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END +BuildRequires: libdcmtk-devel >= 3.6.6 +BuildRequires: dcmtk >= 3.6.6 +BuildRequires: libgdal-devel >= 3.3.0 BuildRequires: cmake -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: libosg = %{?epoch:%epoch:}%{version}-%{release} %description -An open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well established as the world leading scene graph technology, used widely in the vis-sim, space, scientific, oil-gas, games and virtual reality industries. +OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well established as the world leading scene graph technology, used widely in the vis-sim, space, scientific, oil-gas, games and virtual reality industries. + +%package -n libosg +Group: System/Libraries +Summary: Shared libraries provided by %{name} + +%description -n libosg +OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well established as the world leading scene graph technology, used widely in the vis-sim, space, scientific, oil-gas, games and virtual reality industries. +This package contains shared libraries for %{name}. + +%package -n libosg-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: libosg = %{?epoch:%epoch:}%{version}-%{release} + +%description -n libosg-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package %prep -%setup -q +%setup -q -n OpenSceneGraph-OpenSceneGraph-%{version} +#-D -T +#:<< _EOF #%patch0 -p1 %define minver %(echo %version | cut -d. -f2) @@ -63,7 +94,13 @@ fi : %build -%cmake -d build +#:<< _EOF +%cmake -d build \ +\ +%ifarch x86_64 aarch64 + -DLIB_POSTFIX=64 +%endif + %make %install @@ -73,6 +110,9 @@ fi %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%post -n libosg -p /sbin/ldconfig +%postun -n libosg -p /sbin/ldconfig + %files %defattr(-,root,root) %{_bindir}/osgarchive @@ -81,16 +121,29 @@ fi %{_bindir}/osgversion %{_bindir}/osgviewer %{_bindir}/present3D -%{_includedir}/osg*/* -%{_includedir}/OpenThreads/* -%{_libdir}/libOpenThreads.so* -%{_libdir}/libosg*.so* + +%files -n libosg +%defattr(-,root,root) +%{_libdir}/libOpenThreads.so.* +%{_libdir}/libosg*.so.* %{_libdir}/osgPlugins-%{version}/*.so +%doc AUTHORS.txt LICENSE.txt + +%files -n libosg-devel +%defattr(-,root,root) +%dir %{_includedir}/osg* +%{_includedir}/osg*/* +%dir %{_includedir}/OpenThreads +%{_includedir}/OpenThreads/* %{_libdir}/pkgconfig/openscenegraph*.pc %{_libdir}/pkgconfig/openthreads.pc -%doc ChangeLog README.txt +%{_libdir}/libOpenThreads.so +%{_libdir}/libosg*.so %changelog +* Mon Jun 21 2021 Silvan Calarco 3.6.5-1mamba +- update to 3.6.5 + * Fri Feb 12 2016 Silvan Calarco 3.4.0-1mamba - update to 3.4.0 diff --git a/README.md b/README.md index 29b18f7..e2b7270 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # OpenSceneGraph -An open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well established as the world leading scene graph technology, used widely in the vis-sim, space, scientific, oil-gas, games and virtual reality industries. +OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modelling. Written entirely in Standard C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well established as the world leading scene graph technology, used widely in the vis-sim, space, scientific, oil-gas, games and virtual reality industries.