commit 9125aafdaac1eea9124d956b8c0c74c40338b43b20a34c49e9e7dabd25582c83 Author: Marguerite Su Date: Sat Dec 28 13:33:08 2013 +0000 Accepting request 212355 from home:yecril71pl A version of PostScript® driver for Groff to support characters outside ISO Latin 1 character set (bnc#856842). OBS-URL: https://build.opensuse.org/request/show/212355 OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/ghostscript-fonts-grops?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/ghostscript-fonts-grops.changes b/ghostscript-fonts-grops.changes new file mode 100644 index 0000000..2803bf0 --- /dev/null +++ b/ghostscript-fonts-grops.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Dec 27 13:47:07 UTC 2013 - giecrilj@stegny.2a.pl + +- Created from scratch (inspired by personal communication with Werner Lemberg) + diff --git a/ghostscript-fonts-grops.spec b/ghostscript-fonts-grops.spec new file mode 100644 index 0000000..ac78717 --- /dev/null +++ b/ghostscript-fonts-grops.spec @@ -0,0 +1,55 @@ +Name: ghostscript-fonts-grops +Version: 1.22.2 +Release: 0 +Url: http://www.gnu.org/software/groff/groff.html +Requires: groff = %{version} +Summary: Ghostscript fonts imported to groff for use with grops +License: GPL-2.0 +Source: gsalias.txt +BuildArch: noarch +BuildRequires: ghostscript groff-full fontforge + +%description +A version of PostScript® driver for Groff to support characters outside ISO Latin 1 character set. + +%prep + +%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 +mkdir devps +while read fn fa +# Grops font generator expects conventional font file names; +# the substitutes provided by ghostscript must be linked accordingly. +# The link is needed only at build time. +# Ghostscript substitutes stripped fonts, full fonts must be embedded in the printout. +# Groff only knows how to embed PFA fonts. +do %{import_font $fn $fa} +done < '%{S:0}' +cd devps +ln -s -t. '%{_datadir}/groff/current/font/devps/generate' +make -fgenerate/Makefile afmdir=.. +# Register fonts to be embedded +cd .. +for f in *.afm +do pf="$(readlink "${f}")" +pf="${pf##*/}" +pf="${pf:0:-4}.pfa" +read<"devps/${pf}" decl fn ver +echo "${fn}" "${pf}" +done >>devps/download + + +%install +target='%{buildroot}%{_datadir}/groff/current/font/gs' +install -d "${target}" +mv "-t${target}" devps + +%files +%defattr(-,root,root) +%doc COPYING +%{_datadir}/* + +%changelog diff --git a/gsalias.txt b/gsalias.txt new file mode 100644 index 0000000..5c0434d --- /dev/null +++ b/gsalias.txt @@ -0,0 +1,35 @@ +a010013l avangbk +a010033l avangbko +a010015l avangd +a010035l avangdo +b018015l bookmd +b018035l bookmdi +b018012l bookml +b018032l bookmli +n022003l couri +n022004l courib +n022024l couribo +n022023l courio +n019003l helve +n019004l helveb +n019024l helvebo +n019043l helven +n019044l helvenb +n019064l helvenbo +n019063l helveno +n019023l helveo +c059016l newcsb +c059036l newcsbi +c059033l newcsi +c059013l newcsr +p052004l palatb +p052024l palatbi +p052023l palati +p052003l palatr +s050000l symbol +n021004l timesb +n021024l timesbi +n021023l timesi +n021003l timesr +z003034l zapfcmi +d050000l zapfd