Name: ghostpdl Version: 8.71 Release: 2%{?dist} License: GPL v2 Group: Applications/Publishing Summary: PostScript, PDF and XPS interpreter and renderer %define urwfonts_ver 1.41 Source0: http://ghostscript.com/releases/ghostpdl-%{version}.tar.bz2 Source1: http://www.ctan.org/get/nonfree/support/ghostscript/AFPL/GhostPCL/urwfonts-%{urwfonts_ver}.tar.bz2 Patch0: %{name}-fedora-8.71.patch URL: http://www.artifex.com/downloads/ Requires: ghostpdl-urwfonts #BuildRequires: XFree86-devel BuildRequires: libpaper-devel BuildRequires: freeglut-devel BuildRequires: expat-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description GhostPDL is Artifex Software's implementation of the PCL-5(TM) and PCL-XL(TM) family of page description languages. For more information please see the documentation included with the source package. %package urwfonts Summary: URW fonts in TTF format for GhostPCL License: Alladin Free Public License Group: Applications/Publishing BuildArch: noarch Requires(post,postun): fontconfig ttmkfdir %description urwfonts URW fonts in TTF format for GhostPDL. %prep %setup -q -n ghostpdl-%{version} -a1 %patch0 -p1 %build pushd gs if [ ! -f gs/configure ]; then ./autogen.sh fi %configure popd %{__make} -j1 XCFLAGS="$CFLAGS" XLDFLAGS="--as-needed" SHARE_JPEG=1 %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/fonts/urw-ttf} install language_switch/obj/pspcl6 main/obj/pcl6 tools/pcl2pdfwr xps/obj/gxps $RPM_BUILD_ROOT%{_bindir} install urwfonts*/*.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/urw-ttf %clean rm -rf $RPM_BUILD_ROOT %post urwfonts { # mkfontscale /usr/share/fonts/default/ghostscript # mkfontdir /usr/share/fonts/default/ghostscript ttmkfdir /usr/share/fonts/urw-ttf fc-cache /usr/share/fonts } &> /dev/null || : %postun urwfonts { if [ "$1" = "0" ]; then fc-cache /usr/share/fonts fi } &> /dev/null || : %files %defattr(644,root,root,755) %doc README.txt doc/* %attr(755,root,root) %{_bindir}/* %files urwfonts %defattr(644,root,root,755) %{_datadir}/fonts/urw-ttf %changelog * Sun Aug 15 2010 Franta Hanzlik - initial Fedora release for ghostpdl 8.71 - inspired by ghostpcl-1.54 SPEC from PLD Linux