source: projects/specs/trunk/g/ghostscript-fonts/ghostscript-fonts-vl.spec @ 9644

Revision 9644, 4.2 KB checked in by tomop, 9 years ago (diff)

ghostscript-fonts-5.50-4

Line 
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
9Summary: Fonts for the Ghostscript PostScript(TM) interpreter
10Summary(ja): Ghostscript ポストスクリプト(TM) インタプリタ用のフォント
11Name: ghostscript-fonts
12Version: 5.50
13Release: 4%{?_dist_release}
14License: GPLv2+ and Hershey and MIT and OFL and Public Domain
15Group: Applications/Publishing
16BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17URL: http://www.gnu.org/software/ghostscript/
18Source: gnu-gs-fonts-other-%{version}-nobch.tar.gz
19Source1: Kevin_Hartig-Font_License.txt
20Source2: SIL-Open-Font-License.txt
21# gnu-gs-fonts-other-5.50 contains fonts with a non-free license (bug #690593).
22# Therefore we use this script to remove those fonts before shipping
23# it.  Download the upstream tarball (from
24# http://ftp.gnu.org/gnu/ghostscript/) and invoke this script while in
25# the tarball's directory:
26# ./generate-tarball.sh 5.50
27Source3: generate-tarball.sh
28Requires: ghostscript
29Requires: fontconfig
30Requires(post): xorg-x11-font-utils
31Requires(post): fontconfig
32Requires(postun): fontconfig
33BuildArch: noarch
34
35%description
36Ghostscript-fonts contains a set of fonts that Ghostscript, a
37PostScript interpreter, uses to render text. These fonts are in
38addition to the fonts shared by Ghostscript and the X Window System.
39
40You'll need to install ghostscript-fonts if you're installing
41ghostscript.
42
43%description -l ja
44ghostscript-fonts には Ghostscripts ポストスクリプトインタプリタ
45でテキストをレンダリングするために必要なフォント一式が含まれてい
46ます。このフォントは Ghostscript と X ウィンドウシステムの両方で
47利用されます。
48
49ghostscript をインストールする場合は ghostscript-fonts もインス
50トールする必要があります。
51
52%prep
53%setup -q -c ghostscript-fonts-%{version}
54cp -p %{SOURCE1} %{SOURCE2} .
55
56# Remove Hershey fonts as they cause problems (bug #707007).
57find fonts -type f | xargs grep -lw Hershey | xargs rm -f
58
59%build
60
61%install
62%__rm -rf $RPM_BUILD_ROOT
63%__mkdir_p $RPM_BUILD_ROOT%{fontdir}
64%__cp -p fonts/* $RPM_BUILD_ROOT%{fontdir}
65
66# Touch ghosted files
67touch $RPM_BUILD_ROOT%{fontdir}/fonts.{dir,scale}
68
69# Install catalogue symlink
70%__mkdir_p $RPM_BUILD_ROOT%{catalogue}
71%__ln_s -f %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript
72
73%post
74%{__mkfontscale} %{fontdir} ||:
75%{__mkfontdir} %{fontdir} ||:
76%{__fccache} %{_datadir}/fonts ||:
77
78%postun
79if [ "$1" = "0" ]; then
80   %{__fccache} %{_datadir}/fonts ||:
81fi
82
83%clean
84%__rm -rf $RPM_BUILD_ROOT
85
86%files
87%defattr(-,root,root,-)
88%{_datadir}/fonts/default/ghostscript
89%{catalogue}/default-ghostscript
90
91%changelog
92* Sat Jul 4 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.50-4
93- removed files that have problems.
94
95* Mon Jan 20 2014 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-3
96- rebuild
97
98* Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-2
99- added %%{catalogue}/default-ghostscript
100- fixed BuildRoot:, URL: tags
101
102* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 5.50-1vl5
103- applied new versioning policy, spec in utf-8
104
105* Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl2
106- rebuild to add gpg sign
107- add Japanese summary and description.
108
109* Mon Feb 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl1
110- just rebuild with Vine Linux
111
112* Mon Feb 14 2000 Bernhard Rosenkraenzer <bero@redhat.com>
113- 5.50
114
115* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
116- auto rebuild in the new build environment (release 3)
117
118* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
119- Injected new description and group.
120
121* Wed Jan 13 1999 Preston Brown <pbrown@redhat.com>
122- renamed package to be consistent with new ghostscript.
123
124* Fri Nov 13 1998 Preston Brown <pbrown@redhat.com>
125- removed the std fonts...now shared between X11 and gs with URW fonts pkg.
126
127* Thu Jul  2 1998 Jeff Johnson <jbj@redhat.com>
128- update to 4.03.
129
130* Mon May 04 1998 Erik Troan <ewt@redhat.com>
131- set the owner and group of all of the files to 0.0
132
133* Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
134- made a noarch package
Note: See TracBrowser for help on using the repository browser.