Dominique Leuenberger 2020-09-28 12:29:42 +00:00 committed by Git OBS Bridge
commit 56b99b92a5
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 28 08:23:56 UTC 2020 - Marguerite Su <i@marguerite.su>
- ghostscript gs >= 9.50 needs "-dNOSAFER" to operate on files
but pfbtopfa doesn't have that param
-------------------------------------------------------------------
Sat Dec 15 20:47:32 UTC 2018 - thomas.schraitle@suse.com

View File

@ -46,8 +46,13 @@ A version of PostScript® driver for Groff to support characters outside ISO Lat
%build
%define gs_fonts %{_datadir}/ghostscript/fonts
%define import_font() ln -s -T "%{gs_fonts}/%1.afm" "%2.afm" && pfbtopfa "%{gs_fonts}/%1.pfb" "devps/%1.pfa"
%define gs_version %(gs --version)
%define gs_ver %(gs --version | sed "s/\\.//")
%if %{gs_ver} >= 950
%define import_font() ln -s -T "%{gs_fonts}/%1.afm" "%2.afm" && gs -P- -dNOSAFER -dNODISPLAY -- pfbtopfa.ps %{gs_fonts}/%1.pfb devps/%1.pfa
%else
%define import_font() ln -s -T "%{gs_fonts}/%1.afm" "%2.afm" && pfbtopfa %{gs_fonts}/%1.pfb devps/%1.pfa
%endif
%define gs_docdir %(if [ -d "%{_datadir}/ghostscript/%{gs_version}/doc" ] ; then echo "%{_datadir}/ghostscript/%{gs_version}/doc" ; else echo "%{_datadir}/doc/ghostscript/%{gs_version}"; fi)
cp %{S:3} .
mkdir devps