[Bug 1021757] Use fc-cache /usr/share/fonts/<your font directory> instead of /usr/share/fonts

bugzilla at redhat.com bugzilla at redhat.com
Tue Oct 22 08:51:41 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=1021757

Tim Waugh <twaugh at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



--- Comment #1 from Tim Waugh <twaugh at redhat.com> ---
For the postuninstall scriptlet too?

Is there anything planned for the Fedora Project packaging guidelines to make
sure there are no regressions with this?

Does this change look correct?:

diff --git a/ghostscript-fonts.spec b/ghostscript-fonts.spec
index d66fbaa..c2cbc3f 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: 30%{?dist}
+Release: 31%{?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-31
+- Run fc-cache on our font directory, not the entire font collection
+  (bug #1021757).
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org>
- 5.50-30
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=2alktOSoqh&a=cc_unsubscribe


More information about the fonts-bugs mailing list