From 87c06d081bb88d07884363e7a23555497b97be95379e8edc0a478a0697e1d28a Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 9 Jan 2014 08:52:04 +0000 Subject: [PATCH] Accepting request 213264 from home:tiwai:branches:M17N:fonts - add sh/csh profiles for setting $GROFF_FONT_PATH (bnc#856842) OBS-URL: https://build.opensuse.org/request/show/213264 OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/ghostscript-fonts-grops?expand=0&rev=4 --- ghostscript-fonts-grops.changes | 5 +++++ ghostscript-fonts-grops.spec | 6 ++++++ zzz-groff-gs.csh | 2 ++ zzz-groff-gs.sh | 3 +++ 4 files changed, 16 insertions(+) create mode 100644 zzz-groff-gs.csh create mode 100644 zzz-groff-gs.sh 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 +