1 | %define fontname ipaexfont |
---|
2 | %define _fontdir %{_datadir}/fonts/OpenType-%{fontname} |
---|
3 | |
---|
4 | Name: OpenType-%{fontname} |
---|
5 | Summary: IPAex Fonts - JIS X 0213:2004 compliant OpenType fonts |
---|
6 | Summary(ja): IPAex フォント - JIS X 0213:2004に準拠した OpenType フォント |
---|
7 | Version: 4.01 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | Group: User Interface/X |
---|
10 | Vendor: Project Vine |
---|
11 | Distribution: Vine Linux |
---|
12 | |
---|
13 | License: IPA Font License v1.0 |
---|
14 | URL: https://ipafont.ipa.go.jp/ |
---|
15 | Source0: https://ipafont.ipa.go.jp/IPAexfont/IPAexfont00401.zip |
---|
16 | |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | BuildArch: noarch |
---|
19 | |
---|
20 | BuildRequires: unzip |
---|
21 | |
---|
22 | Requires: OpenType-%{fontname}-mincho = %{version} |
---|
23 | Requires: OpenType-%{fontname}-gothic = %{version} |
---|
24 | Requires: OpenType-%{fontname}-doc |
---|
25 | |
---|
26 | %description |
---|
27 | IPAex Fonts are JIS X 0213:2004 compliant OpenType fonts |
---|
28 | based on TrueType outlines. |
---|
29 | |
---|
30 | This package is meta package to install Mincho and Gothic. |
---|
31 | |
---|
32 | %description -l ja |
---|
33 | IPAex フォントは、JIS X 0213:2004に準拠した |
---|
34 | TrueType アウトラインベースの OpenType フォントです。 |
---|
35 | |
---|
36 | このパッケージは明朝、ゴシック両書体をインストールするためのメタパッケージです。 |
---|
37 | |
---|
38 | #-- 明朝 |
---|
39 | %package mincho |
---|
40 | Summary: IPAex Fonts (Mincho) |
---|
41 | Summary(ja): IPAex フォント(明朝体) |
---|
42 | Group: User Interface/X |
---|
43 | Requires: OpenType-%{fontname}-doc |
---|
44 | |
---|
45 | %description mincho |
---|
46 | This package includes IPAex Fonts (Mincho). |
---|
47 | |
---|
48 | %description -l ja mincho |
---|
49 | このパッケージには IPAex フォントの明朝体フォントが含まれています。 |
---|
50 | |
---|
51 | #-- ゴシック |
---|
52 | %package gothic |
---|
53 | Summary: IPAex Fonts (Gothic) |
---|
54 | Summary(ja): IPAex フォント(ゴシック体) |
---|
55 | Group: User Interface/X |
---|
56 | Requires: OpenType-%{fontname}-doc |
---|
57 | |
---|
58 | %description gothic |
---|
59 | This package includes IPAex Fonts (Gothic). |
---|
60 | |
---|
61 | %description -l ja gothic |
---|
62 | このパッケージには IPAex フォントのゴシック体フォントが含まれています。 |
---|
63 | |
---|
64 | %package doc |
---|
65 | Summary: %{name} Fonts Documents |
---|
66 | Summary(ja): %{name} フォントドキュメント |
---|
67 | Group: User Interface/X |
---|
68 | |
---|
69 | %description doc |
---|
70 | This package includes important documents for IPAex Fonts |
---|
71 | includes enduser license. |
---|
72 | |
---|
73 | %description -l ja doc |
---|
74 | このパッケージには IPAex フォントのライセンスを含む |
---|
75 | ドキュメント類が含まれています。 |
---|
76 | |
---|
77 | |
---|
78 | %prep |
---|
79 | %setup -q -n IPAexfont00401 |
---|
80 | |
---|
81 | %clean |
---|
82 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
---|
83 | rm -rf ${RPM_BUILD_ROOT} |
---|
84 | fi |
---|
85 | |
---|
86 | %build |
---|
87 | |
---|
88 | %install |
---|
89 | rm -rf %{buildroot} |
---|
90 | |
---|
91 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
---|
92 | cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir} |
---|
93 | |
---|
94 | %post mincho |
---|
95 | %__font_install_post %{_fontdir} |
---|
96 | |
---|
97 | %post gothic |
---|
98 | %__font_install_post %{_fontdir} |
---|
99 | |
---|
100 | %posttrans mincho |
---|
101 | update-alternatives --install \ |
---|
102 | /usr/share/fonts/alias/TrueType/fonts-japanese-mincho.ttf \ |
---|
103 | fonts-japanese-mincho.ttf \ |
---|
104 | %{_fontdir}/ipaexm.ttf \ |
---|
105 | 120 |
---|
106 | if [ ! -f /usr/share/fonts/alias/TrueType/fonts-japanese-mincho.ttf ] ; then |
---|
107 | /sbin/update-alternatives --auto fonts-japanese-mincho.ttf |
---|
108 | fi |
---|
109 | |
---|
110 | %posttrans gothic |
---|
111 | update-alternatives --install \ |
---|
112 | /usr/share/fonts/alias/TrueType/fonts-japanese-gothic.ttf \ |
---|
113 | fonts-japanese-gothic.ttf \ |
---|
114 | %{_fontdir}/ipaexg.ttf \ |
---|
115 | 120 |
---|
116 | if [ ! -f /usr/share/fonts/alias/TrueType/fonts-japanese-gothic.ttf ] ; then |
---|
117 | /sbin/update-alternatives --auto fonts-japanese-gothic.ttf |
---|
118 | fi |
---|
119 | |
---|
120 | %preun mincho |
---|
121 | if [ $1 -eq 0 ]; then |
---|
122 | update-alternatives --remove \ |
---|
123 | fonts-japanese-mincho.ttf \ |
---|
124 | %{_fontdir}/ipaexm.ttf |
---|
125 | /sbin/update-alternatives --auto fonts-japanese-mincho.ttf ||: |
---|
126 | fi |
---|
127 | |
---|
128 | %preun gothic |
---|
129 | if [ $1 -eq 0 ]; then |
---|
130 | update-alternatives --remove \ |
---|
131 | fonts-japanese-gothic.ttf \ |
---|
132 | %{_fontdir}/ipaexg.ttf |
---|
133 | /sbin/update-alternatives --auto fonts-japanese-gothic.ttf ||: |
---|
134 | fi |
---|
135 | |
---|
136 | %postun mincho |
---|
137 | %__font_install_postun %{_fontdir} |
---|
138 | |
---|
139 | %postun gothic |
---|
140 | %__font_install_postun %{_fontdir} |
---|
141 | |
---|
142 | %files |
---|
143 | |
---|
144 | %files mincho |
---|
145 | %license IPA_Font_License_Agreement_v1.0.txt |
---|
146 | %{_fontdir}/ipaexm.ttf |
---|
147 | |
---|
148 | %files gothic |
---|
149 | %license IPA_Font_License_Agreement_v1.0.txt |
---|
150 | %{_fontdir}/ipaexg.ttf |
---|
151 | |
---|
152 | %files doc |
---|
153 | %doc IPA_Font_License_Agreement_v1.0.txt Readme_IPAexfont*.txt |
---|
154 | |
---|
155 | %changelog |
---|
156 | * Mon May 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.01-1 |
---|
157 | - new upstream release. |
---|
158 | - made to use alternatives for new ghostscript structure. |
---|
159 | |
---|
160 | * Tue Apr 26 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.01-1 |
---|
161 | - new upstream release |
---|
162 | |
---|
163 | * Sun Jan 12 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.01-2 |
---|
164 | - rebuilt with gcc-4.8 |
---|
165 | |
---|
166 | * Thu Nov 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.01-1 |
---|
167 | - new upstream release |
---|
168 | |
---|
169 | * Thu Dec 2 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.03-1 |
---|
170 | - new upstream release |
---|
171 | |
---|
172 | * Sat Jul 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.02-2 |
---|
173 | - fixed document filename |
---|
174 | |
---|
175 | * Thu May 27 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.02-1 |
---|
176 | - new upstream release |
---|
177 | |
---|
178 | * Fri Mar 19 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.01-1 |
---|
179 | - initial build for VineSeed |
---|