File ghostscript-mini.spec of Package ghostscript-library

#
# spec file for package ghostscript-mini (Version 8.62)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           ghostscript-mini
%if "%name" != "ghostscript-mini"
BuildRequires:  cups-devel cups-libs dos2unix ed gcc-c++ glib2-devel libpng-devel libtiff-devel libxml2-devel t1utils xorg-x11-devel zlib-devel
%if %suse_version > 1020
BuildRequires:  fdupes flex libexpat-devel libjasper-devel libopenssl-devel pkg-config
%else
BuildRequires:  expat libjasper openssl-devel pkgconfig
%endif
%if %suse_version > 1010
BuildRequires:  xorg-x11-fonts
%else
BuildRequires:  xorg-x11
%endif
BuildRequires:  freetype2-devel
%else
BuildRequires:  ed libpng-devel zlib-devel
%if %suse_version > 1020
BuildRequires:  pkg-config
%else
BuildRequires:  pkgconfig
%endif
%endif
Url:            http://www.ghostscript.com/
Group:          System/Libraries
Provides:       ghostscript gs gs_lib pstoraster ghostscript_any ghostscript-serv
Obsoletes:      gs_lib ghostscript-serv
%if "%name" != "ghostscript-mini"
Suggests:       hplip-hpijs
Recommends:     ghostscript-omni ghostscript-fonts-other
Requires:       ghostscript-fonts-std
Conflicts:      ghostscript-mini
%else
Provides:       ghostscript-library ghostscript-fonts-std
%endif
AutoReqProv:    on
%if "%name" != "ghostscript-mini"
Summary:        SuSE internal replacement for ghostscript-library and ghostscript-any (Ghostscript)
%else
Summary:        SuSE internal replacement for ghostscript-library and ghostscript-any (Ghostscript)
%endif
Version:        8.62
Release:        21
License:        GPL v2 or later
Source0:        ghostscript-8.62.tar.bz2
Source1:        ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/current/ghostscript-fonts-std-8.11.tar.bz2
Source2:        ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ghostscript-fonts-other-6.0.tar.bz2
Source3:        ftp://ftp.kapella.gpi.ru/pub/cyrillic/psfonts/gs_rusfonts.tar.bz2
Source4:        fonts.scale.nimbus-sans-condensed
Source5:        ghostscript-8.62-patches.tar.bz2
Source9:        epson740.tar.bz2
Source10:       http://surfnet.dl.sourceforge.net/sourceforge/omniprint/Omni-0.9.2.tar.bz2
Source11:       http://surfnet.dl.sourceforge.net/sourceforge/gimp-print/gimp-print-4.2.7.tar.bz2
Source12:       ftp.gnu.org:/pub/gnu/ghostscript/jpegsrc.v6b.tar.bz2
Source20:       gdevcd8-chp2200.c.bz2
Source21:       gdevcd8-cdj880.c.bz2
Source22:       gdevbff.c.bz2
Source23:       gdev820c.c.bz2
Source24:       hpdj-2.6.tar.bz2
Source40:       hpijs.list.bz2
Source41:       drivers.norm
Source44:       drivers.mini
Source50:       glib-config
Source51:       make.catalog
Source52:       make.lost
Source60:       catalog.devices
Source61:       rpmlintrc
Patch0:         ghostscript-8.62.dif
Patch1:         ghostscript-8.60-pdf.dif
Patch2:         ghostscript-8.57-sgirdb.dif
Patch3:         ghostscript-8.61-x11.dif
Patch4:         ghostscript-8.62-bjc.dif
Patch5:         ghostscript-8.60-alignment.dif
Patch6:         ghostscript-8.61-broken64.dif
Patch7:         ghostscript-8.60-cgmout.dif
Patch8:         ghostscript-8.60-cljet5.dif
Patch9:         ghostscript-8.60-cmap.dif
Patch10:        ghostscript-8.62-freetype2.dif
Patch11:        ghostscript-8.60-gsj_update.dif
Patch12:        ghostscript-8.61-inferno.dif
Patch13:        ghostscript-8.61-pipe.dif
Patch14:        ghostscript-8.60-ppd.dif
Patch15:        ghostscript-8.60-truetype.dif
Patch16:        ghostscript-8.60-runlibfileifexists.dif
Patch17:        ghostscript-8.61-dmpr.dif
Patch18:        ghostscript-8.61-stroke-loop.dif
Patch19:        ghostscript-8.62-ijs.dif
Patch20:        ghostscript-8.60-bbox.dif
Patch21:        ghostscript-8.62-echogs.patch
# Currently not applied, does not fit into revision 8594+
Patch22:        ghostscript-8.62-cjk.patch
Patch23:        ghostscript-8.62-cos_type.dif
Patch24:        ghostscript-fonts-std-8.11.patch
Patch25:        Omni-0.9.2.dif.bz2
Patch26:        hpdj-2.6-gs8.60.dif
Patch30:        gimp-print-4.2.7.dif
Patch31:        gimp-print-4.2.7-pcl.dif
Patch32:        gimp-print-4.2.7-epson_horizontal_adjustment.patch
Patch33:        gimp-print-4.2.7-debug.dif
Patch34:        gimp-print-4.2.7-nb.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1010
%define xfontdir   /usr/share/fonts
%define xlibdir    /usr/%{_lib}
%define fonts      /usr/share/fonts/truetype:/usr/share/fonts/Type1:/usr/share/fonts/CID
%else
%define xfontdir   /usr/X11R6/lib/X11/fonts
%define xlibdir    /usr/X11R6/%{_lib}
%define fonts      /usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/Type1:/usr/X11R6/lib/X11/fonts/CID
%endif
%define buildsys   %{_target_cpu}-suse-%{_build_os}
%global gsver      %{version}

%description
SuSE internal replacement for ghostscript-library and ghostscript-any
(Ghostscript)



Authors:
--------
    Peter Deutsch <ghost@aladdin.com>
    Martin Lottermoser <Martin.Lottermoser@mch.sni.de>
    Pierre-Olivier Gaillard <pierre.gaillard@hol.fr>
    Gunther Hess <gunther@elmos.de>
    Yves Arrouye <Yves.Arrouye@marin.fdn.fr>
    and many others

%if "%name" != "ghostscript-mini"

%package     -n ghostscript-x11
License:        GPL v2 or later
Conflicts:      ghostscript-vga ghostscript-both
PreReq:         coreutils
Requires:       ghostscript-library
Summary:        Ghostscript for the X Window System
Group:          Productivity/Publishing/PS
Provides:       ghostscript_any gs_x11 ghostscript_x11
Obsoletes:      gs_x11
AutoReqProv:    on

%description -n ghostscript-x11
If you plan to preview PostScript documents under the X Window System
you need to install this.



Authors:
--------
    Peter Deutsch <ghost@aladdin.com>
    Martin Lottermoser <Martin.Lottermoser@mch.sni.de>
    Pierre-Olivier Gaillard <pierre.gaillard@hol.fr>
    Gunther Hess <gunther@elmos.de>
    Yves Arrouye <Yves.Arrouye@marin.fdn.fr>
    and many others

%package     -n ghostscript-fonts-std
License:        GPL v2 or later
Summary:        Standard Fonts for Ghostscript
PreReq:         coreutils %suseconfig_fonts_prereq
Group:          Productivity/Publishing/PS
Provides:       gs_fonts
Obsoletes:      gs_fonts

%description -n ghostscript-fonts-std
The necessary fonts for the PostScript interpreter Ghostscript.  The
URW fonts (URW Software, Poppenbuetteler Bogen 29A, D-22399 Hamburg,
Germany).



Authors:
--------
    Peter Deutsch <ghost@aladdin.com>
    Martin Lottermoser <Martin.Lottermoser@mch.sni.de>
    Pierre-Olivier Gaillard <pierre.gaillard@hol.fr>
    Gunther Hess <gunther@elmos.de>
    Yves Arrouye <Yves.Arrouye@marin.fdn.fr>
    and many others

%package     -n ghostscript-fonts-other
License:        GPL v2 or later
Summary:        Optional fonts for Ghostscript
Group:          Productivity/Publishing/PS
Provides:       gs_fonto
Obsoletes:      gs_fonto

%description -n ghostscript-fonts-other
Some useful fonts for the Ghostscript PostScript interpreter.



Authors:
--------
    Peter Deutsch <ghost@aladdin.com>
    Martin Lottermoser <Martin.Lottermoser@mch.sni.de>
    Pierre-Olivier Gaillard <pierre.gaillard@hol.fr>
    Gunther Hess <gunther@elmos.de>
    Yves Arrouye <Yves.Arrouye@marin.fdn.fr>
    and many others

%package     -n ghostscript-fonts-rus
License:        GPL v2 or later
Summary:        Russian Fonts for Ghostscript
Group:          Productivity/Publishing/PS
Provides:       gs_fontr
Obsoletes:      gs_fontr
Provides:       locale(ghostscript-library:ru;bg)

%description -n ghostscript-fonts-rus
Russian fonts for Ghostscript.



Authors:
--------
    Eugene V. Demidov <jack@gpi.ru>

%package     -n ghostscript-omni
License:        GPL v2 or later; LGPL v2.1 or later
Summary:        Omni Printer Drivers for Ghostscript
PreReq:         ghostscript-library
Group:          Productivity/Publishing/PS

%description -n ghostscript-omni
The Omni printer driver provides support for over 450 printers using
the Ghostscript framework. In addition, it provides a model for
dynamically loading printer drivers, creating new devices by editing
device description files, and simplifies new printer driver development
by allowing for the subclassing of previous device features.



Authors:
--------
    Mark Hamzy <hamzy@us.ibm.com>
    Mark VanderWiele <markv@us.ibm.com>
    Pete Zannucci <pzaan@us.ibm.com>

%if %suse_version > 1020

%package     -n ghostscript-ijs-devel
License:        GPL v2 or later
Summary:        IJS development kit
PreReq:         ghostscript-library
Provides:       ghostscript-library:/usr/bin/ijs-config
Group:          Development/Libraries/C and C++

%description -n ghostscript-ijs-devel
Package includes the ijs-config script together with the required
header C files and the static ijs client library.



Authors:
--------
    Peter Deutsch <ghost@aladdin.com>
    Martin Lottermoser <Martin.Lottermoser@mch.sni.de>
    Pierre-Olivier Gaillard <pierre.gaillard@hol.fr>
    Gunther Hess <gunther@elmos.de>
    Yves Arrouye <Yves.Arrouye@marin.fdn.fr>
    and many others

%endif
%if %suse_version > 1030

%package     -n ghostscript-devel
License:        GPL v2 or later
Summary:        Ghostscript API header
Requires:       ghostscript-library = %version
Group:          Development/Libraries/C and C++

%description -n ghostscript-devel
Package includes the header together with the required link to the
shared library libgs.



Authors:
--------
    Peter Deutsch <ghost@aladdin.com>
    Martin Lottermoser <Martin.Lottermoser@mch.sni.de>
    Pierre-Olivier Gaillard <pierre.gaillard@hol.fr>
    Gunther Hess <gunther@elmos.de>
    Yves Arrouye <Yves.Arrouye@marin.fdn.fr>
    and many others

