[OpenSceneGraph/f14/master] - Add %{_fontdir} to OSG's font file search path.

corsepiu corsepiu at fedoraproject.org
Wed Dec 15 00:31:02 UTC 2010


commit 5a5832674a0123dddae04b523e1a7867de7efffe
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Wed Dec 15 01:29:26 2010 +0100

    - Add %{_fontdir} to OSG's font file search path.

 OpenSceneGraph.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/OpenSceneGraph.spec b/OpenSceneGraph.spec
index 347e062..d6edc62 100644
--- a/OpenSceneGraph.spec
+++ b/OpenSceneGraph.spec
@@ -9,7 +9,7 @@
 
 Name:           OpenSceneGraph
 Version:        %{apivers}
-Release:        3%{?dist}
+Release:        6%{?dist}
 Summary:        High performance real-time graphics toolkit
 
 Group:          Applications/Multimedia
@@ -53,6 +53,9 @@ BuildRequires:  gnuplot
 # OSG packaging madness ;)
 %define OSGSRCDIR       OpenSceneGraph-%{version}
 
+# According to the FPG, this should be defined, but it's not.
+%define _fontdir /usr/share/fonts
+
 %if "%{name}" == "OpenSceneGraph"
 Provides:       OpenSceneGraph2 = %{version}-%{release}
 %endif
@@ -70,6 +73,9 @@ for rapid development of graphics applications.
 %setup -q -c
 cd %{OSGSRCDIR}
 %{?PATCH0:%patch0 -p1}
+sed -i -e 's,\.:/usr/share/fonts/ttf:,.:%{_fontdir}:/usr/share/fonts/ttf:,' \
+src/osgText/Font.cpp \
+src/osgText/Font3D.cpp
 cd ..
 
 %build
@@ -382,6 +388,9 @@ Development files for OpenThreads.
 %{_includedir}/OpenThreads
 
 %changelog
+* Wed Dec 15 2010 Ralf Corsépius <corsepiu at fedoraproject.org> - 2.8.3-6
+- Add %%{_fontdir} to OSG's font file search path.
+
 * Thu Aug 19 2010 Rex Dieter <rdieter at fedoraproject.org> - 2.8.3-3
 - rebuild (poppler)
 


More information about the scm-commits mailing list