Accepting request 601823 from M17N:fonts

- expand groff_version macro
- fix factory build

OBS-URL: https://build.opensuse.org/request/show/601823
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghostscript-fonts-grops?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2018-04-30 20:54:00 +00:00 committed by Git OBS Bridge
commit 49d4c5d97f
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Apr 27 07:03:13 UTC 2018 - i@marguerite.su
- expand groff_version macro
-------------------------------------------------------------------
Fri Apr 27 06:47:46 UTC 2018 - i@marguerite.su
- fix factory build
-------------------------------------------------------------------
Thu Dec 10 16:25:12 UTC 2015 - schwab@suse.de

View File

@ -30,6 +30,9 @@ Source2: zzz-groff-gs.csh
BuildArch: noarch
BuildRequires: fontforge
BuildRequires: ghostscript
%if 0%{?suse_version} > 1320
BuildRequires: ghostscript-fonts-std
%endif
BuildRequires: groff-full
%requires_eq groff
@ -41,8 +44,9 @@ 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"
cp -t. '%{_datadir}'/ghostscript/*/doc/COPYING
%define gs_version %(gs --version)
%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 -t. %{gs_docdir}/COPYING
mkdir devps
while read fn fa
# Grops font generator expects conventional font file names;
@ -66,6 +70,7 @@ echo "${fn}" "${pf}"
done >>devps/download
%install
%define groff_version %(groff -v | head -n 1 | sed 's/.*\s//')
target="%{buildroot}%{_datadir}/groff/%{groff_version}/font/gs"
install -d "${target}"
mv "-t${target}" devps