Summary: Fonts for the Ghostscript PostScript interpreter Name: ghostscript-fonts Version: 5.50 Release: 19%{?dist} License: Distributable Group: Applications/Publishing BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) URL: http://www.gnu.org/software/ghostscript/ Source: http://ftp.gnu.org/gnu/ghostscript/gnu-gs-fonts-other-%{version}.tar.gz BuildArch: noarch BuildRequires: xorg-x11-font-utils %define fontdir %{_datadir}/fonts/default/ghostscript %define catalogue /etc/X11/fontpath.d %description Ghostscript-fonts contains a set of fonts that Ghostscript, a PostScript interpreter, uses to render text. These fonts are in addition to the fonts shared by Ghostscript and the X Window System. %prep %setup -q -c ghostscript-fonts-%{version} %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{fontdir} cp -p fonts/* $RPM_BUILD_ROOT%{fontdir} # Create fonts.[scale|dir] /usr/bin/mkfontscale $RPM_BUILD_ROOT%{fontdir} /usr/bin/mkfontdir $RPM_BUILD_ROOT%{fontdir} # Install catalogue symlink mkdir -p $RPM_BUILD_ROOT%{catalogue} ln -sf ../../..%{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript %post if [ -x %{_bindir}/fc-cache ] ; then %{_bindir}/fc-cache -f %{fontdir} || : fi %postun if [ "$1" = "0" ] ; then if [ -x %{_bindir}/fc-cache ] ; then %{_bindir}/fc-cache -f %{fontdir} || : fi fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{fontdir}/*.afm %{fontdir}/*.gsf %{fontdir}/*.pfa %{fontdir}/*.pfm %{fontdir}/fonts.dir %{fontdir}/fonts.scale %dir %{catalogue} %{catalogue}/default-ghostscript %changelog * Wed Nov 28 2007 Terje Rosten - 5.50-19 - Remove req. on fontconfig and mkfont[scale|dir] - Only run fc-cache if installed - Build and ship fonts.[dir|scale] files - Make symlink relative * Fri Aug 10 2007 Kristian Høgsberg - 5.50-18 - Change link name to be default-ghostscript. * Tue Jun 26 2007 Kristian Høgsberg - 5.50-17 - Drop chkfontpath dependency and use the catalogue font path mechanism. * Wed Feb 7 2007 Tim Waugh 5.50-16 - Fixed URL again (bug #225794). - Fixed requires tags (bug #225794). - Preserve timestamps on installed files (bug #225794). - Added empty %%build section (bug #225794). - Use FHS macros for file manifest (bug #225794). - Fixed summary (bug #225794). - Fixed description (bug #225794). - Fixed license (bug #225794). * Tue Feb 6 2007 Tim Waugh 5.50-15 - Fixed URL (bug #225794). - Fixed build root tag (bug #225794). - This package does not require ghostscript (bug #225794). * Fri Dec 15 2006 Tim Waugh 5.50-14 - Copied post/postun scriptlets from urw-fonts (bug #203369). * Wed Jul 12 2006 Jesse Keating - 5.50-13.1.1 - rebuild * Fri Dec 09 2005 Jesse Keating - rebuilt * Fri Sep 3 2004 Tim Waugh 5.50-13 - Own /usr/share/fonts/default (bug #131650). * Tue Jun 15 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Thu Jan 22 2004 Tim Waugh 5.50-10 - Rebuilt. (The 8.11 package which briefly appeared in rawhide should not be used.) Bug #99323, bug #113866. * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Nov 20 2002 Tim Powers - rebuild in latest collinst * Mon Sep 2 2002 Owen Taylor - Run /usr/bin/fc-cache in the %%post * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Wed Jan 09 2002 Tim Powers - automated rebuild * Thu Jul 13 2000 Prospector - automatic rebuild * Sun Jun 18 2000 Matt Wilson - rebuild for next release * Mon Feb 14 2000 Bernhard Rosenkraenzer - 5.50 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 3) * Wed Feb 24 1999 Preston Brown - Injected new description and group. * Wed Jan 13 1999 Preston Brown - renamed package to be consistent with new ghostscript. * Fri Nov 13 1998 Preston Brown - removed the std fonts...now shared between X11 and gs with URW fonts pkg. * Thu Jul 2 1998 Jeff Johnson - update to 4.03. * Mon May 04 1998 Erik Troan - set the owner and group of all of the files to 0.0 * Tue Sep 23 1997 Erik Troan - made a noarch package