source: projects/specs/trunk/O/OpenType-ipaexfont/OpenType-ipaexfont-vl.spec @ 12393

Revision 12393, 4.8 KB checked in by tomop, 4 years ago (diff)

updated 6 packages

OpenType?-ipaexfont-4.01-1

OpenType?-ipamj-mincho-6.01-1

OpenType?-source-sans-pro-3.006-1

TrueType?-ipafont-3.03-4

TrueType?-vlgothic-2.120-2

ghostscript-9.52-1

Line 
1%define fontname ipaexfont
2%define _fontdir %{_datadir}/fonts/OpenType-%{fontname}
3
4Name:             OpenType-%{fontname}
5Summary:          IPAex Fonts - JIS X 0213:2004 compliant OpenType fonts
6Summary(ja):      IPAex フォント - JIS X 0213:2004に準拠した OpenType フォント
7Version:          4.01
8Release:          1%{?_dist_release}
9Group:            User Interface/X
10Vendor:           Project Vine
11Distribution:     Vine Linux
12
13License:          IPA Font License v1.0
14URL:              https://ipafont.ipa.go.jp/
15Source0:          https://ipafont.ipa.go.jp/IPAexfont/IPAexfont00401.zip
16
17BuildRoot:        %{_tmppath}/%{name}-%{version}-root
18BuildArch:        noarch
19
20BuildRequires: unzip
21
22Requires: OpenType-%{fontname}-mincho = %{version}
23Requires: OpenType-%{fontname}-gothic = %{version}
24Requires: OpenType-%{fontname}-doc
25
26%description
27IPAex Fonts are JIS X 0213:2004 compliant OpenType fonts
28based on TrueType outlines.
29
30This package is meta package to install Mincho and Gothic.
31
32%description -l ja
33IPAex フォントは、JIS X 0213:2004に準拠した
34TrueType アウトラインベースの OpenType フォントです。
35
36このパッケージは明朝、ゴシック両書体をインストールするためのメタパッケージです。
37
38#-- 明朝
39%package mincho
40Summary: IPAex Fonts (Mincho)
41Summary(ja): IPAex フォント(明朝体)
42Group: User Interface/X
43Requires: OpenType-%{fontname}-doc
44
45%description mincho
46This package includes IPAex Fonts (Mincho).
47
48%description -l ja mincho
49このパッケージには IPAex フォントの明朝体フォントが含まれています。
50
51#-- ゴシック
52%package gothic
53Summary: IPAex Fonts (Gothic)
54Summary(ja): IPAex フォント(ゴシック体)
55Group: User Interface/X
56Requires: OpenType-%{fontname}-doc
57
58%description gothic
59This package includes IPAex Fonts (Gothic).
60
61%description -l ja gothic
62このパッケージには IPAex フォントのゴシック体フォントが含まれています。
63
64%package doc
65Summary: %{name} Fonts Documents
66Summary(ja): %{name} フォントドキュメント
67Group: User Interface/X
68
69%description doc
70This package includes important documents for IPAex Fonts
71includes enduser license.
72
73%description -l ja doc
74このパッケージには IPAex フォントのライセンスを含む
75ドキュメント類が含まれています。
76
77
78%prep
79%setup -q -n IPAexfont00401
80
81%clean
82if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then
83    rm -rf ${RPM_BUILD_ROOT}
84fi
85
86%build
87
88%install
89rm -rf %{buildroot}
90
91mkdir -p $RPM_BUILD_ROOT%{_fontdir}
92cp -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
101update-alternatives --install \
102        /usr/share/fonts/alias/TrueType/fonts-japanese-mincho.ttf \
103        fonts-japanese-mincho.ttf \
104        %{_fontdir}/ipaexm.ttf \
105        120
106if [ ! -f /usr/share/fonts/alias/TrueType/fonts-japanese-mincho.ttf ] ; then
107    /sbin/update-alternatives --auto fonts-japanese-mincho.ttf
108fi
109
110%posttrans gothic
111update-alternatives --install \
112        /usr/share/fonts/alias/TrueType/fonts-japanese-gothic.ttf \
113        fonts-japanese-gothic.ttf \
114        %{_fontdir}/ipaexg.ttf \
115        120
116if [ ! -f /usr/share/fonts/alias/TrueType/fonts-japanese-gothic.ttf ] ; then
117    /sbin/update-alternatives --auto fonts-japanese-gothic.ttf
118fi
119
120%preun mincho
121if [ $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 ||:
126fi
127
128%preun gothic
129if [ $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 ||:
134fi
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
Note: See TracBrowser for help on using the repository browser.