%endif

%package -n libgimpprint
License:        GPL v2 or later
Version:        4.2.7
Release:        272
Summary:        Gimp-Print libraries
Group:          Development/Libraries/C and C++

%description -n libgimpprint
Libraries to print with The GIMP



Authors:
--------
    Robert Krawitz <rlk@alum.mit.edu>

%package -n libgimpprint-devel
License:        GPL v2 or later
Version:        4.2.7
Release:        272
PreReq:         %install_info_prereq
Requires:       libgimpprint = %{version}
Requires:       glibc-devel
Summary:        Gimp-Print Include Files
Group:          Development/Libraries/C and C++

%description -n libgimpprint-devel
This package provides the Gimp-Print include files.



Authors:
--------
    Robert Krawitz <rlk@alum.mit.edu>

%endif
#
#

%prep
%setup -q -n ghostscript-%gsver -b 5 -a 9 -a 10 -a 11 -a 12
for p in ../ghostscript-%gsver-patches/*
do
    test -e $p || continue
    echo Patch $p
    patch -s -p2 < $p
    find -name '*.orig' | xargs -r rm -f
done
#
# hplip drivers available with jis interface
ln -sf %{S:40} .
#
# Driver addons and replacments
test -f contrib/gdevcd8-chp2200.c || bzip2 -dc %{S:20} > contrib/gdevcd8-chp2200.c
test -f contrib/gdevcd8-cdj880.c  || bzip2 -dc %{S:21} > contrib/gdevcd8-cdj880.c
test -f contrib/gdevbff.c         || bzip2 -dc %{S:22} > contrib/gdevbff.c
test -f contrib/gdev820c.c        || bzip2 -dc %{S:23} > contrib/gdev820c.c
#
# The old hpdj driver from Martin Lottermoser (successor is pcl3)
mkdir hpdj
pushd hpdj/
    bzip2 -dc %{S:24} | tar Oxf - hpdj-2.6/hpdj.tar | tar xvf -
    mv NEWS NEWS.hpdj
    mv pclcomp.c   pclcomp.c.bak
    mv pagecount.c pagecount.c.bak
popd
%patch26 -p0 -b .hpdj
ln -sf $PWD/hpdj/*.[ch] contrib/
ln -s  $PWD/hpdj/*.1    man/
#
# Link the .upp's for stc into library path
for upp in $PWD/epson740/*.upp
do
    test -e $upp			  || continue
    nupp=${upp##*/}
    test ! -e $PWD/contrib/uniprint/$nupp || continue
    test ! -e $PWD/lib/$nupp		  || continue
    ln -sf $PWD/epson740/*.upp lib/
done
#
# OMNI driver
%patch25 -p0 -b .Omni
#
# Driver STP from gimp-print 4.2.7
%patch30 -p0 -b .stp
%patch31 -p0 -b .stppcl
%patch32 -p0 -b .escp2offset
%patch33 -p0 -b .stpdbg
%patch34 -p0 -b .nb
ln -sf gimp-print-4.2.7 stp
ln -sf $PWD/stp/src/ghost/*.[ch]   contrib/
ln -sf $PWD/stp/src/ghost/gs-stp.1 man/
rename no nb gimp-print-4.2.7/po/no.*
#
# Main ghostscript
%patch1  -p0 -b .pdf
%patch2  -p0 -b .sgirdb
%patch3  -p0 -b .x11
%patch4  -p0 -b .bjc
%patch5  -p0 -b .alignment
%patch6  -p0 -b .broken64
%patch7  -p0 -b .cgmout
%patch8  -p0 -b .cljet5
%patch9  -p0 -b .cmap
%patch10 -p0 -b .freetype2
%patch11 -p0 -b .gsj_update
%patch12 -p0 -b .inferno
%patch13 -p0 -b .pipe
%patch14 -p0 -b .ppd
%patch15 -p0 -b .truetype
%patch16 -p0 -b .rlfie
%patch17 -p0 -b .dmpr
%patch18 -p0 -b .stroke
%patch19 -p0 -b .ijs
%patch20 -p0 -b .bbox
%patch21 -p1 -b .echogs
#%patch22 -p0 -b .cjk
%patch23 -p0 -b .cos_type
%patch0  -p0

%build
  test ! -f /.buildenv || . /.buildenv
#
  LANG=POSIX
  LC_CTYPE=POSIX
  export LANG LC_CTYPE
#
%ifarch s390 s390x
  RPM_OPT_FLAGS="${RPM_OPT_FLAGS//-O[123]/-O1}"
%endif
#
  DEBUG=""
# DEBUG="-g3 -DDEBUG"
  LATECFLAGS=""
  LATECXXFLAGS=""
  cflags ()
  {
      local flag=$1; shift
      case "${RPM_OPT_FLAGS}" in
      *${flag}*) return
      esac
      if test -n "$1" && gcc $flag -S -o /dev/null -xc   /dev/null > /dev/null 2>&1 ; then
	  local var=$1; shift
	  eval $var=\${$var:+\$$var\ }$flag
      fi
      if test -n "$1" && gcc $flag -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1 ; then
	  local var=$1; shift
	  eval $var=\${$var:+\$$var\ }$flag
      fi
  }
  cflags -fno-const-strings   LATECFLAGS LATECXXFLAGS
  cflags -Wno-write-strings   LATECFLAGS LATECXXFLAGS
  cflags -Wno-return-type     LATECFLAGS LATECXXFLAGS
  cflags -Wno-unknown-pragmas LATECFLAGS LATECXXFLAGS
  cflags -Wno-pointer-sign    LATECFLAGS
  cflags -fstack-protector    LATECFLAGS LATECXXFLAGS
    CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -D_GNU_SOURCE -pipe ${DEBUG} ${LATECFLAGS}"
  CXXFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing -fPIC -D_GNU_SOURCE -pipe ${DEBUG} ${LATECXXFLAGS}"
%if "%name" != "ghostscript-mini"
  GLIB_CONFIG=%{S:50}
  GLIBOPT="$(/bin/sh %{S:50} --cflags)"
  EXTRADEVS='$(GLD)posync.dev $(GLD)gsnogc.dev $(GLD)async.dev'
  EXTEND_NAMES=2
%else
  GLIBOPT=""
  EXTRADEVS=""
  EXTEND_NAMES=0
%endif
  FT_BRIDGE=1
  FT_CFLAGS="$CFLAGS -include %{_includedir}/ft2build.h"
  FT_LIB_EXT=.so
  FT_ROOT=%_prefix
  FT_SUB=/freetype2
  PATH=${PATH}:${RPM_SOURCE_DIR}
  PKG_CONFIG_PATH=%{_libdir}/pkgconfig:/opt/gnome/%{_lib}/pkgconfig
%if "%name" != "ghostscript-mini"
  export FT_BRIDGE FT_CFLAGS FT_LIB_EXT FT_ROOT FT_SUB
%endif
  export CFLAGS CXXFLAGS DEBUG GLIBOPT GLIB_CONFIG PATH PKG_CONFIG_PATH EXTRADEVS EXTEND_NAMES
%if "%name" != "ghostscript-mini"
# Just in case of shared X11 and/or VGA support
  STATIC_DEVS=""
  SHARED_DEVS="obj/X11.so"
# Just in case of shared X11 and VGA support
# STATIC_DEVS="sxlcrt"
# SHARED_DEVS="obj/X11.so obj/lvga256.so obj/vgalib.so"
# Just in case of shared VGA support
# STATIC_DEVS="sxlcrt"
# SHARED_DEVS="obj/lvga256.so obj/vgalib.so"
# Just in case of linked in X11 support
# STATIC_DEVS="x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8"
# STATIC_DEVS="$STATIC_DEVS x11gray2 x11gray4 x11mono"
# STATIC_DEVS="$STATIC_DEVS x11rg16x x11rg32x x11_ x11alt_"
# SHARED_DEVS=""
# Just in case of linked in VGA+X11 support
# STATIC_DEVS="x11 x11alpha x11cmyk x11cmyk2 x11cmyk4 x11cmyk8"
# STATIC_DEVS="$STATIC_DEVS x11gray2 x11gray4 x11mono"
# STATIC_DEVS="$STATIC_DEVS x11rg16x x11rg32x x11_ x11alt_"
# STATIC_DEVS="$STATIC_DEVS lvga256 vgalib sxlcrt"
# SHARED_DEVS=""
# Just in case of linked in VGA support
# STATIC_DEVS="lvga256 vgalib sxlcrt"
# SHARED_DEVS=""
  STATIC_DEVS="$(for x in ${STATIC_DEVS}; do echo '$(DD)'$x.dev; done)"
%endif
#
# Make some scripts executable
  chmod +x %{S:50} %{S:51} %{S:52}
#
# Remove local libraries, we use system libs if possible
  rm -rf zlib
  rm -rf libpng
  rm -rf jpeg
# Do not remove jpeg-6b,local version is hacked for gs
# Do not remove jasper, local version is hacked for gs
#
# Remove broken pstoraster script
  find . -name pstoraster | xargs -r rm -vf
#
# Main configuration
  autoreconf -fi
  ./configure --build=%{buildsys}	\
	    --prefix=%{_prefix}		\
	    --bindir=%{_bindir}		\
	    --mandir=%{_mandir}		\
	    --datadir=%{_datadir}	\
	    --infodir=%{_infodir}	\
	    --libdir=%{_libdir}		\
	    --with-fontpath=%{fonts}	\
	    --with-libiconv=maybe	\
%if "%name" != "ghostscript-mini"
	    --with-ijs			\
	    --with-omni			\
	    --with-jbig2dec		\
	    --with-jasper		\
	    --enable-dynamic		\
	    --enable-cups		\
	    --enable-shared		\
	    --with-driversfile=%{S:41}  \
%else
	    --without-ijs		\
	    --without-omni		\
	    --without-jbig2dec		\
	    --without-jasper		\
	    --disable-dynamic		\
	    --disable-cups		\
	    --disable-shared		\
	    --with-driversfile=%{S:44}  \
%endif
	    --disable-gtk		\
	    --disable-compile-inits	\
	    --with-gnu-ld
%if "%name" != "ghostscript-mini"
#
# Configure ijs part to get a shared lib out
pushd ijs/
  autoreconf -fi
  ./configure --build=%{buildsys}	\
	    --prefix=%{_prefix}		\
	    --bindir=%{_bindir}		\
	    --mandir=%{_mandir}		\
	    --infodir=%{_infodir}	\
	    --datadir=%{_datadir}	\
	    --libdir=%{_libdir}		\
	    --enable-shared		\
	    --with-gnu-ld
popd
#
# Configure stp part (escputil is part of Gutenberg)
pushd stp/
  GTK_CONFIG=/usr/bin/gtk-config
  IJS_CONFIG=$PWD/../ijs/ijs-config
  export GTK_CONFIG IJS_CONFIG
  ./configure --build=%{buildsys}	\
	    --prefix=%{_prefix}		\
	    --bindir=%{_bindir}		\
	    --infodir=%{_infodir}	\
	    --mandir=%{_mandir}		\
	    --datadir=%{_datadir}	\
	    --libdir=%{_libdir}		\
	    --without-cups		\
	    --with-ijs			\
	    --with-ghost		\
	    --without-gimp		\
%if %suse_version < 1020
	    --enable-escputil		\
%else
	    --disable-escputil		\
%endif
	    --enable-lexmarkutil	\
	    --enable-libgimpprint	\
	    --with-gnu-ld
popd
#
# Configure Omni part
pushd Omni/
  # auto(re)conf is called by setupOmni
  XML_CONFIG=xml2-config
  DEFAULTCUPSEXEROOT=%{_libdir}/cups/filter
  SAVE_CFLAGS="$CFLAGS"
  CXX=g++
%ifarch s390 s390x
  CXXFLAGS="${CXXFLAGS//-O[123]/-O1} -pipe"
%else
  CXXFLAGS="${CXXFLAGS//-O[123]/-Os} -pipe"
%endif
    CFLAGS="${CXXFLAGS}"
  export XML_CONFIG DEFAULTCUPSEXEROOT CXX CXXFLAGS
  libtoolize --copy --force
  ./setupOmni --build=%{buildsys}	\
	    --prefix=%{_prefix}		\
	    --bindir=%{_bindir}		\
	    --infodir=%{_infodir}	\
	    --mandir=%{_mandir}		\
	    --datadir=%{_datadir}/ghostscript	\
	    --libdir=%{_libdir}/ghostscript	\
	    --enable-deviceupdf		\
	    --enable-devicecompile	\
	    --disable-jobdialog		\
	    --disable-devicexml		\
	    --disable-xmltool		\
	    --disable-xmltool2		\
	    --disable-gomni-compat	\
	    --disable-device-fonts	\
	    --with-gnu-ld
  CFLAGS="$SAVE_CFLAGS"
  unset SAVE_CFLAGS
popd
#
# Remark: Do never add -j here!
pushd ijs/
%if %suse_version > 1030
  make 				libijs_la_LDFLAGS='-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)'
%else
  make 				libijs_la_LDFLAGS='-avoid-version'
%endif
popd
  PIJS=$PWD/ijs
pushd stp/
  make 				IJS_CFLAGS="-I$PIJS" IJS_LIBS="-L$PIJS -lijs"
  make -C lib/			IJS_CFLAGS="-I$PIJS" IJS_LIBS="-L$PIJS -lijs"
  make -C src/ghost/		IJS_CFLAGS="-I$PIJS" IJS_LIBS="-L$PIJS -lijs"
popd
pushd Omni/
  make
  OPATH=$PATH
  PATH=${PWD}/Omni/:$PATH
  make -C CUPS/ generateBuildPPDs
  PATH=$OPATH
  find CUPS/PPDs/ -name '*.ppd*' | \
  while read line; do
      case "$line" in
      *.gz)
	  gunzip $line
	  line=${line%.gz}
	  ;;
      esac
      if grep -q -E '^\*(Model|Nick|ShortNick)Name:.*[_\(\)].*' $line; then
	  sed -ri  '/^\*(Model|Nick|ShortNick)Name:/{ s/(_|\( *| *\))//g; }' $line
      fi
      case "$line" in
      */HP_LaserJet-HP_LaserJet_5Si_5Si_Mx_5Si_Mopier-omni-cups.ppd)
	  sed -ri  '/^\*ShortNickName:/{ s/ *Mopier//; }' $line
	  ;;
      */Okidata*)
	  sed -ri  '/^\*Manufacturer:/{ s/Okidata/Oki/; }' $line
	  ;;
      esac
      gzip -9f $line
  done
