# # spec file for package ghostpdl # Name: ghostpdl Summary: Implementation of the PCL-5 and PCL-XL family of page description languages Version: 10.02.1 Release: 2.37 License: AGPL-3.0 Url: http://www.ghostscript.com Group: Productivity/Graphics/Convertors #Source: http://downloads.ghostscript.com/public/%{name}-%{version}.tar.bz2 Source: http://downloads.ghostscript.com/public/%{name}-%{version}.tar.gz # eisfair special, set gs in datadir 9.19 -> gs Patch1: ghostpdl-1.19-gsdatadir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This is an implemenation of several page description languages on top of the Ghostscript graphics library. Currently the languages PCL, PCLXL, and XPS are production quality implementations and SVG is under development and experimental. %prep %setup -q %patch -P 1 %build # compiler optimization needs to be reduced on 10.0 (only 10.0), # builds and runs, but doesn't render some input properly %define xopts %{nil} %define gs_font_path %{_datadir}/fonts/truetype:%{_datadir}/fonts/Type1:%{_datadir}/fonts/CID:%{_datadir}/fonts/URW %if 0%{?suse_version} == 1000 %define xopts XCFLAGS=-O1 %endif export LDFLAGS='-ldeflate' %configure --prefix=/usr \ --without-x \ --enable-compile-inits \ --enable-cups \ --disable-gtk \ --without-omni \ --with-fontpath==%{gs_font_path}:%{_datadir}/ghostscript \ --with-ijs \ --enable-dbus make %{?_smp_mflags} # pcl %xopts %install mkdir -p %{buildroot} %__install -Dsm 0755 bin/gpcl6 %{buildroot}%{_bindir}/pcl6 cp -a pcl/tools/pcl2pdf %{buildroot}%{_bindir}/pcl2pdf cp -a pcl/tools/pcl2pdfwr %{buildroot}%{_bindir}/pcl2pdfwr cp -a pcl/tools/plot2pdf.sh %{buildroot}%{_bindir}/plot2pdf mkdir -p %{buildroot}%{_datadir}/fonts/truetype cp -a pcl/urwfonts/*.ttf %{buildroot}%{_datadir}/fonts/truetype %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/pcl6 %{_bindir}/pcl2pdf %{_bindir}/pcl2pdfwr %{_bindir}/plot2pdf %{_datadir}/fonts/truetype/*.ttf %doc pcl/COPYING.AFPL pcl/LICENSE pcl/NEWS pcl/README.txt %changelog * Sun Aug 09 2020 holgerbruenjes@gmx.net - update version 9.52 * Sun Jul 01 2018 holgerbruenjes@gmx.net - update version 9.23