1 | %define _fontdir %{_datadir}/fonts/TrueType-ipafont |
---|
2 | |
---|
3 | Name: TrueType-ipafont |
---|
4 | Version: 3.02 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: IPA TrueType Fonts |
---|
7 | Summary(ja): IPA の日本語 TrueType フォント |
---|
8 | Group: User Interface/X |
---|
9 | License: IPA Font License Agreement v1.0 |
---|
10 | URL: http://ossipedia.ipa.go.jp/ipafont/ |
---|
11 | |
---|
12 | Source: IPAfont00302.zip |
---|
13 | Source10: ipafont-mincho.ttfconf |
---|
14 | Source11: ipafont-gothic.ttfconf |
---|
15 | Source20: cidfmap.ja.ipafont-mincho |
---|
16 | Source21: cidfmap.ja.ipafont-gothic |
---|
17 | Source30: 59-ipa-mincho.conf |
---|
18 | Source31: 60-ipa-gothic.conf |
---|
19 | |
---|
20 | BuildArch: noarch |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | Obsoletes: TrueType-ipafont |
---|
23 | Requires: TrueType-ipafont-mincho = %{version} |
---|
24 | Requires: TrueType-ipafont-gothic = %{version} |
---|
25 | Requires: TrueType-ipafont-doc = %{version} |
---|
26 | |
---|
27 | %description |
---|
28 | This package is meta package to install both IPAMincho and IPAGothic |
---|
29 | fonts. |
---|
30 | |
---|
31 | %description -l ja |
---|
32 | このパッケージは独立行政法人情報処理推進機構のIPAフォントの明朝、ゴシック |
---|
33 | 両書体をインストールするためのメタパッケージです。このパッケージで |
---|
34 | 以下の5書体がインストールされます。 |
---|
35 | (IPA明朝、IPAP明朝、IPAゴシック、IPAPゴシック) |
---|
36 | |
---|
37 | %package mincho |
---|
38 | Summary: IPAMincho TrueType Fonts |
---|
39 | Summary(ja): IPA明朝 True Type フォント |
---|
40 | Group: User Interface/X |
---|
41 | Requires: TrueType-ipafont-doc |
---|
42 | |
---|
43 | %description mincho |
---|
44 | This package includes IPA Mincho TrueType fonts. |
---|
45 | |
---|
46 | %description -l ja mincho |
---|
47 | このパッケージには独立行政法人情報処理推進機構のIPA明朝フォントが含まれています。 |
---|
48 | (IPA明朝、IPAP明朝) |
---|
49 | |
---|
50 | %package gothic |
---|
51 | Summary: IPA Gothic TrueType Fonts |
---|
52 | Summary(ja): IPA Gothic 日本語 True Type フォント |
---|
53 | Group: User Interface/X |
---|
54 | Requires: TrueType-ipafont-doc |
---|
55 | |
---|
56 | %description gothic |
---|
57 | This package includes IPA Gothic TrueType fonts. |
---|
58 | This font is distributable without modification. |
---|
59 | (see /usr/share/doc/TrueType-ipafont/enduser_license.txt for details) |
---|
60 | |
---|
61 | %description -l ja gothic |
---|
62 | このパッケージには独立行政法人情報処理推進機構のIPAゴシックフォントが含まれて |
---|
63 | います。(IPAゴシック、IPAPゴシック) |
---|
64 | |
---|
65 | %package doc |
---|
66 | Summary: IPA Font Documents |
---|
67 | Summary(ja): IPA フォントドキュメント |
---|
68 | Group: User Interface/X |
---|
69 | |
---|
70 | %description doc |
---|
71 | This package includes important documents for IPA fonts includes enduser |
---|
72 | license. |
---|
73 | |
---|
74 | %description -l ja doc |
---|
75 | このパッケージには独立行政法人情報処理推進機構のIPAフォントのライセンス |
---|
76 | を含むドキュメント類が含まれています。 |
---|
77 | |
---|
78 | %prep |
---|
79 | %setup -q -n IPAfont00302 |
---|
80 | |
---|
81 | %build |
---|
82 | |
---|
83 | %install |
---|
84 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
---|
85 | cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir} |
---|
86 | cp -f %{SOURCE10} %{SOURCE11} $RPM_BUILD_ROOT%{_fontdir} |
---|
87 | |
---|
88 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.{avail,d} |
---|
89 | install -m664 %{SOURCE30} %{SOURCE31} $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/ |
---|
90 | for i in $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/*.conf |
---|
91 | do |
---|
92 | ln -sf ../conf.avail/$(basename $i) $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.d/ |
---|
93 | done |
---|
94 | |
---|
95 | # install ghostscript8 cidfmap |
---|
96 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d |
---|
97 | install -m644 %{SOURCE20} %{SOURCE21} $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d |
---|
98 | |
---|
99 | # add fontpath.d symlinks |
---|
100 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/fontpath.d |
---|
101 | ln -sf /usr/share/fonts/%{name} $RPM_BUILD_ROOT%{_sysconfdir}/X11/fontpath.d/ |
---|
102 | |
---|
103 | %clean |
---|
104 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
---|
105 | rm -rf ${RPM_BUILD_ROOT} |
---|
106 | fi |
---|
107 | |
---|
108 | %post mincho |
---|
109 | %__font_install_post %{_fontdir} |
---|
110 | |
---|
111 | %post gothic |
---|
112 | %__font_install_post %{_fontdir} |
---|
113 | |
---|
114 | %postun mincho |
---|
115 | %__font_install_postun %{_fontdir} |
---|
116 | |
---|
117 | %postun gothic |
---|
118 | %__font_install_postun %{_fontdir} |
---|
119 | |
---|
120 | %files |
---|
121 | |
---|
122 | %files doc |
---|
123 | %doc *.txt |
---|
124 | |
---|
125 | %files mincho |
---|
126 | %{_fontdir}/ipam*.ttf |
---|
127 | %{_fontdir}/ipafont-mincho.ttfconf |
---|
128 | %config %{_datadir}/ghostscript/conf.d/cidfmap.ja.ipafont-mincho |
---|
129 | %{_sysconfdir}/fonts/conf.avail/*-ipa-mincho.conf |
---|
130 | %{_sysconfdir}/X11/fontpath.d/%{name} |
---|
131 | %config(missingok,noreplace) %{_sysconfdir}/fonts/conf.d/*-ipa-mincho.conf |
---|
132 | |
---|
133 | %files gothic |
---|
134 | %{_fontdir}/ipag*.ttf |
---|
135 | %{_fontdir}/ipafont-gothic.ttfconf |
---|
136 | %config %{_datadir}/ghostscript/conf.d/cidfmap.ja.ipafont-gothic |
---|
137 | %{_sysconfdir}/fonts/conf.avail/*-ipa-gothic.conf |
---|
138 | %config(missingok,noreplace) %{_sysconfdir}/fonts/conf.d/*-ipa-gothic.conf |
---|
139 | |
---|
140 | |
---|
141 | %changelog |
---|
142 | * Fri Sep 24 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.02-1 |
---|
143 | - update to IPAfont 00302 |
---|
144 | - update ttfconf/cidfmap |
---|
145 | |
---|
146 | * Mon Aug 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.01-3 |
---|
147 | - add fontpath.d symlink |
---|
148 | |
---|
149 | * Wed Jun 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.01-2 |
---|
150 | - use fixed width font for ghostscript. |
---|
151 | |
---|
152 | * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.01-1 |
---|
153 | - update to IPAfont 00301 |
---|
154 | - drop IPAUIGothic |
---|
155 | - update License tag |
---|
156 | - OSI approved license 'IPA Font License Agreement v1.0' |
---|
157 | - add fontconfig file |
---|
158 | |
---|
159 | * Thu Jan 08 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-2 |
---|
160 | - fix typo in cidfmap.ja.ipafont |
---|
161 | - update vine.map and exec updmap-sys on %%post/%%postun |
---|
162 | |
---|
163 | * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-1 |
---|
164 | - add gs8 cidfmap |
---|
165 | - move font files to new location |
---|
166 | - new versioning policy, spec in utf-8 |
---|
167 | |
---|
168 | * Fri Jan 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-0vl2 |
---|
169 | - remove Provides: TrueTypeFonts_jp |
---|
170 | - ipa*font is not free and should not be default font. |
---|
171 | |
---|
172 | * Mon Oct 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-0vl1 |
---|
173 | - initial build with new ipafont license |
---|
174 | - sprit mincho and gothic as an independent package |
---|
175 | - sprit readme and license to doc package |
---|
176 | - drop M+IPA font which is not allowed by new enduser license. |
---|