popd
%if %suse_version < 1020
pushd stp/
  # escputil is part of Gutenberg
  make -C src/escputil/		IJS_CFLAGS="-I$PIJS" IJS_LIBS="-L$PIJS -lijs"
popd
%endif
  make so			EXTRADEVS="$EXTRADEVS" EXTEND_NAMES=$EXTEND_NAMES STATIC_DEVS="$STATIC_DEVS" \
				GSSOC_XENAME='$(GS)$(XE)' GS_XE=''
  if test -x sobin/gsc ; then
      ln sobin/gsc sobin/gs
  fi
  if test -n "$SHARED_DEVS" ; then
      make ${SHARED_DEVS}	EXTRADEVS="$EXTRADEVS" EXTEND_NAMES=$EXTEND_NAMES STATIC_DEVS="$STATIC_DEVS"
  fi
  make pcl3opts
  LD_LIBRARY_PATH=${PWD}/sobin:${PWD}/soobj:${PWD}/obj:${PWD}/stp/src/main/.libs \
  /bin/bash %{S:51} > bin/catalog.devices
%else
  make				EXTRADEVS="$EXTRADEVS" EXTEND_NAMES=$EXTEND_NAMES STATIC_DEVS="$STATIC_DEVS"
  > bin/catalog.devices
%endif
#

%install
  test ! -f /.buildenv || . /.buildenv
#
# Some cleanups: add common PostScript[tm] file magic and
# set absolut path for escp_24.src in dmp_site.ps
  set +o posix
  for ps in $(find -name '*.ps')
  do
      read magic < $ps || continue
      case "$magic" in
      %%!*) ;;
      *)
	  ed $ps  &> /dev/null <<-EOF
		1
		i
		%%!
		.
		w
		q
		EOF
      esac
  done
  for f in $(find contrib/ lib/ -name dmp_site.ps)
  do
      test ! -L $f || continue
      mv $f ${f}.tmp
      sed "s|(\(escp_24.src\))|(%{_datadir}/ghostscript/%{gsver}/lib/\1)|" \
	  < ${f}.tmp > $f
      rm -vf ${f}.tmp
  done
  for f in $(find contrib/ lib/ -name gs_fonts.ps)
  do
      test ! -L $f || continue
      mv $f ${f}.tmp
      sed "s|@@FONTPATH@@|%{fonts}|" \
	  < ${f}.tmp > $f
      rm -vf ${f}.tmp
  done
#
  mkdir -p %{buildroot}%{_datadir}/ghostscript/fonts
  mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
#
# Remark: Do never add -j here!
%if "%name" != "ghostscript-mini"
  make soinstall -o so		DESTDIR=%buildroot GSSOC_XENAME='$(GS)$(XE)' GS_XE=''
  if test -x %{buildroot}%{_bindir}/gsc ; then
      rm -vf %{buildroot}%{_bindir}/gs
      mv -f  %{buildroot}%{_bindir}/gsc %{buildroot}%{_bindir}/gs
  fi
  make install-shared		DESTDIR=%buildroot
  make install-contrib-extras	DESTDIR=%buildroot
  make pcl3-install		DESTDIR=%buildroot
  if test -x %{buildroot}%{_bindir}/gsc ; then
      rm -vf %{buildroot}%{_bindir}/gsc
  fi
%else
  make install -o ./bin/gs	DESTDIR=%buildroot
