[3503] | 1 | %define fontdir %{_datadir}/fonts/default/ghostscript |
---|
| 2 | %define catalogue %{_sysconfdir}/X11/fontpath.d |
---|
| 3 | |
---|
| 4 | # font manipulation macro |
---|
| 5 | %define __mkfontscale umask 133;%{_bindir}/mkfontscale |
---|
| 6 | %define __mkfontdir umask 133;%{_bindir}/mkfontdir |
---|
| 7 | %define __fccache umask 133;which fc-cache &> /dev/null && fc-cache |
---|
| 8 | |
---|
| 9 | Summary: Fonts for the Ghostscript PostScript(TM) interpreter |
---|
[521] | 10 | Summary(ja): Ghostscript ポストスクリプト(TM) インタプリタ用のフォント |
---|
| 11 | Name: ghostscript-fonts |
---|
| 12 | Version: 5.50 |
---|
[3503] | 13 | Release: 2%{?_dist_release} |
---|
[521] | 14 | License: GPL |
---|
| 15 | Group: Applications/Publishing |
---|
[3503] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 17 | URL: http://www.gnu.org/software/ghostscript/ |
---|
[521] | 18 | Source: ftp://ftp.cs.wisc.edu/pub/ghost/gnu/gs550/gnu-gs-fonts-other-%{version}.tar.gz |
---|
| 19 | Requires: ghostscript |
---|
[3503] | 20 | Requires: fontconfig |
---|
| 21 | Requires(post): xorg-x11-font-utils |
---|
| 22 | Requires(post): fontconfig |
---|
| 23 | Requires(postun): fontconfig |
---|
| 24 | BuildArch: noarch |
---|
[521] | 25 | |
---|
| 26 | %description |
---|
| 27 | Ghostscript-fonts contains a set of fonts that Ghostscript, a |
---|
| 28 | PostScript interpreter, uses to render text. These fonts are in |
---|
| 29 | addition to the fonts shared by Ghostscript and the X Window System. |
---|
| 30 | |
---|
| 31 | You'll need to install ghostscript-fonts if you're installing |
---|
| 32 | ghostscript. |
---|
| 33 | |
---|
| 34 | %description -l ja |
---|
| 35 | ghostscript-fonts には Ghostscripts ポストスクリプトインタプリタ |
---|
| 36 | でテキストをレンダリングするために必要なフォント一式が含まれてい |
---|
| 37 | ます。このフォントは Ghostscript と X ウィンドウシステムの両方で |
---|
| 38 | 利用されます。 |
---|
| 39 | |
---|
| 40 | ghostscript をインストールする場合は ghostscript-fonts もインス |
---|
| 41 | トールする必要があります。 |
---|
| 42 | |
---|
| 43 | %prep |
---|
| 44 | %setup -q -c ghostscript-fonts-%{version} |
---|
| 45 | |
---|
[3503] | 46 | %build |
---|
| 47 | |
---|
[521] | 48 | %install |
---|
[3503] | 49 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 50 | %__mkdir_p $RPM_BUILD_ROOT%{fontdir} |
---|
| 51 | %__cp -p fonts/* $RPM_BUILD_ROOT%{fontdir} |
---|
[521] | 52 | |
---|
[3503] | 53 | # Install catalogue symlink |
---|
| 54 | %__mkdir_p $RPM_BUILD_ROOT%{catalogue} |
---|
| 55 | %__ln_s -f %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript |
---|
| 56 | |
---|
| 57 | %post |
---|
| 58 | %{__mkfontscale} %{fontdir} ||: |
---|
| 59 | %{__mkfontdir} %{fontdir} ||: |
---|
| 60 | %{__fccache} %{_datadir}/fonts ||: |
---|
| 61 | |
---|
| 62 | %postun |
---|
| 63 | if [ "$1" = "0" ]; then |
---|
| 64 | %{__fccache} %{_datadir}/fonts ||: |
---|
| 65 | fi |
---|
| 66 | |
---|
[521] | 67 | %clean |
---|
[3503] | 68 | %__rm -rf $RPM_BUILD_ROOT |
---|
[521] | 69 | |
---|
| 70 | %files |
---|
| 71 | %defattr(-,root,root,-) |
---|
| 72 | %{_datadir}/fonts/default/ghostscript |
---|
[3503] | 73 | %{catalogue}/default-ghostscript |
---|
[521] | 74 | |
---|
| 75 | %changelog |
---|
[3503] | 76 | * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-2 |
---|
| 77 | - added %%{catalogue}/default-ghostscript |
---|
| 78 | - fixed BuildRoot:, URL: tags |
---|
| 79 | |
---|
[521] | 80 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 5.50-1vl5 |
---|
| 81 | - applied new versioning policy, spec in utf-8 |
---|
| 82 | |
---|
| 83 | * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl2 |
---|
| 84 | - rebuild to add gpg sign |
---|
| 85 | - add Japanese summary and description. |
---|
| 86 | |
---|
| 87 | * Mon Feb 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl1 |
---|
| 88 | - just rebuild with Vine Linux |
---|
| 89 | |
---|
| 90 | * Mon Feb 14 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
| 91 | - 5.50 |
---|
| 92 | |
---|
| 93 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 94 | - auto rebuild in the new build environment (release 3) |
---|
| 95 | |
---|
| 96 | * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com> |
---|
| 97 | - Injected new description and group. |
---|
| 98 | |
---|
| 99 | * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com> |
---|
| 100 | - renamed package to be consistent with new ghostscript. |
---|
| 101 | |
---|
| 102 | * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com> |
---|
| 103 | - removed the std fonts...now shared between X11 and gs with URW fonts pkg. |
---|
| 104 | |
---|
| 105 | * Thu Jul 2 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 106 | - update to 4.03. |
---|
| 107 | |
---|
| 108 | * Mon May 04 1998 Erik Troan <ewt@redhat.com> |
---|
| 109 | - set the owner and group of all of the files to 0.0 |
---|
| 110 | |
---|
| 111 | * Tue Sep 23 1997 Erik Troan <ewt@redhat.com> |
---|
| 112 | - made a noarch package |
---|