diff --git a/ghostscript-fonts-grops.changes b/ghostscript-fonts-grops.changes index 22d8c8d..607466d 100644 --- a/ghostscript-fonts-grops.changes +++ b/ghostscript-fonts-grops.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 9 09:12:33 CET 2014 - tiwai@suse.de + +- add sh/csh profiles for setting $GROFF_FONT_PATH (bnc#856842) + ------------------------------------------------------------------- Wed Jan 8 08:22:49 CET 2014 - tiwai@suse.de diff --git a/ghostscript-fonts-grops.spec b/ghostscript-fonts-grops.spec index bdde3f8..07f60a2 100644 --- a/ghostscript-fonts-grops.spec +++ b/ghostscript-fonts-grops.spec @@ -25,6 +25,8 @@ Summary: Ghostscript fonts imported to groff for use with grops License: GPL-2.0 Group: Productivity/Publishing/Troff Source: gsalias.txt +Source1: zzz-groff-gs.sh +Source2: zzz-groff-gs.csh BuildArch: noarch BuildRequires: fontforge BuildRequires: ghostscript @@ -67,10 +69,14 @@ groffver=$(readlink %{_datadir}/groff/current) target="%{buildroot}%{_datadir}/groff/$groffver/font/gs" install -d "${target}" mv "-t${target}" devps +mkdir -p %{buildroot}/etc/profile.d +install -c -m 0644 %{S:1} %{buildroot}/etc/profile.d +install -c -m 0644 %{S:2} %{buildroot}/etc/profile.d %files %defattr(-,root,root) %doc COPYING %{_datadir}/* +/etc/profile.d/* %changelog diff --git a/zzz-groff-gs.csh b/zzz-groff-gs.csh new file mode 100644 index 0000000..c94706a --- /dev/null +++ b/zzz-groff-gs.csh @@ -0,0 +1,2 @@ +# this may be $LANG-dependent +setenv GROFF_FONT_PATH /usr/share/groff/current/font/gs diff --git a/zzz-groff-gs.sh b/zzz-groff-gs.sh new file mode 100644 index 0000000..6f1d072 --- /dev/null +++ b/zzz-groff-gs.sh @@ -0,0 +1,3 @@ +# this may be $LANG-dependent +export GROFF_FONT_PATH=/usr/share/groff/current/font/gs +