%endif
#
  for xpm in %{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/*.xpm ; do
      test -e $xpm || break
      test -d %{buildroot}%{_datadir}/pixmaps || mkdir -p %{buildroot}%{_datadir}/pixmaps
%if "%name" != "ghostscript-mini"
      install -m 0644 $xpm %{buildroot}%{_datadir}/pixmaps/
%else
      rm -vf $xpm
%endif
  done
#
  for rem in lprsetup.sh pj-gs.sh pv.sh sysvlp.sh unix-lpr.sh ; do
      rm -vf %{buildroot}%{_bindir}/$rem
  done
  mv -v  %{buildroot}%{_bindir}/fixmswrd.pl %{buildroot}%{_bindir}/fixmswrd
%if %suse_version > 1030 && "%name" != "ghostscript-mini"
  mkdir -p %{buildroot}%{_includedir}/ghostscript
  install -m 0644 src/iapi.h    %{buildroot}%{_includedir}/ghostscript/
  install -m 0644 src/ierrors.h %{buildroot}%{_includedir}/ghostscript/
  install -m 0644 src/gdevdsp.h %{buildroot}%{_includedir}/ghostscript/
%else
  rm -vf  %{buildroot}%{_libdir}/libgs.so
  rm -vrf %{buildroot}%{_includedir}/ghostscript
%endif
#
  tar xfj %{S:1} -C %{buildroot}%{_datadir}/ghostscript/
%if "%name" != "ghostscript-mini"
  list="$(sed -nr 's/^\+\+\+[[:blank:]]([^[:blank:]]+\.pfa).*/\1/p' %{P:24})"
pushd %{buildroot}%{_datadir}/ghostscript/fonts/
  for pfa in $list
  do
      t1ascii  ${pfa%%.*}.pfb > ${pfa}
  done
  patch -p0 -i %{P:24}
  for pfa in $list
  do
      t1binary ${pfa} > ${pfa%%.*}.pfb
      rm -vf ${pfa}
  done
popd
  tar xfj %{S:2} -C %{buildroot}%{_datadir}/ghostscript/
  tar xfj %{S:3} -C %{buildroot}%{_datadir}/ghostscript/
  install -m 644 %{S:4} %{buildroot}%{_datadir}/ghostscript/fonts/
pushd %{buildroot}%{_datadir}/ghostscript/
  mv gs_rusfonts/fonts/*.{afm,pfb,pfm} fonts/
  map=%{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/Fontmap.rus
  (cat > ${map}) <<-EOF
	%%%% Russian Post Script fonts from Eugeni Demidov (ftp.kapella.gpi.ru)
	%%%% ArialCyrMT, CourierCyrPS, TimesCyrMT, ERKurierKOI8-R
	$(sed -r 's@$@;@' gs_rusfonts/fonts/Fontmap.ad)
	%%%%
	EOF
  mkdir -p %{buildroot}%{_defaultdocdir}/ghostscript-fonts-rus
  install -m 0444 gs_rusfonts/docs/*  %{buildroot}%{_defaultdocdir}/ghostscript-fonts-rus/
  rm -vrf gs_rusfonts/
popd
%endif
  rm -vf %{buildroot}%{_datadir}/ghostscript/fonts/{COPYING,ChangeLog,README,README.tweaks,TODO}
  find %{buildroot}%{_datadir}/ghostscript/fonts/ -type f | xargs -r chmod 0444
#
%if "%name" != "ghostscript-mini"
# Remark: Do never add -j here!
pushd ijs/
  make install			DESTDIR=%buildroot
  rm -vf %{buildroot}%{_bindir}/ijs_client_example
  rm -vf %{buildroot}%{_bindir}/ijs_server_example
  rm -vf %{buildroot}%{_libdir}/libijs.la
  for ijs in %{buildroot}%{_libdir}/libijs-*.so ; do
      if test -e $ijs ; then
	  rm -f      %{buildroot}%{_libdir}/libijs.so
	  mv -f $ijs %{buildroot}%{_libdir}/libijs.so
      fi
      break
  done
popd
pushd stp/
  make install			DESTDIR=%buildroot
  rm -rf %{buildroot}%{_datadir}/locale/en_TEST
popd
pushd Omni/
  make install			DESTDIR=%buildroot 			\
	 			CUPSEXEROOT=%{_libdir}/cups/filter	\
	 			CUPSDATAROOT=%{_datadir}/cups/model/omni
  mkdir -p %{buildroot}%{_datadir}/ghostscript/%{gsver}/doc/Omni
  mkdir -p %{buildroot}%{_defaultdocdir}/ghostscript-omni
  install -m 0444 docs/* %{buildroot}%{_datadir}/ghostscript/%{gsver}/doc/Omni/
  ln -sf %{_datadir}/ghostscript/%{gsver}/doc/Omni \
	 %{buildroot}%{_defaultdocdir}/ghostscript-omni/Omni
popd
%find_lang gimp-print
%endif
#
  rm -rf   %{buildroot}%{xfontdir}/URW
  mkdir -p %{buildroot}%{xfontdir}
  ln -sf   %{_datadir}/ghostscript/fonts %{buildroot}%{xfontdir}/URW
#
  ln -sf %{_datadir}/ghostscript/%{gsver}/doc	   %{buildroot}%{_defaultdocdir}/%{name}/
  ln -sf %{_datadir}/ghostscript/%{gsver}/examples %{buildroot}%{_defaultdocdir}/%{name}/
  install -m 0444 bin/catalog.devices		   %{buildroot}%{_defaultdocdir}/%{name}/
#
  mkdir -p %{buildroot}/etc/ghostscript/%{gsver}
  (cat > config.gs)<<-EOF
	%%defattr (644, root, root, 755)
	%%dir /etc/ghostscript
	%%dir /etc/ghostscript/%%{gsver}
	EOF
  for c in Fontmap Fontmap.X11-auto {cidf,xlat}map \
	   FAPI{cidfmap,config,fontmap}
  do
      sc=${PWD}/lib/$c
      uc=/usr/share/ghostscript/%{gsver}/lib/$c
      ec=/etc/ghostscript/%{gsver}/$c
      if test -f %{buildroot}$uc ; then
	  mv %{buildroot}$uc %{buildroot}$ec
      else
	  if test -s $sc ; then
	      install -m 0644 $sc %{buildroot}$ec
	  else
	      touch %{buildroot}$ec
	      chmod 0644 %{buildroot}$ec
	  fi
      fi
      ln -sf $ec %{buildroot}$uc
      echo "%%config $ec" >> config.gs
  done
#
# clean up buildroot
  rm -vf %{buildroot}%{_datadir}/ghostscript/%{gsver}/doc/gs-pcl3.html
  rm -rf %{buildroot}%{_datadir}/gimp-print/doc
  rm -rf %{buildroot}%{_datadir}/gimp-print/samples
  rm -vf %{buildroot}%{_mandir}/man1/ansi2knr.1*
%if %suse_version >= 1020
  rm -vf %{buildroot}%{_mandir}/man1/escputil.1*
%endif
  rm -vf %{buildroot}%{_mandir}/man1/ijsgimpprint.1*
  rm -vf %{buildroot}%{_mandir}/man8/cups-calibrate.8*
%if "%name" == "ghostscript-mini"
  rm -vf %{buildroot}%{_defaultdocdir}/ghostscript-fonts-rus/README.rusfonts
  rm -vf %{buildroot}%{_defaultdocdir}/ghostscript-fonts-rus/rusps.txt
  rm -vf %{buildroot}%{_bindir}/dumphint
%else
  target=""
  fdupes -q -r %{buildroot}%{_datadir}/ghostscript/Omni/ | \
  while read file; do
      if test -z "$target" ; then
	  target="$file"
      else
	  if test -z "$file" ; then
	      target=""
	      continue
	  fi
	  ln -sf "${target##*/}" "$file"
      fi
  done
  unset file
  target=%{buildroot}%{_datadir}/ghostscript/%{gsver}/doc/Omni/Omni.Readme.1st
  if test -e $target ; then
      mv ${target} ${target}.tmp
      dos2unix -n ${target}.tmp ${target}
      rm -f ${target}.tmp
  fi
  unset target
%endif
  mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
  if test -d %{buildroot}%{_defaultdocdir}/ghostscript/ ; then
      cp -a  %{buildroot}%{_defaultdocdir}/ghostscript/* \
	     %{buildroot}%{_defaultdocdir}/%{name}/
      rm -rf %{buildroot}%{_defaultdocdir}/ghostscript/
  fi
  cp LICENSE doc/COPYING %{buildroot}%{_datadir}/ghostscript/%{gsver}/doc/
  ln -sf ../../../ghostscript/%{gsver}/doc/{LICENSE,COPYING} \
	%{buildroot}%{_defaultdocdir}/%{name}/
  if test -e %{buildroot}%{_libdir}/ghostscript/cups/filter/CUPSToOmni ; then
      mkdir -p %{buildroot}%{_libdir}/cups/filter
      mv %{buildroot}%{_libdir}/ghostscript/cups/filter/CUPSToOmni \
	 %{buildroot}%{_libdir}/cups/filter/
      rm -rf %{buildroot}%{_libdir}/ghostscript/cups
  fi
  rm -vf %{buildroot}%{_bindir}/CUPSToOmni
  # No libtool files
  find %{buildroot}/ -name 'lib*.la' | xargs -r rm -f
  # PPDs are ready
  for file in GenerateOmniPPD	\
	GenerateOmniPPDs	\
	OmniDeviceOptions	\
	OmniDeviceTester	\
	OmniDeviceValid		\
	OmniDevices	 	\
	OmniFoomaticGenerator	\
	OmniPDCServer
  do
      rm -vf %{buildroot}%{_bindir}/$file
  done
  rm -vrf %{buildroot}%{_datadir}/ghostscript/Omni/
  rm -vf  %{buildroot}%{_datadir}/ghostscript/%{gsver}/doc/Omni/Omni.Readme.1st
  # Install the `Print the Primary Hint Stream from a linearized PDF file'
  chmod 0755 %{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/pphs
  mv %{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/pphs %{buildroot}%{_bindir}/
#
#
%if "%name" != "ghostscript-mini"
#

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%pre -n ghostscript-fonts-std
if test -d %{xfontdir}/URW -a ! -L %{xfontdir}/URW; then
  rm -rf %{xfontdir}/fonts/URW
fi

%post -n ghostscript-fonts-std
if test -x sbin/conf.d/SuSEconfig.fonts ; then
    %run_suseconfig -m fonts
fi
if test -x sbin/conf.d/SuSEconfig.pango ; then
    %run_suseconfig -m pango
fi

%postun -n ghostscript-fonts-std
if test -x sbin/conf.d/SuSEconfig.fonts ; then
    %run_suseconfig -m fonts
fi
if test -x sbin/conf.d/SuSEconfig.pango ; then
    %run_suseconfig -m pango
fi

%post -n libgimpprint -p /sbin/ldconfig

%postun -n libgimpprint -p /sbin/ldconfig

%post -n libgimpprint-devel
%install_info --info-dir=%{_infodir} %{_infodir}/gimpprint.info.gz

%postun -n libgimpprint-devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/gimpprint.info.gz
#
%endif

%files -f config.gs
%defattr(-, root, root)
%if "%name" != "ghostscript-mini"
%if %suse_version < 1020
%{_bindir}/escputil
%endif
%if %suse_version > 1020
%exclude %{_bindir}/ijs-config
%endif
%endif
%{_bindir}/*
%dir %{_datadir}/ghostscript
%dir %{_datadir}/ghostscript/%{gsver}
%{_datadir}/ghostscript/%{gsver}/doc
%{_datadir}/ghostscript/%{gsver}/examples
%{_datadir}/ghostscript/%{gsver}/lib
%{_datadir}/ghostscript/%{gsver}/Resource
%if "%name" != "ghostscript-mini"
%exclude %{_bindir}/gimpprint-config
%exclude %{_mandir}/man1/gimpprint-config.1.gz
%endif
%{_mandir}/man1/*
%{_mandir}/de/man1/*
%if "%name" != "ghostscript-mini"
%config %attr(-,lp,sys) /etc/cups/pstoraster.convs
%{_libdir}/libgs.so.*
%if %suse_version > 1030
%{_libdir}/libijs.so.*
%else
%{_libdir}/libijs.so
%endif
%if %suse_version <= 1020
%{_libdir}/libijs.a
%{_includedir}/ijs
%{_libdir}/pkgconfig/ijs.pc
%endif
%dir %{_libdir}/ghostscript
%dir %{_libdir}/ghostscript/%{gsver}
%dir %{_libdir}/cups
%dir %{_libdir}/cups/filter
%{_libdir}/cups/filter/pstoraster
%{_libdir}/cups/filter/pstopxl
%dir %{_datadir}/cups
%dir %{_datadir}/cups/model
%{_datadir}/cups/model/pxlcolor.ppd
%{_datadir}/cups/model/pxlmono.ppd
%else
%{xfontdir}/URW
%{_datadir}/ghostscript/fonts
%endif
%doc %{_defaultdocdir}/%{name}
#
#
#
%if "%name" != "ghostscript-mini"

%files -n ghostscript-x11
%defattr(-, root, root)
%{_libdir}/ghostscript/%{gsver}/X11.so
%{_datadir}/pixmaps/*
%if %suse_version > 1020

%files -n ghostscript-ijs-devel
%defattr(-, root, root)
%{_bindir}/ijs-config
%{_libdir}/pkgconfig/ijs.pc
%{_libdir}/libijs.a
%if %suse_version > 1030
%{_libdir}/libijs.so
%endif
%{_includedir}/ijs
%endif
%if %suse_version > 1030

%files -n ghostscript-devel
%defattr(-, root, root)
%{_libdir}/libgs.so
%{_includedir}/ghostscript
%endif

%files -n ghostscript-omni
%defattr(-, root, root)
%dir %{_libdir}/ghostscript/Omni
%{_libdir}/cups/filter/CUPSToOmni
%{_libdir}/ghostscript/Omni/*.so*
%{_datadir}/cups/model/omni
%doc %{_defaultdocdir}/ghostscript-omni

%files -n libgimpprint -f gimp-print.lang
%defattr(-, root, root)
%{_libdir}/libgimpprint.so.*

%files -n libgimpprint-devel
%defattr(-, root, root)
%{_bindir}/gimpprint-config
%{_datadir}/aclocal/gimpprint.m4
%{_includedir}/gimp-print
%{_libdir}/libgimpprint.so
%{_libdir}/libgimpprint.a
%doc %{_mandir}/man*/gimpprint*
%doc %{_infodir}/gimpprint.*

