diff --git a/ghostscript-fonts.changes b/ghostscript-fonts.changes index 24ec04e..3bf52d9 100644 --- a/ghostscript-fonts.changes +++ b/ghostscript-fonts.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Sep 26 10:09:22 CEST 2012 - jsmeix@suse.de + +- Provide a link /usr/share/fonts/ghostscript which points to + /usr/share/ghostscript/fonts (the directory where Ghostscript + expects its fonts) to make the Ghostscript fonts also appear + in the directory /usr/share/fonts/ where applications + search for fonts (bnc#778879). + ------------------------------------------------------------------- Tue Sep 25 14:58:06 CEST 2012 - jsmeix@suse.de diff --git a/ghostscript-fonts.spec b/ghostscript-fonts.spec index b66463a..872f8a3 100644 --- a/ghostscript-fonts.spec +++ b/ghostscript-fonts.spec @@ -129,7 +129,9 @@ the documentation on Hershey fonts. # There is nothing to "make" as the sources contain plain font files. %install -# Install the fonts into the /usr/share/ghostscript/fonts/ directory, +# Install the fonts into the /usr/share/ghostscript/fonts/ directory +# which is the Ghostscript upstream standard directory where +# Ghostscript looks first and foremost for its fonts # see section "3.1 Fonts" in doc/Install.htm in the Ghostscript sources: FONT_INSTALL_DIR=%{buildroot}%{_datadir}/ghostscript/fonts install -d -m755 $FONT_INSTALL_DIR @@ -150,6 +152,11 @@ do t1binary $PFA > ${PFA%%.*}.pfb rm -vf $PFA done popd +# Provide a link to make the Ghostscript fonts also appear in the directory +# /usr/share/fonts/ where applications (including X11) search for fonts. +# A usr/share/fonts/ sub-directory does not exist in the buildroot: +install -d -m 755 %{buildroot}%{_datadir}/fonts +ln -s ../ghostscript/fonts %{buildroot}%{_datadir}/fonts/ghostscript # Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets @@ -240,6 +247,7 @@ exit 0 %files std %defattr(0644,root,root,0755) %verify(not md5 size mtime) %{_datadir}/ghostscript/fonts/fonts.* +%{_datadir}/fonts/ghostscript %dir %{_datadir}/ghostscript %dir %{_datadir}/ghostscript/fonts %{_datadir}/ghostscript/fonts/fonts.dir