[ghostscript-fonts/f19: 2/2] Run fc-cache on our font directory, not the entire font collection (bug #1021757).

Tim Waugh twaugh at fedoraproject.org
Tue Oct 22 10:03:18 UTC 2013


commit b6648d8465f062c9ddb174fb4b03ad690f47114e
Author: Tim Waugh <twaugh at redhat.com>
Date:   Tue Oct 22 10:54:01 2013 +0100

    Run fc-cache on our font directory, not the entire font collection (bug #1021757).
    
    Resolves: rhbz#1021757

 ghostscript-fonts.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/ghostscript-fonts.spec b/ghostscript-fonts.spec
index a63e7c6..e839ea6 100644
--- a/ghostscript-fonts.spec
+++ b/ghostscript-fonts.spec
@@ -1,7 +1,7 @@
 Summary: Fonts for the Ghostscript PostScript interpreter
 Name: ghostscript-fonts
 Version: 5.50
-Release: 31%{?dist}
+Release: 32%{?dist}
 # Contacted Kevin Hartig, who agreed to relicense his fonts under the SIL Open Font 
 # License. Hershey fonts are under the "Hershey Font License", which is not what Fontmap 
 # says (Fontmap is wrong).
@@ -58,13 +58,13 @@ ln -sf %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript
 {
    mkfontscale %{fontdir}
    mkfontdir %{fontdir}
-   fc-cache %{_datadir}/fonts
+   fc-cache %{fontdir}
 } &> /dev/null || :
 
 %postun
 {
    if [ "$1" = "0" ]; then
-      fc-cache %{_datadir}/fonts
+      fc-cache %{fontdir}
    fi
 } &> /dev/null || :
 
@@ -80,6 +80,10 @@ rm -rf $RPM_BUILD_ROOT
 %ghost %verify(not md5 size mtime) %{fontdir}/fonts.scale
 
 %changelog
+* Tue Oct 22 2013 Tim Waugh <twaugh at redhat.com> - 5.50-32
+- Run fc-cache on our font directory, not the entire font collection
+  (bug #1021757).
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 5.50-31
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the fonts-bugs mailing list