%files -n ghostscript-fonts-std
%defattr(0644,root,root,0755)
%{xfontdir}/URW
%dir %{_datadir}/ghostscript/fonts
%verify(not md5 size mtime) %{_datadir}/ghostscript/fonts/fonts.scale
%verify(not md5 size mtime) %{_datadir}/ghostscript/fonts/fonts.scale.*
%verify(not md5 size mtime) %{_datadir}/ghostscript/fonts/fonts.dir
%{_datadir}/ghostscript/fonts/a010013l.afm
%{_datadir}/ghostscript/fonts/a010015l.afm
%{_datadir}/ghostscript/fonts/a010033l.afm
%{_datadir}/ghostscript/fonts/a010035l.afm
%{_datadir}/ghostscript/fonts/b018012l.afm
%{_datadir}/ghostscript/fonts/b018015l.afm
%{_datadir}/ghostscript/fonts/b018032l.afm
%{_datadir}/ghostscript/fonts/b018035l.afm
%{_datadir}/ghostscript/fonts/c059013l.afm
%{_datadir}/ghostscript/fonts/c059016l.afm
%{_datadir}/ghostscript/fonts/c059033l.afm
%{_datadir}/ghostscript/fonts/c059036l.afm
%{_datadir}/ghostscript/fonts/d050000l.afm
%{_datadir}/ghostscript/fonts/n019003l.afm
%{_datadir}/ghostscript/fonts/n019004l.afm
%{_datadir}/ghostscript/fonts/n019023l.afm
%{_datadir}/ghostscript/fonts/n019024l.afm
%{_datadir}/ghostscript/fonts/n019043l.afm
%{_datadir}/ghostscript/fonts/n019044l.afm
%{_datadir}/ghostscript/fonts/n019063l.afm
%{_datadir}/ghostscript/fonts/n019064l.afm
%{_datadir}/ghostscript/fonts/n021003l.afm
%{_datadir}/ghostscript/fonts/n021004l.afm
%{_datadir}/ghostscript/fonts/n021023l.afm
%{_datadir}/ghostscript/fonts/n021024l.afm
%{_datadir}/ghostscript/fonts/n022003l.afm
%{_datadir}/ghostscript/fonts/n022004l.afm
%{_datadir}/ghostscript/fonts/n022023l.afm
%{_datadir}/ghostscript/fonts/n022024l.afm
%{_datadir}/ghostscript/fonts/p052003l.afm
%{_datadir}/ghostscript/fonts/p052004l.afm
%{_datadir}/ghostscript/fonts/p052023l.afm
%{_datadir}/ghostscript/fonts/p052024l.afm
%{_datadir}/ghostscript/fonts/s050000l.afm
%{_datadir}/ghostscript/fonts/z003034l.afm
%{_datadir}/ghostscript/fonts/a010013l.pfm
%{_datadir}/ghostscript/fonts/a010015l.pfm
%{_datadir}/ghostscript/fonts/a010033l.pfm
%{_datadir}/ghostscript/fonts/a010035l.pfm
%{_datadir}/ghostscript/fonts/b018012l.pfm
%{_datadir}/ghostscript/fonts/b018015l.pfm
%{_datadir}/ghostscript/fonts/b018032l.pfm
%{_datadir}/ghostscript/fonts/b018035l.pfm
%{_datadir}/ghostscript/fonts/n019003l.pfm
%{_datadir}/ghostscript/fonts/n019004l.pfm
%{_datadir}/ghostscript/fonts/n019023l.pfm
%{_datadir}/ghostscript/fonts/n019024l.pfm
%{_datadir}/ghostscript/fonts/n019064l.pfm
%{_datadir}/ghostscript/fonts/n021003l.pfm
%{_datadir}/ghostscript/fonts/n021004l.pfm
%{_datadir}/ghostscript/fonts/n021023l.pfm
%{_datadir}/ghostscript/fonts/n021024l.pfm
%{_datadir}/ghostscript/fonts/z003034l.pfm
%{_datadir}/ghostscript/fonts/a010013l.pfb
%{_datadir}/ghostscript/fonts/a010015l.pfb
%{_datadir}/ghostscript/fonts/a010033l.pfb
%{_datadir}/ghostscript/fonts/a010035l.pfb
%{_datadir}/ghostscript/fonts/b018012l.pfb
%{_datadir}/ghostscript/fonts/b018015l.pfb
%{_datadir}/ghostscript/fonts/b018032l.pfb
%{_datadir}/ghostscript/fonts/b018035l.pfb
%{_datadir}/ghostscript/fonts/c059013l.pfb
%{_datadir}/ghostscript/fonts/c059016l.pfb
%{_datadir}/ghostscript/fonts/c059033l.pfb
%{_datadir}/ghostscript/fonts/c059036l.pfb
%{_datadir}/ghostscript/fonts/d050000l.pfb
%{_datadir}/ghostscript/fonts/n019003l.pfb
%{_datadir}/ghostscript/fonts/n019004l.pfb
%{_datadir}/ghostscript/fonts/n019023l.pfb
%{_datadir}/ghostscript/fonts/n019024l.pfb
%{_datadir}/ghostscript/fonts/n019043l.pfb
%{_datadir}/ghostscript/fonts/n019044l.pfb
%{_datadir}/ghostscript/fonts/n019063l.pfb
%{_datadir}/ghostscript/fonts/n019064l.pfb
%{_datadir}/ghostscript/fonts/n021003l.pfb
%{_datadir}/ghostscript/fonts/n021004l.pfb
%{_datadir}/ghostscript/fonts/n021023l.pfb
%{_datadir}/ghostscript/fonts/n021024l.pfb
%{_datadir}/ghostscript/fonts/n022003l.pfb
%{_datadir}/ghostscript/fonts/n022004l.pfb
%{_datadir}/ghostscript/fonts/n022023l.pfb
%{_datadir}/ghostscript/fonts/n022024l.pfb
%{_datadir}/ghostscript/fonts/p052003l.pfb
%{_datadir}/ghostscript/fonts/p052004l.pfb
%{_datadir}/ghostscript/fonts/p052023l.pfb
%{_datadir}/ghostscript/fonts/p052024l.pfb
%{_datadir}/ghostscript/fonts/s050000l.pfb
%{_datadir}/ghostscript/fonts/z003034l.pfb

%files -n ghostscript-fonts-other
%defattr(0644,root,root,0755)
%dir %{_datadir}/ghostscript/fonts
%{_datadir}/ghostscript/fonts/bchb.afm
%{_datadir}/ghostscript/fonts/bchbi.afm
%{_datadir}/ghostscript/fonts/bchr.afm
%{_datadir}/ghostscript/fonts/bchri.afm
%{_datadir}/ghostscript/fonts/fcyr.afm
%{_datadir}/ghostscript/fonts/fcyri.afm
%{_datadir}/ghostscript/fonts/u003043t.afm
%{_datadir}/ghostscript/fonts/u004006t.afm
%{_datadir}/ghostscript/fonts/fcyr.gsf
%{_datadir}/ghostscript/fonts/fcyri.gsf
%{_datadir}/ghostscript/fonts/fhirw.gsf
%{_datadir}/ghostscript/fonts/fkarw.gsf
%{_datadir}/ghostscript/fonts/hrgerb.gsf
%{_datadir}/ghostscript/fonts/hrgerd.gsf
%{_datadir}/ghostscript/fonts/hrgero.gsf
%{_datadir}/ghostscript/fonts/hrgkc.gsf
%{_datadir}/ghostscript/fonts/hrgks.gsf
%{_datadir}/ghostscript/fonts/hrgrrb.gsf
%{_datadir}/ghostscript/fonts/hrgrro.gsf
%{_datadir}/ghostscript/fonts/hritrb.gsf
%{_datadir}/ghostscript/fonts/hritro.gsf
%{_datadir}/ghostscript/fonts/hrpldb.gsf
%{_datadir}/ghostscript/fonts/hrpldbi.gsf
%{_datadir}/ghostscript/fonts/hrplr.gsf
%{_datadir}/ghostscript/fonts/hrplrb.gsf
%{_datadir}/ghostscript/fonts/hrplrbo.gsf
%{_datadir}/ghostscript/fonts/hrplro.gsf
%{_datadir}/ghostscript/fonts/hrpls.gsf
%{_datadir}/ghostscript/fonts/hrplsb.gsf
%{_datadir}/ghostscript/fonts/hrplsbo.gsf
%{_datadir}/ghostscript/fonts/hrplso.gsf
%{_datadir}/ghostscript/fonts/hrpltb.gsf
%{_datadir}/ghostscript/fonts/hrpltbi.gsf
%{_datadir}/ghostscript/fonts/hrsccb.gsf
%{_datadir}/ghostscript/fonts/hrscco.gsf
%{_datadir}/ghostscript/fonts/hrscsb.gsf
%{_datadir}/ghostscript/fonts/hrscso.gsf
%{_datadir}/ghostscript/fonts/hrsyr.gsf
%{_datadir}/ghostscript/fonts/u003043t.gsf
%{_datadir}/ghostscript/fonts/u004006t.gsf
%{_datadir}/ghostscript/fonts/bchb.pfa
%{_datadir}/ghostscript/fonts/bchbi.pfa
%{_datadir}/ghostscript/fonts/bchr.pfa
%{_datadir}/ghostscript/fonts/bchri.pfa
%{_datadir}/ghostscript/fonts/hrger.pfa
%{_datadir}/ghostscript/fonts/hrgrr.pfa
%{_datadir}/ghostscript/fonts/hritr.pfa
%{_datadir}/ghostscript/fonts/hrpld.pfa
%{_datadir}/ghostscript/fonts/hrpldi.pfa
%{_datadir}/ghostscript/fonts/hrplt.pfa
%{_datadir}/ghostscript/fonts/hrplti.pfa
%{_datadir}/ghostscript/fonts/hrscc.pfa
%{_datadir}/ghostscript/fonts/hrscs.pfa
%{_datadir}/ghostscript/fonts/putb.pfa
%{_datadir}/ghostscript/fonts/putbi.pfa
%{_datadir}/ghostscript/fonts/putr.pfa
%{_datadir}/ghostscript/fonts/putri.pfa
%{_datadir}/ghostscript/fonts/fhirw.pfm
%{_datadir}/ghostscript/fonts/fkarw.pfm
%{_datadir}/ghostscript/fonts/u003043t.pfm
%{_datadir}/ghostscript/fonts/u004006t.pfm

