%define srcname OpenSceneGraph %define major 100 %define libname %mklibname %{name} %{major} %define devname %mklibname %{name} -d %define otname openthreads %define otsrcname OpenThreads %define otmajor 20 %define otlibname %mklibname %{otname} %{otmajor} %define otdevname %mklibname %{otname} -d Summary: A C++ scene graph API on OpenGL for real time graphics Name: openscenegraph Version: 3.2.1 Release: %mkrel 3 License: LGPLv2+ with exceptions Group: System/Libraries Source0: http://www.openscenegraph.org/downloads/developer_releases/%{srcname}-%{version}.zip # Upstream patch to fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765855#31 Patch1: openscenegraph-3.2.1-git-Fix-use-after-free-crash.patch Patch2: OpenSceneGraph-2.8.3-ffmpeg.patch URL: http://www.openscenegraph.org/ Provides: %{srcname} = %{version}-%{release} Obsoletes: OpenSceneGraph < 2.8.0-2 Requires: %{libname} >= %{version}-%{release} BuildRequires: cmake BuildRequires: gdal-devel BuildRequires: jpeg-devel BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(jasper) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(librsvg-2.0) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libxine) BuildRequires: pkgconfig(poppler-glib) BuildRequires: pkgconfig(zlib) BuildRequires: ungif-devel %description The Open Scene Graph is a cross-platform C++/OpenGL library for the real-time visualization. Uses range from visual simulation, scientific modeling, virtual reality through to games. Open Scene Graph employs good practices in software engineering through the use of standard C++, STL and generic programming, and design patterns. Open Scene Graph strives for high performance and quality in graphics rendering, portability, and extensibility. %files %doc AUTHORS.txt ChangeLog LICENSE.txt NEWS.txt README.txt %doc doc/* %{_bindir}/osg* %{_bindir}/present3D %package -n %{libname} Summary: A C++ scene graph API on OpenGL for real time graphics Group: System/Libraries Requires: %{otlibname} >= %{version}-%{release} %description -n %{libname} The Open Scene Graph is a cross-platform C++/OpenGL library for the real-time visualization. Uses range from visual simulation, scientific modeling, virtual reality through to games. Open Scene Graph employs good practices in software engineering through the use of standard C++, STL and generic programming, and design patterns. Open Scene Graph strives for high performance and quality in graphics rendering, portability, and extensibility. %files -n %{libname} %{_libdir}/libosg*.so.%{major} %{_libdir}/libosg*.so.%{version} %{_libdir}/osgPlugins-%{version}/ #------------------------------------------------------------------ %package -n %{devname} Summary: Development package for %srcname Group: Development/C++ Provides: %{name}-devel = %{version}-%{release} Provides: %{srcname}-devel = %{version}-%{release} Obsoletes: OpenSceneGraph-devel < 2.8.0-2 Obsoletes: openscenegraph-devel < 3.2.0-5 Requires: %{libname} >= %{version}-%{release} Requires: %{otdevname} >= %{version}-%{release} %description -n %{devname} This package contains development files for %srcname. %files -n %{devname} %{_includedir}/osg*/ %{_libdir}/libosg*.so %{_libdir}/pkgconfig/%{name}*.pc #------------------------------------------------------------------ %package -n %{otlibname} Summary: A lightweight C++ thread API Group: System/Libraries %description -n %{otlibname} This library is intended to provide a minimal & complete Object-Oriented thread interface for C++ programmers. It is loosely modeled on the Java thread API, and the POSIX Threads standards. %{otsrcname} is part of the %{srcname} project. %files -n %{otlibname} %{_libdir}/lib%{otsrcname}.so.%{otmajor} %{_libdir}/lib%{otsrcname}.so.%{version} #------------------------------------------------------------------ %package -n %{otdevname} Summary: Development package for %{otsrcname} Group: Development/C++ Provides: %{otname}-devel = %{version}-%{release} Provides: %{otsrcname}-devel = %{version}-%{release} Requires: %{otlibname} >= %{version}-%{release} %description -n %{otdevname} This package contains development files for %{otsrcname}. %files -n %{otdevname} %{_includedir}/%{otsrcname}/ %{_libdir}/lib%{otsrcname}.so %{_libdir}/pkgconfig/%{otname}.pc #------------------------------------------------------------------ %prep %setup -qn %{srcname}-%{version} %patch1 -p1 %patch2 -p0 %build %cmake %make %install %makeinstall_std -C build %changelog * Mon Dec 15 2014 akien <akien> 3.2.1-3.mga5 + Revision: 803228 - Add upstream patch to fix use-after-free crash * Sun Dec 14 2014 akien <akien> 3.2.1-2.mga5 + Revision: 803083 - Obsolete openscenegraph-devel renamed to lib(64)openscenegraph-devel * Sat Dec 13 2014 akien <akien> 3.2.1-1.mga5 + Revision: 802913 - Version 3.2.1 (OpenThreads major change from 13 to 20) (mga#14136) * Sat Dec 13 2014 akien <akien> 3.2.0-5.mga5 + Revision: 802908 - Reorder BRs and use pkgconfig when available - Proper libification of OpenSceneGraph: o OSG libraries in lib(64)openscenegraph100, devel in lib(64)openscenegraph-devel o OpenThreads library in lib(64)openthreads13, devel in lib(64)openthreads-devel * Wed Oct 15 2014 umeabot <umeabot> 3.2.0-4.mga5 + Revision: 748900 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 3.2.0-3.mga5 + Revision: 683241 - Mageia 5 Mass Rebuild * Sat Oct 19 2013 umeabot <umeabot> 3.2.0-2.mga4 + Revision: 536560 - Mageia 4 Mass Rebuild * Tue Sep 24 2013 fwang <fwang> 3.2.0-1.mga4 + Revision: 484679 - new version 3.2.0 * Mon Jun 03 2013 fwang <fwang> 3.0.1-7.mga4 + Revision: 436028 - rebuild for new libpng * Sun Jan 13 2013 umeabot <umeabot> 3.0.1-6.mga3 + Revision: 362138 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 25 2011 fwang <fwang> 3.0.1-5.mga2 + Revision: 187417 - rebuild for new tiff * Thu Nov 03 2011 obgr_seneca <obgr_seneca> 3.0.1-4.mga2 + Revision: 162069 - rebuild against new geos * Tue Sep 27 2011 obgr_seneca <obgr_seneca> 3.0.1-3.mga2 + Revision: 149655 - rebuild against new geos and changes in gdal * Tue Sep 27 2011 ovitters <ovitters> 3.0.1-2.mga2 + Revision: 149410 - rebuild for new poppler * Sun Sep 18 2011 fwang <fwang> 3.0.1-1.mga2 + Revision: 144814 - new version 3.0.1 * Wed Sep 14 2011 fwang <fwang> 3.0.0-4.mga2 + Revision: 143439 - rebuild for new libpng + ahmad <ahmad> - Rebuild against wxgtk2.8 with enabled catch_segvs * Wed Jul 20 2011 fwang <fwang> 3.0.0-2.mga2 + Revision: 127421 - maybe only gl is enough * Mon Jul 18 2011 fwang <fwang> 3.0.0-1.mga2 + Revision: 125925 - update file list - new version 3.0.0 + ahmad <ahmad> - Change libpoppler-*-devel BR to pkgconfig style * Thu Jun 16 2011 fwang <fwang> 2.8.5-1.mga2 + Revision: 108061 - linkage patch not needed - New version 2.8.5 * Wed Apr 20 2011 obgr_seneca <obgr_seneca> 2.8.3-2.mga1 + Revision: 89189 - rebuild agains new libgdal-1.8.0 * Sat Apr 16 2011 ennael <ennael> 2.8.3-1.mga1 + Revision: 86786 - clean spec file - imported package openscenegraph