rpms/ghostscript-fonts/devel ghostscript-fonts.spec,1.14,1.15

Kristian Høgsberg (krh) fedora-extras-commits at redhat.com
Wed Jun 27 14:32:27 UTC 2007


Author: krh

Update of /cvs/pkgs/rpms/ghostscript-fonts/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13633

Modified Files:
	ghostscript-fonts.spec 
Log Message:
* Tue Jun 26 2007 Kristian Høgsberg <krh at redhat.com> - 5.50-17
- Drop chkfontpath dependency and use the catalogue font path mechanism.



Index: ghostscript-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ghostscript-fonts/devel/ghostscript-fonts.spec,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ghostscript-fonts.spec	7 Feb 2007 17:24:53 -0000	1.14
+++ ghostscript-fonts.spec	27 Jun 2007 14:31:51 -0000	1.15
@@ -1,7 +1,7 @@
 Summary: Fonts for the Ghostscript PostScript interpreter
 Name: ghostscript-fonts
 Version: 5.50
-Release: 16%{?dist}
+Release: 17%{?dist}
 License: Distributable
 Group: Applications/Publishing
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -9,13 +9,12 @@
 Source: http://ftp.gnu.org/gnu/ghostscript/gnu-gs-fonts-other-%{version}.tar.gz
 Requires: fontconfig
 Requires(post): /usr/bin/mkfontscale /usr/bin/mkfontdir
-Requires(post): /usr/sbin/chkfontpath
 Requires(post): fontconfig
-Requires(postun): /usr/sbin/chkfontpath
 Requires(postun): fontconfig
 BuildArchitectures: noarch
 
 %define fontdir %{_datadir}/fonts/default/ghostscript
+%define catalogue /etc/X11/fontpath.d
 
 %description
 Ghostscript-fonts contains a set of fonts that Ghostscript, a
@@ -32,12 +31,15 @@
 mkdir -p $RPM_BUILD_ROOT%{fontdir}
 cp -p fonts/* $RPM_BUILD_ROOT%{fontdir}
 
+# Install catalogue symlink
+mkdir -p $RPM_BUILD_ROOT%{catalogue}
+ln -sf %{fontdir} $RPM_BUILD_ROOT%{catalogue}/fonts-default
+
 %post
 {
    umask 133
    mkfontscale %{fontdir}
    `which mkfontdir` %{fontdir}
-   /usr/sbin/chkfontpath -q -a %{fontdir}
    fc-cache %{_datadir}/fonts
 } &> /dev/null || :
 
@@ -45,7 +47,6 @@
 {
    if [ "$1" = "0" ]; then
       fc-cache %{_datadir}/fonts
-      /usr/sbin/chkfontpath -q -r %{fontdir} || :
    fi
 } &> /dev/null || :
 
@@ -55,8 +56,13 @@
 %files
 %defattr(-,root,root,-)
 %{_datadir}/fonts/default/
+%dir %{catalogue}
+%{catalogue}/fonts-default
 
 %changelog
+* Tue Jun 26 2007 Kristian Høgsberg <krh at redhat.com> - 5.50-17
+- Drop chkfontpath dependency and use the catalogue font path mechanism.
+
 * Wed Feb  7 2007 Tim Waugh <twaugh at redhat.com> 5.50-16
 - Fixed URL again (bug #225794).
 - Fixed requires tags (bug #225794).




More information about the fedora-extras-commits mailing list