%files -n ghostscript-fonts-rus
%defattr(0644,root,root,0755)
%doc %dir %{_defaultdocdir}/ghostscript-fonts-rus/
%doc %{_defaultdocdir}/ghostscript-fonts-rus/README.rusfonts
%doc %{_defaultdocdir}/ghostscript-fonts-rus/rusps.txt
%dir %{_datadir}/ghostscript/fonts
%{_datadir}/ghostscript/fonts/arial8.afm
%{_datadir}/ghostscript/fonts/arial8.pfb
%{_datadir}/ghostscript/fonts/arial8.pfm
%{_datadir}/ghostscript/fonts/arialbd8.afm
%{_datadir}/ghostscript/fonts/arialbd8.pfb
%{_datadir}/ghostscript/fonts/arialbd8.pfm
%{_datadir}/ghostscript/fonts/arialbi8.afm
%{_datadir}/ghostscript/fonts/arialbi8.pfb
%{_datadir}/ghostscript/fonts/arialbi8.pfm
%{_datadir}/ghostscript/fonts/ariali8.afm
%{_datadir}/ghostscript/fonts/ariali8.pfb
%{_datadir}/ghostscript/fonts/ariali8.pfm
%{_datadir}/ghostscript/fonts/cokoi8b.afm
%{_datadir}/ghostscript/fonts/cokoi8b.pfb
%{_datadir}/ghostscript/fonts/cokoi8b.pfm
%{_datadir}/ghostscript/fonts/cokoi8bi.afm
%{_datadir}/ghostscript/fonts/cokoi8bi.pfb
%{_datadir}/ghostscript/fonts/cokoi8bi.pfm
%{_datadir}/ghostscript/fonts/cokoi8i.afm
%{_datadir}/ghostscript/fonts/cokoi8i.pfb
%{_datadir}/ghostscript/fonts/cokoi8i.pfm
%{_datadir}/ghostscript/fonts/cokoi8n.afm
%{_datadir}/ghostscript/fonts/cokoi8n.pfb
%{_datadir}/ghostscript/fonts/cokoi8n.pfm
%{_datadir}/ghostscript/fonts/cour8.afm
%{_datadir}/ghostscript/fonts/cour8.pfb
%{_datadir}/ghostscript/fonts/cour8.pfm
%{_datadir}/ghostscript/fonts/courbd8.afm
%{_datadir}/ghostscript/fonts/courbd8.pfb
%{_datadir}/ghostscript/fonts/courbd8.pfm
%{_datadir}/ghostscript/fonts/courbi8.afm
%{_datadir}/ghostscript/fonts/courbi8.pfb
%{_datadir}/ghostscript/fonts/courbi8.pfm
%{_datadir}/ghostscript/fonts/couri8.afm
%{_datadir}/ghostscript/fonts/couri8.pfb
%{_datadir}/ghostscript/fonts/couri8.pfm
%{_datadir}/ghostscript/fonts/times8.afm
%{_datadir}/ghostscript/fonts/times8.pfb
%{_datadir}/ghostscript/fonts/times8.pfm
%{_datadir}/ghostscript/fonts/timesbd8.afm
%{_datadir}/ghostscript/fonts/timesbd8.pfb
%{_datadir}/ghostscript/fonts/timesbd8.pfm
%{_datadir}/ghostscript/fonts/timesbi8.afm
%{_datadir}/ghostscript/fonts/timesbi8.pfb
%{_datadir}/ghostscript/fonts/timesbi8.pfm
%{_datadir}/ghostscript/fonts/timesi8.afm
%{_datadir}/ghostscript/fonts/timesi8.pfb
%{_datadir}/ghostscript/fonts/timesi8.pfm
%endif

