Summary: A PostScript interpreter and renderer Name: clazzes-ghostscript Packager: Wolfgang Glas Version: 9.54.0 Release: 1 License: AGPLv3+ and Redistributable, no modification permitted URL: http://www.ghostscript.com/ Group: Applications/Publishing Source: clazzes-ghostscript-%{version}.tar.gz Requires: urw-fonts >= 1.1, glibc BuildRequires: gcc, make, wget BuildRequires: pkgconfig BuildRequires: glibc-devel BuildRequires: patch BuildRoot: /var/tmp/%{name}-buildroot ###XBCS-PBA-Category: ghostscript ###XBCS-PBA-Generation: 2 ###XBCS-PBA-Distributions: centos7 centos8 ###XBCS-PBA-Repository: rpm.clazzes.org %define debug_package %{nil} %description Ghostscript is a set of software that provides a PostScript interpreter, a set of C procedures (the Ghostscript library, which implements the graphics capabilities in the PostScript language) and an interpreter for Portable Document Format (PDF) files. Ghostscript translates PostScript code into many common, bitmapped formats, like those understood by your printer or screen. Ghostscript is normally used to display PostScript files and to print PostScript files to non-PostScript printers. If you need to display PostScript files or print them to non-PostScript printers, you should install ghostscript. If you install ghostscript, you also need to install the ghostscript-fonts package. %prep %setup -q %build rm -rf ghostscript-%{version} ./fetch.sh tar xzf ghostscript-%{version}.tar.gz jpv=$(sed 's/^[0-9a-f]\{64,64\} jpegsrc\.v\(.*\)\.tar\.gz$/\1/p;d' sources.sha256) FONTPATH= for path in \ %{_datadir}/ghostscript/fonts \ %{_datadir}/fonts/urw-base35 \ %{_datadir}/fonts/google-droid do FONTPATH="$FONTPATH${FONTPATH:+:}$path" done cd ghostscript-%{version} patch -p1 < ../patches/ghostpdl-CVE-2021-3781-fix-a9bd3dec9fde.patch rm -rf jpeg tar xzf ../jpegsrc.v$jpv.tar.gz mv jpeg-$jpv jpeg ./configure --prefix=/usr/clazzes-ghostscript --enable-dynamic \ --disable-cups --disable-gtk --without-x \ --with-fontpath="$FONTPATH" make %install rm -rf $RPM_BUILD_ROOT mkdir -pv $RPM_BUILD_ROOT/usr/clazzes-ghostscript cd ghostscript-%{version} make DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) /usr/clazzes-ghostscript %changelog