Accepting request 838199 from M17N:fonts
OBS-URL: https://build.opensuse.org/request/show/838199 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript-fonts-grops?expand=0&rev=8
This commit is contained in:
commit
56b99b92a5
@ -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
|
Sat Dec 15 20:47:32 UTC 2018 - thomas.schraitle@suse.com
|
||||||
|
|
||||||
|
@ -46,8 +46,13 @@ A version of PostScript® driver for Groff to support characters outside ISO Lat
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%define gs_fonts %{_datadir}/ghostscript/fonts
|
%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_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)
|
%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} .
|
cp %{S:3} .
|
||||||
mkdir devps
|
mkdir devps
|
||||||
|
Loading…
Reference in New Issue
Block a user