%define otherver 6.0 Name: ghostscript-fonts Version: 8.11 Release: 2mamba Summary: Fonts and font metrics customarily distributed with Ghostscript Group: System/Fonts Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.ghostscript.com/doc/gnu/ Source0: http://kent.dl.sourceforge.net/sourceforge/gs-fonts/ghostscript-fonts-std-%{version}.tar.gz Source1: ftp://ftp.gnu.org/gnu/ghostscript/gnu-gs-fonts-other-%{otherver}.tar.gz License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildArch: noarch %description Fonts and font metrics customarily distributed with Ghostscript. Currently includes the 35 standard PostScript fonts and a grab-bag of others. %prep %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{_datadir}/ghostscript cd %{buildroot}%{_datadir}/ghostscript tar xzvf %{SOURCE0} tar xzvf %{SOURCE1} rm -f fonts/fonts.{dir,scale} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %dir %{_datadir}/ghostscript/fonts %{_datadir}/ghostscript/fonts/* #% pre #if [ $1 -eq 0 ] && [ -e /usr/share/ghostscript ]; then # # erase # pushd %{_datadir}/ghostscript/fonts >/dev/null # mkfontdir && mkfontscale 2>/dev/null #fi #: #% post #if [ $1 -eq 1 ]; then # # newinstall # pushd %{_datadir}/ghostscript/fonts >/dev/null # mkfontdir && mkfontscale 2>/dev/null # popd >/dev/null #fi #: #% postun #if [ $1 -eq 1 ] && [ -e /usr/share/ghostscript ]; then # # upgrade # pushd %{_datadir}/ghostscript/fonts >/dev/null # mkfontdir && mkfontscale 2>/dev/null #fi #: %changelog * Sat Jun 23 2007 Silvan Calarco 8.11-2mamba - remove requirement for Xorg - don't execute mkfontdir and mkfontscale * Tue Jun 20 2006 Stefano Cotta Ramusino 8.11-1qilnx - update to version 8.11 by autospec - architecture changed to noarch * Thu Feb 17 2005 Davide Madrisan 6.0-2qilnx - ghostscript-fonts requires Xorg (mkfontdir, mkfontscale) * Thu Jul 08 2003 Silvan Calarco 6.0-1qilnx - first build of Ghostscript-fonts