Accepting request 136090 from home:jsmeix:branches:Printing

fixed bnc#778879

OBS-URL: https://build.opensuse.org/request/show/136090
OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript-fonts?expand=0&rev=6
This commit is contained in:
Johannes Meixner 2012-09-26 13:43:08 +00:00 committed by Git OBS Bridge
parent d4d224a6bd
commit 1670f10fc3
2 changed files with 18 additions and 1 deletions

View File

@ -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 Tue Sep 25 14:58:06 CEST 2012 - jsmeix@suse.de

View File

@ -129,7 +129,9 @@ the documentation on Hershey fonts.
# There is nothing to "make" as the sources contain plain font files. # There is nothing to "make" as the sources contain plain font files.
%install %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: # see section "3.1 Fonts" in doc/Install.htm in the Ghostscript sources:
FONT_INSTALL_DIR=%{buildroot}%{_datadir}/ghostscript/fonts FONT_INSTALL_DIR=%{buildroot}%{_datadir}/ghostscript/fonts
install -d -m755 $FONT_INSTALL_DIR install -d -m755 $FONT_INSTALL_DIR
@ -150,6 +152,11 @@ do t1binary $PFA > ${PFA%%.*}.pfb
rm -vf $PFA rm -vf $PFA
done done
popd 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 # 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 # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
@ -240,6 +247,7 @@ exit 0
%files std %files std
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%verify(not md5 size mtime) %{_datadir}/ghostscript/fonts/fonts.* %verify(not md5 size mtime) %{_datadir}/ghostscript/fonts/fonts.*
%{_datadir}/fonts/ghostscript
%dir %{_datadir}/ghostscript %dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/fonts %dir %{_datadir}/ghostscript/fonts
%{_datadir}/ghostscript/fonts/fonts.dir %{_datadir}/ghostscript/fonts/fonts.dir