%changelog
* Tue Jul 29 2008 werner@suse.de
- Fix crash in bjc driver (bnc#412523)
* Thu Jul 24 2008 werner@suse.de
- Fix crash on null pointer reference (bnc#409605)
* Mon Apr 07 2008 werner@suse.de
- Be sure the disabling of Font API works even without the driver
* Wed Apr 02 2008 werner@suse.de
- Add CJK patch from debian but diable it (missmatch in rev 8554+)
* Tue Apr 01 2008 werner@suse.de
- Remove already included patches
- Add some patches from SVN trunk tree revision 8572 upto revision 8617
- Update to GPL ghostscript 8.6Update to2
  * Fix typo that caused unbalanced 'q' 'Q' operators in PDF's (caused by
  rev 8501). gsbug#689728.
  * Remove some C++ style comments.
  * Update product name, copyright and release dates.
  * Add default FontResourceDir needed when COMPILE_INITS=1 is used so
  that the fonts from Resource/Font in the distribution directory that
  are built into %%rom%%Resource/Font/ will be found.
  * Attempt to repair invalid embedded TT fonts without cmap table.
  gsbug#689707, customer 531.
  * Fix (clist interpreter) : Improve transparency performance, step 4.
  * Added setting of fill_rule in pclxl_endpath().
  * Fix (clist interpreter) : Improve transparency performance, step 1.
  * Remove a space betveen -f and a file name to prevent parsing of the file name
  that starts with '-' as an options. gsbug#689682.
  * When the values of the color key mask exceed the valid range clip them to the
  nearest valid values and continue. Don't discard the mask as we did before.
  gsbug#689717, customer 580.
  * Fix (images) : Improve coordinate precision when scaling an image (continued 7).
  * Add definitions of some C99 types missing from old versions of Cygwin.
  * Fix (images) : Improve coordinate precision when scaling an image (continued 6).
  * Fix (FAPI) : Embedded fonts didn't work.
  * Propagate the new method argument change introduced in r8528 to the wts
  device so that it compiles again.
  * Fix (images) : Improve coordinate precision when scaling an image (continued 3).
  * Fix (images) : Improve coordinate precision when scaling an image (continued 2).
  * Fix for regressions introduced with rev 8526. Some resolutions of CMYK, 1-bit
  per component devices that had CMYK colors and Gray colors had strange dithers.
  gsbug#689706.
  * Fix (images) : Improve coordinate precision when scaling an image (continued).
  * Document the need to update the current documentation snapshot.
  * Include 12 and 16 bit image support as part of the core graphics
  library. gsbug#689688.
  * Fix (images) : Improve coordinate precision when scaling an image.
  * Modify pdf_info utility to match the changes in PDF interpreter interface.
  gsbug#689680.
  * Fix ColorValues parameter problem when device has total number of bits (depth)
  of more than 31 bits, resulting in a "rangecheck" (-15) error.
  * Fix (TT): Ignore broken post 2.0 table generated by "Windows Type 1 Installer".
  * Fix (graphics) : Optimize filling a path with a shading color.
  * Fix (TT): Fix a gsbug#in /getinterval_from_stringarray
  * Fix (clist & transparency) : Improve the compositor queue logic.
  * Fix (Font renderer) : Horizontal metrics sometimes applied with WMode 1 fonts.
  * Fix (DSC parser) : Avoid a structure type name duplicate.
  * Fix (patterns) : The clipping was wrong with antrivial pattern matrix.
  * Fix (shadings) : A memory deallocation problem.
  * Fix (save/restore) : Remove gs_ref_memory_s::inherited.
  * Only report the ICC Profile colorspace when the jasper library's degsbug#
  level is above zero. gsbug#689662.
  * Explicitly close CMap files opened during CMap-CIDFont font enumeration.
  On certain systems file handles were used up before GC freed inaccessible
  handles causing PostScript errors. gsbug#689594.
  * Fix (clist interpreter) : Skip idle compositors, step 6.
  * Fix : Cygwin/gcc warnings.
  * Comment-only change: remove obsolete reference to MS-DOS limitations and
  mention that PDF interpreter passes un-escaped font names to PS level.
  gsbug#689651.
  * Unbreak the build.
  * Fixed umlauts (maybe, am having trouble testing the results).
  * Add unmodified byte-oriented AES encryption code by Brian Gladman. These
  files serve as a reference point. They are not yet included into any
  project nor can be compiled by some of the compilers we support.
  * Remove EXTEND_NAMES from the top level makefiles.
  * There is a fallback to the default value of 0 in inameidx.h so there
  is no change in the default behaviour. The extended name table can
  still be activated by defining EXTEND_NAMES on the compiler command
  line or changing the source directly.
  * Deprecate USE_FPU, no changes expected.
  * Re-export runpdfbegin, dopdfpages, and runpdfend procedures, which turned out
  to be used by 3rd party programs. Partly revert the rev. 8325.
  * Don't ignore xref stream in a hybrid  "classic xref" + "stream xref" file
  as PDF 1.5-compatible should do. Thanks to SaGS for the patch. gsbug#688282.
  * Remove the SYSTEM_CONSTANTS_ARE_WRITABLE compile-time define.
  * Add a flag that marks PDF text rendering mode 3 to avoid confusion with other
  non-rendering text operations such as stringwidth. This avoids unnecessary
  calculation of the current point, which fails when the CTM is singular. This
  patch continues conservative approach to the text rendering modes started in
  rev. 4006. gsbug#689614, customer 384.
  * Remove the USE_ASM build flag.
  * Don't try to obtain the bounding box of a glyph when FontBBox is invalid and
  CTM is singular. Set an empty box and consider it valid. The bounding box is
  not used when the CTM is singular. gsbug#689614, customer 384.
  * Add -Wundef to the autoconf build.
  * There have been a number of problems related to missing defines lately.
  * Also remove gdevcmap from the documentation.
  * Document the behaviour of the reference count macros.
  * Further update the graphics library unit test and build. The gslib test
  executable builds and works now.
  * Fix (jbig2dec): The global data stream for a JBIG2 image in a PDF
  file was being released, and the data freed by the garbage collector,
  before the data was used.
  * Details: gsbug#689568 and #689569. Uses the patch supplied by Alex
  in thread for #689569, implements Ralph's comments about the structure
  naming. Does not attempt to change the memory allocator. This slightly
  modified patch also works with the Luratech decoder.
  * sjbig2.h, sjbig2_luratech.h; make the global data structure
  s_jbig2_global_data_t public. Store the structure in the
  stream decoder state.
  * sjbig2.c, sjbig2_luratech.c; store a pointer to the global
  data structure.
  * sjbig2_luratech.c; don't reset the pointer during initialisation!
  * zfjbig2.c; Pass the global pointer to the stream decoder for
  release in the finalize routine.
  * Remove some old helper scripts.
  * They aren't used much and we no longer wish to maintain them.
  * Ignore operator readonly when it is applied to a wrong type inside an
  embedded Type 1 font. gsbug#689617, customer 580.
  * Update the graphics library unit tests for recent code changes.
  * Fix (pdfwrite): PDFXTrimBoxToMediaBoxOffset used the supplied data
  incorrectly.
  * Fix (transparency) : Providing a right nested masks logic (continued).
  * Fix (clist interpreter) : Improving degsbug#trace about compositors.
  * Work around a GCC 4.2.1 gsbug#on PowerPC that generates incorrect code in the
  release build affecting scanning of binary tokens containing floating point
  numbers. gsbug#689586.
  * Align the pointer to gx_clist_state array in gx_device_clist_writer device to
  the natural boundary to avoid misaligned memory access and bus errors on ARM
  processors. gsbug#689600.
  * Fix (transparency) : Unwinding the nested masks logic.
  * Fix for SEGV when more than 4 colorants used with psdcmyk device.
  gsbug#689457 for customer #460.
  * Replaced C++ comments with C comments (// -> /* */).
  * Update to previous commit. Add pdf14_buffer maskbuf pointer to GC structures.
  * Pick up the transparency mask buffer when a new transparency group is pushed rather than when it is popped. Solves memory leaks and incorrect rendering when transparency groups are nested.
  * Use a smaller buffer for eexecDecode filter to avoid consumption of the data
  that follow a short (and incorrect) run of 0's in PS files generated by
  Adobe Acrobat from PDF files with usage restrictions. gsbug#689577
  * Fix (clist interpreter) : Skip idle compositors, step 3.
  * Fix (clist interpreter) : Skip idle compositors, step 2.
  * Let CUPS filters use buffered input to Ghostscript via '-_', to work around gsbug#689577.
  * Fix (shadings) : Optimize fill_linear_color_scanline with analitic computation of the color change position.
  * Adds the base font address to the -Zm tracing output.
  * Add URW fonts to the Resource/Font directory. These will be included when
  COMPILE_INITS=1. Fontmap.GS still references the disk file name so that
  the disk file based fonts can still be used if they are available.
  * Fix (shadings) : Optimize path manipulations for shading fill (continued).
  * Add the 'pamcmyk32' (previously the 'pam' device) to all default builds.
  This will be used for regression testing of 32-bit CMYK.
  * Document the jasper build file version skew menioned in gsbug#689570.
  * Fix CIEBasedA problem, add DeviceGray and DeviceRGB support to this utility.
  * Update the regression code license headers with the current contact
  address.
  * Change the regression scripts to rewrite the product as
  "GPL Ghostscript".
  * Fix (pdfwrite): Fonts containing glyphs with no sbw or hsbw
  instruction caused pdfwrite to crash.
* Fri Feb 22 2008 werner@suse.de
- Update to GPL ghostscript 8.61 (bnc#297524)
  * default device is now x11alpha is available otherwise bbox
  * Check that a device halftone exists before writing it
  * Change the product name for the release
  * Wrong background color of a soft mask group
  * Remove spurious executable bits
  * pdfwrite: type 3 fonts with exceedingly small BoundingBox
  entries were clamped to 0 or 1
  * pdfwrite: named objects, created via a pdfmark such as /BP,
  could not have their content modified after the object was
  completed
  * Correct obvious typo in default rgb to cmyk color mapping
  * TT font handler: Place the True Type interpreter and its
  data into stable memory
  * TT fonts: Ignore invalid entries in loca table
  * Fix command list-based devices on 64-bit platforms
  * pdfwrite: A wrong encoding of Metadata.
  * Fix for seg fault caused by undersized buffer
  * transparency in clist: Write transparent paths and images
  to clist as high level objcts
* Wed Feb 06 2008 werner@suse.de
- Make member counting of range_buff array independend from type
* Tue Feb 05 2008 werner@suse.de
- Fix stack-based buffer overflow (CESA-2008-001, bnc#358914)
* Thu Jan 31 2008 werner@suse.de
- ghostscript-mini: No self conflict but provide
  ghostscript-fonts-std and ghostscript-library
* Thu Nov 22 2007 werner@suse.de
- Move all Omni dependencies from ghostscript-library to
  ghostscript-omni but Recommends ghostscript-omni  (bug #343336)
* Wed Nov 14 2007 werner@suse.de
- Correct path of pkgconfig file ijs.pc
* Wed Nov 14 2007 werner@suse.de
- Suggest hpijs instead of a hard requirement (bug #341564)
- Add security fix for lib jasper in ghostscript 8.60 (bug #340138)
- Provide all PPDs for CUPSToOmni filter and move all together
  to ghostscript-omni
- Provide a ghostscript-devel which includes libgs.so link together
  with ghostscript API and DSP device header files.
- Suppress some new warnings of new gcc 4.3
- Make Omni compile with gcc 4.3
* Mon Nov 05 2007 werner@suse.de
- Do not handle pipes from standard in as character devices
* Tue Oct 23 2007 werner@suse.de
- Do not use freetype library for mini ghostscript
* Fri Oct 19 2007 werner@suse.de
- Re-enable escputils for SLES10/SL10.1 only
* Tue Oct 02 2007 werner@suse.de
- Fix miss-compilation within bbox_draw() of zchar1.c
* Fri Sep 28 2007 werner@suse.de
- Be sure that libgs.so does not link with X11 libraries as we
  use the X11.so shared module with dlopen()
* Fri Sep 21 2007 werner@suse.de
- Make if build even with older distributions
- Reorder freetype2 patch for the FAPI interface
- Avoid compiling twice even for ghostscript-mini
* Thu Sep 06 2007 werner@suse.de
- CIDFontType 2 is FontType 11
- Avoid error message on failing freetype FAPI plugin
- Extend FONTPATH to find all fonts of type 1, 9, 11, and 42
* Wed Sep 05 2007 werner@suse.de
- Avoid version on 10.2 and less for libijs
- Use fdupes for omni development files
- Do not forget xorg fonts packages to make configure happy
- Diable FAPI to avoid mapping on not existing fonts
* Tue Sep 04 2007 werner@suse.de
- Make the drivers djet820c, stp, dmprt, and hpdj working without
  using the obsolete and therefore removed gs_stderr
- Fix driver dmprt to use new API of lib_fopen()
- Re-add missed .runlibfileifexists PostScript macro
- Split off mini ghostscript package
* Tue Aug 07 2007 werner@suse.de
- Switch back to original ghostscript 8.60 now with GPL license due
  to the fact that ESP ghostscript is dead
- Port missed patches I've done for ESP project to 8.60
- Resort order of changelog entries
- Make it build and pack
* Sat Jul 21 2007 coolo@suse.de
- do not require xorg-x11 to build
* Thu Jun 21 2007 adrian@suse.de
- fix changelog entry order
* Wed Jun 06 2007 werner@suse.de
- Branch ijs-devel subpackage for ijs-config, headers, and library
* Fri Jun 01 2007 werner@suse.de
- libijs.so is required by us even with RPMlint
* Tue May 29 2007 werner@suse.de
- Remove not required devel files
- RPMlint: ignore omni .so files too because those are files are
  required and loaded with dlopen by the omni library.
- RPMlint: Move some gimpprint devel files into libgimpprint-devel
* Thu May 24 2007 ro@suse.de
- added ldconfig to post scripts
* Thu Mar 29 2007 aj@suse.de
- Add flex to BuildRequires.
* Tue Dec 05 2006 werner@suse.de
- Make sgirgb driver more robust on itanium (bug #209879)
* Tue Nov 07 2006 werner@suse.de
- More on bug #203287: do not create a new bbox device for the
  overprint opterator for an already existing memory device.
* Fri Nov 03 2006 werner@suse.de
- More on bug #203287 check for the bbox because otherwise some
  some areas will not be updated.
* Thu Nov 02 2006 werner@suse.de
- X11 device: reset update count after flush to avoid that the
  page is flushed twice, fix for bug #203287
* Sun Oct 22 2006 olh@suse.de
- remove /usr/share/man/man1/escputil.1.gz, conflicts with gutenprint
* Sat Oct 21 2006 schwab@suse.de
- Fix bogus version check.
* Mon Oct 16 2006 werner@suse.de
- Redo removing escputil to avoid conficts with gutenprint
* Sat Oct 14 2006 aj@suse.de
- Use suse_version to get setup xorg paths.
* Fri Oct 13 2006 aj@suse.de
- Delete /usr/bin/dumphint for ghostscript-library.
* Wed Oct 11 2006 werner@suse.de
- Update t oversion espgs 8.15.3
  * Fixes bug #202092
  * Fixes bug #209879
* Wed Sep 20 2006 kssingvo@suse.de
- removed escputil to avoid file conflicts.
  escputil incl. manual are now in the package "gutenprint"
* Fri Aug 11 2006 mfabian@suse.de
- move URW symlink to /usr/share/fonts (because of X11R7).
* Wed Jul 12 2006 werner@suse.de
- Do never build in parallel, this will not work
* Tue Jun 20 2006 dmueller@suse.de
- Remove ghostscript-symlink as it breaks update
- Build parallel
* Tue Jun 13 2006 werner@suse.de
- Do not stop execution on unknown page device features (#161004)
* Thu Jun 01 2006 werner@suse.de
- Update to espgs version 8.15.2 (unstripped:)
* Wed May 17 2006 schwab@suse.de
- Don't strip binaries.
* Thu Mar 09 2006 werner@suse.de
- Use the pdf_sec.ps of the new GPL ghostscript 8.50 to be able
  to read newest encrypted pdf files.
* Wed Mar 01 2006 werner@suse.de
- Add new krgb-1.2 patch for gdevijs to fix buffer overflow
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(ghostscript-mini:ru;bg)" to
  ghostscript-fonts-rus sub-package.
* Tue Feb 28 2006 werner@suse.de
- Fix a crash if a broken bbox is found in pdf file (bug #152780)
* Fri Jan 27 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 werner@suse.de
- Fix crash on writing compressed image in pdfwrite (bug #140387)
* Thu Jan 12 2006 werner@suse.de
- Use the gcc stack protector
- Some cleanups
* Tue Dec 20 2005 werner@suse.de
- Mark and move configuration to /etc/ghostscript/ (bug #140312)
* Mon Dec 19 2005 werner@suse.de
- Add URW sym link to file list
* Wed Sep 28 2005 werner@suse.de
- Update to current SVN version which includes most of our patches
- Make it install even with norootforbuild
- Enable shared library libgs to get /usr/bin/gs much smaller
- Be sure that out make.catalog script works with this
- Add X11 font path to default library path of ghostscript
* Thu Sep 22 2005 werner@suse.de
- The new vector device force bbox device to use alloc (#118205)
* Wed Aug 31 2005 werner@suse.de
- Fix double free corruption (bug #114056)
- Remove example driver bmpa* accordingly to the docs (bug #114056)
- Fix stupid typecheck error of inferno driver (bug #114068)
- Fix polarity and gcc4 trouble of devicen driver (bug #114068)
- Rotate page dimensions of cljet5 driver (bug #114068)
* Tue Aug 30 2005 werner@suse.de
- Remove pcx2up example device (bug #114068)
- Use gs standard for open file and pipes in cgm device (#114068)
  Problem: this driver is IMHO broken even if it writes to pipes
* Mon Aug 29 2005 werner@suse.de
- Fix buffer overflow in sprintf buffer (bug #113823)
* Thu Aug 25 2005 werner@suse.de
- Fix color model handling of pcl3 driver for gs 8.15 (bug #112659)
* Wed Aug 24 2005 mfabian@suse.de
- Bugzilla #104656 revisited: improved patch to help display
  Japanese PDF files produced by Acroread correctly.
  Thanks to Takashi Iwai <tiwai@suse.de> for adapting the patch
  to our ghostscript package.
* Mon Aug 15 2005 mfabian@suse.de
- Bugzilla #104656: Fix for Ghostscript to render vertical
  Japanese correctly again.
* Thu Jun 30 2005 werner@suse.de
- Make a real fix of the bjc drivers (bug #90551)
- Make -O1 also available on install section and mini spec
* Fri Jun 24 2005 werner@suse.de
- Fix broken definition of the cinfo structures of lx5000 printer
  driver which also enables the BitsPerPixel option (bug #90551)
* Thu Jun 23 2005 werner@suse.de
- Switch back to old color model for bjc drivers to re-enable
  the BitsPerPixel option (bug #90551)
* Tue Jun 21 2005 werner@suse.de
- Do not check for the first directory in LIBPATH for Resources
  but for the first occurance of CMap (bug #91584)
* Wed May 04 2005 werner@suse.de
- Extend ttfont fix for 64bit architecture (#77399, #78859, #78860)
* Fri Apr 01 2005 werner@suse.de
- Make gdevcd8-cdj880.c gcc4 clean
* Fri Mar 18 2005 werner@suse.de
- Remove patch junks from library directory
* Thu Mar 17 2005 werner@suse.de
- Add check for using a pipe for older printer drivers
* Thu Mar 17 2005 werner@suse.de
- Add A4 paper sizes to print pcl of stp driver (bug #73606)
- Add fix for TrueType Fonts on 64bit architectures
- Add workaround for color switch in ps files for hpdj (bug #72932)
- Fix allocation bug in driver lx5000 (bug #73608)
* Wed Mar 16 2005 werner@suse.de
- Fix alignment in imagen driver (bug #72929)
- Fix gray mapping in stcolor driver (bug #72931) and maybe in
  hpdj driver (bug #72932)
* Mon Mar 14 2005 werner@suse.de
- Remove uint cast on pointer adresses which breaks e.g. on ia64
- Add version independent Resource directory
* Thu Mar 10 2005 werner@suse.de
- Add the driver postscript file for printer mj700v2c to file list
* Tue Mar 08 2005 werner@suse.de
- Add rc2 patch to get pdf/ps with ttf fonts working
- Also the two printers dj505j and picty180 are back
- Eplaser and other japanese printers is now part of
  esp ghostscript 8.15
- Disable ppc patch for now because rc2 seems to be
  correct fixed in the allocation engine
* Tue Mar 01 2005 werner@suse.de
- Disable redirection of %%stdout to %%stderr (bug #67027)
* Tue Mar 01 2005 werner@suse.de
- Move hplip drivers list into a file to build without hplip
* Wed Feb 23 2005 werner@suse.de
- Remove hpijs which is provided by hplip
- make.catalog and make.lost should use correct gs version
* Wed Feb 23 2005 werner@suse.de
- For stcolor.ps: the product name is now ESP Ghostscript
* Tue Feb 22 2005 werner@suse.de
- Use original patch for eplaser with gs 8.15 from Epson
* Mon Feb 21 2005 werner@suse.de
- Add workaround for broken structure alignment on ppc architecture
* Thu Feb 17 2005 werner@suse.de
- Update to esp ghostscript 8.15rc1
- Update to eplaser to 3.1.6 (bug #49979)
- Include open printing glue into gs (bug #49978)
- Add many new printers and devices and skip the broken devices
- Skip hpijs program from file list (now part of hplib sub rpm)
* Mon Feb 07 2005 ro@suse.de
- prevent re-make during make install
* Sat Feb 05 2005 schwab@suse.de
- Fix building with gcc4.
* Fri Oct 29 2004 werner@suse.de
- Move from no to nb for gimp-print library
- Add the fonts to the provide of ghostscript-mini
* Sun Oct 10 2004 schwab@suse.de
- Fix requires.
* Thu Sep 23 2004 werner@suse.de
- Make it build even with DEBUG on
* Fri Aug 13 2004 mfabian@suse.de
- Bugzilla #39451: run SuSEconfig.fonts only if it exists.
* Thu Aug 12 2004 werner@suse.de
- Just get the fonts even for ghostscript-mini
- Use gimpprint-config only once
* Tue Aug 10 2004 werner@suse.de
- Remove t1utils dependcy
* Fri Aug 06 2004 werner@suse.de
- Make Omni knowing about lib64
* Thu Aug 05 2004 werner@suse.de
- Update to Omni 0.9.1
- Update to HPIJS 1.6.1
- Update to gimp-print 4.2.7
- New package ghostscript-omni for the Omni toolkit
  now installed.
* Wed Jun 30 2004 werner@suse.de
- Fix const object to const address of object for new gcc
* Fri Jun 04 2004 werner@suse.de
- Add t1utils to neededforbuild
* Fri Jun 04 2004 werner@suse.de
- Fix name table count issue, force normal allocation (bug #41501)
- Change Epson Stylus page offset fix
- Use chown rpm macro
* Wed Apr 28 2004 mfabian@suse.de
- Bugzilla #39592: add the directories
  /usr/X11R6/lib/X11/fonts/ /usr/share/fonts/
  to the allowed directories for fonts even when -DPARANOIDSAFER
  is used to make kghostview be able to display CJK PostScript
  documents again.
* Mon Apr 26 2004 werner@suse.de
- Avoid compiler warning about strict-aliasing
* Wed Apr 14 2004 werner@suse.de
- Add Epson Stylus page offset fix
- Add cups page counting patch
* Fri Mar 26 2004 mfabian@suse.de
- more fixes for reopened Bugzilla #36778:
  set "/isFixedPitch true" for all variants of "Nimbus Mono L"
* Wed Mar 24 2004 werner@suse.de
- Choose initial modular memory chunk size to avoid crash (#35906)
* Wed Mar 24 2004 mfabian@suse.de
- Bugzilla #36778:
  add gnu-gs-fonts-std-8.11.patch to change the weight of
  "Nimbus Roman No9 L:style=Medium Italic"
  and "Nimbus Roman No9 L:style=Medium" back to "Bold" again
  instead of "Medium".
  As the patch is applied after converting to .pfa, t1utils
  is added to "# neededforbuild".
* Fri Mar 19 2004 mfabian@suse.de
- ghostscript-fonts-std subpackage:
  run SuSEconfig.fonts in %%post and %%postun,
  use %%suseconfig_fonts_prereq
* Thu Mar 18 2004 werner@suse.de
- New eplaser 3.1.3 with better support gs-7.x (request of Sun)
* Tue Mar 16 2004 werner@suse.de
- Fix cast trouble on 64 bit architectures (bug #35798)
* Thu Mar 11 2004 werner@suse.de
- Change standard fonts from version 6.0 to 8.11 (bug #35699)
* Tue Mar 02 2004 werner@suse.de
- Simply skip the malloc patch on ppc to fix bug #35028
* Thu Feb 26 2004 werner@suse.de
- Correct gimp-print version number
- Fix bug #35028 by overwriting the autodetected aligment of jmpbuf
- Add patch for gs_ttf.ps which may help on some 12 cmap ttf fonts
* Wed Feb 11 2004 werner@suse.de
- Update gimp-print to 4.2.6
- Be sure that _all_ stuff is compiled with -fno-strict-aliasing
- Enable FLAGS even for all trees
- Make aclocal.m4 of Omni more upto date
* Mon Jan 19 2004 meissner@suse.de
- Fixed some losssage from last autoconf upgrade by removing
  AC_OUTPUT for directories that are not present.
* Wed Jan 14 2004 werner@suse.de
- Add hijs cahnges for new gcc-3.4 because of trouble with
  referenced objects and simple types.
* Mon Sep 22 2003 kukuk@suse.de
- Remove lot of unecessary packages from neededforbuild
* Wed Aug 27 2003 mfabian@suse.de
- Bugzilla #29127: add similar patch to Werner's patch
  which loads Fontmap files with ".runlibfile" only if they exist
  also to the code which loads CIDFnmap files.
* Thu Aug 14 2003 werner@suse.de
- Update to espgs-7.07.1rc1
- Update to OMNI 0.9.0
- Update to (HP)IJS 1.4.1
* Mon Aug 04 2003 mfabian@suse.de
- add more fixes from the gs-cjk mailing list to gs_ttf.ps to
  make vertical printing work correctly with the kochi-substitute
  fonts.
* Mon Jul 28 2003 mfabian@suse.de
- Add gs_ttf.ps-make-kochi-substitute-work.patch from gs-cjk
  mailing list to make ghostscript-cjk work with the
  kochi-substitute fonts.
* Mon Jul 21 2003 meissner@suse.de
- Added new GLIB search path.
* Tue Jun 10 2003 okir@suse.de
- security fix for (%%pipe%%) file commands [#27300]
* Wed Jun 04 2003 ro@suse.de
- also disable pre/post scripts for subpacks in -mini case
* Mon Jun 02 2003 ro@suse.de
- completely disable subpacks in -mini case
* Mon May 26 2003 ro@suse.de
- sync with main package
* Thu May 15 2003 kukuk@suse.de
- Fix Filelist (add missing directory)
* Wed May 14 2003 ro@suse.de
- libtoolize in omni subdir
* Thu May 08 2003 mfabian@suse.de
- remove gnu-gs-fonts-std-6.0.patch (obsolete, because
  fonts.{dir,scale} are now autogenerated by
  mkfontscale/fonts-config)
- add fonts.scale.nimbus-sans-condensed as an override for
  the condensed versions of "Nimbus Sans" which mkfontscale
  cannot distinguish from the "normal" versions. Maybe this
  can be fixed in future versions of mkfontscale?
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
- fix install_info --delete call and move from preun to postun
* Thu Mar 13 2003 ro@suse.de
- removed epoch
* Mon Mar 10 2003 werner@suse.de
- Fix sigsegv within gdevcups.c (bug #24872)
* Tue Mar 04 2003 werner@suse.de
- Fix buf #23785: include fonts into source rpm due space on DVD
- Fix buf #23785: include fonts into source rpm due space on DVD
* Fri Feb 28 2003 werner@suse.de
- Fix Font Resource Path (is not identical to normal fonts path)
* Wed Feb 26 2003 kssingvo@suse.de
- fixed permissions of cups related files and directories
- fixed permissions of cups related files and directories
* Tue Feb 25 2003 ro@suse.de
- export LC_CTYPE during build
  (works around not specifying charset in message catalogs)
* Mon Feb 24 2003 ro@suse.de
- fixed build for x86_64 (copy config.sub/guess from Omni for hpijs)
* Thu Feb 20 2003 werner@suse.de
- Remove lxm3200 driver source because espgs-7.05.6 already
  includes them (bug #23890)
* Mon Feb 17 2003 mfabian@suse.de
- add "(Fontmap.X11-auto) .runlibfile" to
  /usr/share/ghostscript/*/lib/Fontmap. It's added on top to
  give the autogenerated Fontmap.X11-auto lowest priority. The
  Fontmap files included later may contain manually
  edited/packaged entries and should override anything generated
  automatically.
* Sat Feb 15 2003 ro@suse.de
- run configure in main src dir to create gs_res.ps
* Fri Feb 14 2003 werner@suse.de
- Make it build
- Fix bug #23432: use install_info rpm macro
* Thu Feb 13 2003 werner@suse.de
- Update versions: espgs 7.05.6, Omni 0.7.2, ijs 1.3.1,
  gimp
* Wed Nov 20 2002 werner@suse.de
- Initial mini ghostscript spec file which is a copy of the
  full ghostscript library spec file with switches for bulding
  minimal filter only.
openSUSE Build Service is sponsored by