Accepting request 838198 from home:MargueriteSu:branches:M17N:fonts

- ghostscript gs >= 9.50 needs "-dNOSAFER" to operate on files
  but pfbtopfa doesn't have that param

OBS-URL: https://build.opensuse.org/request/show/838198
OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/ghostscript-fonts-grops?expand=0&rev=17
This commit is contained in:
Marguerite Su 2020-09-28 08:25:49 +00:00 committed by Git OBS Bridge
parent 3dfdc1f408
commit 5275cc26fb
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