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 |
---|
10 | Summary(ja): Ghostscript ポストスクリプト(TM) インタプリタ用のフォント |
---|
11 | Name: ghostscript-fonts |
---|
12 | Version: 5.50 |
---|
13 | Release: 3%{?_dist_release} |
---|
14 | License: GPL |
---|
15 | Group: Applications/Publishing |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
17 | URL: http://www.gnu.org/software/ghostscript/ |
---|
18 | Source: ftp://ftp.cs.wisc.edu/pub/ghost/gnu/gs550/gnu-gs-fonts-other-%{version}.tar.gz |
---|
19 | Requires: ghostscript |
---|
20 | Requires: fontconfig |
---|
21 | Requires(post): xorg-x11-font-utils |
---|
22 | Requires(post): fontconfig |
---|
23 | Requires(postun): fontconfig |
---|
24 | BuildArch: noarch |
---|
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 | |
---|
46 | %build |
---|
47 | |
---|
48 | %install |
---|
49 | %__rm -rf $RPM_BUILD_ROOT |
---|
50 | %__mkdir_p $RPM_BUILD_ROOT%{fontdir} |
---|
51 | %__cp -p fonts/* $RPM_BUILD_ROOT%{fontdir} |
---|
52 | |
---|
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 | |
---|
67 | %clean |
---|
68 | %__rm -rf $RPM_BUILD_ROOT |
---|
69 | |
---|
70 | %files |
---|
71 | %defattr(-,root,root,-) |
---|
72 | %{_datadir}/fonts/default/ghostscript |
---|
73 | %{catalogue}/default-ghostscript |
---|
74 | |
---|
75 | %changelog |
---|
76 | * Mon Jan 20 2014 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-3 |
---|
77 | - rebuild |
---|
78 | |
---|
79 | * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-2 |
---|
80 | - added %%{catalogue}/default-ghostscript |
---|
81 | - fixed BuildRoot:, URL: tags |
---|
82 | |
---|
83 | * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 5.50-1vl5 |
---|
84 | - applied new versioning policy, spec in utf-8 |
---|
85 | |
---|
86 | * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl2 |
---|
87 | - rebuild to add gpg sign |
---|
88 | - add Japanese summary and description. |
---|
89 | |
---|
90 | * Mon Feb 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl1 |
---|
91 | - just rebuild with Vine Linux |
---|
92 | |
---|
93 | * Mon Feb 14 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
94 | - 5.50 |
---|
95 | |
---|
96 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
97 | - auto rebuild in the new build environment (release 3) |
---|
98 | |
---|
99 | * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com> |
---|
100 | - Injected new description and group. |
---|
101 | |
---|
102 | * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com> |
---|
103 | - renamed package to be consistent with new ghostscript. |
---|
104 | |
---|
105 | * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com> |
---|
106 | - removed the std fonts...now shared between X11 and gs with URW fonts pkg. |
---|
107 | |
---|
108 | * Thu Jul 2 1998 Jeff Johnson <jbj@redhat.com> |
---|
109 | - update to 4.03. |
---|
110 | |
---|
111 | * Mon May 04 1998 Erik Troan <ewt@redhat.com> |
---|
112 | - set the owner and group of all of the files to 0.0 |
---|
113 | |
---|
114 | * Tue Sep 23 1997 Erik Troan <ewt@redhat.com> |
---|
115 | - made a noarch package |
---|