[521] | 1 | %define _fontdir %{_datadir}/fonts/TrueType-ipafont |
---|
| 2 | |
---|
| 3 | Name: TrueType-ipafont |
---|
[5160] | 4 | Version: 3.03 |
---|
[12393] | 5 | Release: 4%{?_dist_release} |
---|
[521] | 6 | Summary: IPA TrueType Fonts |
---|
| 7 | Summary(ja): IPA の日本語 TrueType フォント |
---|
| 8 | Group: User Interface/X |
---|
[12393] | 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | |
---|
[521] | 12 | License: IPA Font License Agreement v1.0 |
---|
[12393] | 13 | URL: https://ipafont.ipa.go.jp/ |
---|
| 14 | Source: https://ipafont.ipa.go.jp/IPAfont/IPAfont00303.zip |
---|
[521] | 15 | Source10: ipafont-mincho.ttfconf |
---|
| 16 | Source11: ipafont-gothic.ttfconf |
---|
| 17 | Source20: cidfmap.ja.ipafont-mincho |
---|
| 18 | Source21: cidfmap.ja.ipafont-gothic |
---|
| 19 | Source30: 59-ipa-mincho.conf |
---|
| 20 | Source31: 60-ipa-gothic.conf |
---|
| 21 | |
---|
| 22 | BuildArch: noarch |
---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 24 | Obsoletes: TrueType-ipafont |
---|
| 25 | Requires: TrueType-ipafont-mincho = %{version} |
---|
| 26 | Requires: TrueType-ipafont-gothic = %{version} |
---|
| 27 | Requires: TrueType-ipafont-doc = %{version} |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | This package is meta package to install both IPAMincho and IPAGothic |
---|
| 31 | fonts. |
---|
| 32 | |
---|
| 33 | %description -l ja |
---|
| 34 | このパッケージは独立行政法人情報処理推進機構のIPAフォントの明朝、ゴシック |
---|
| 35 | 両書体をインストールするためのメタパッケージです。このパッケージで |
---|
[12393] | 36 | 以下の4書体がインストールされます。 |
---|
[521] | 37 | (IPA明朝、IPAP明朝、IPAゴシック、IPAPゴシック) |
---|
| 38 | |
---|
| 39 | %package mincho |
---|
| 40 | Summary: IPAMincho TrueType Fonts |
---|
| 41 | Summary(ja): IPA明朝 True Type フォント |
---|
| 42 | Group: User Interface/X |
---|
| 43 | Requires: TrueType-ipafont-doc |
---|
[12393] | 44 | Requires: alternatives |
---|
| 45 | Requires(preun): alternatives |
---|
[521] | 46 | |
---|
| 47 | %description mincho |
---|
| 48 | This package includes IPA Mincho TrueType fonts. |
---|
| 49 | |
---|
| 50 | %description -l ja mincho |
---|
| 51 | このパッケージには独立行政法人情報処理推進機構のIPA明朝フォントが含まれています。 |
---|
| 52 | (IPA明朝、IPAP明朝) |
---|
| 53 | |
---|
| 54 | %package gothic |
---|
| 55 | Summary: IPA Gothic TrueType Fonts |
---|
| 56 | Summary(ja): IPA Gothic 日本語 True Type フォント |
---|
| 57 | Group: User Interface/X |
---|
| 58 | Requires: TrueType-ipafont-doc |
---|
[12393] | 59 | Requires: alternatives |
---|
| 60 | Requires(preun): alternatives |
---|
[521] | 61 | |
---|
| 62 | %description gothic |
---|
| 63 | This package includes IPA Gothic TrueType fonts. |
---|
| 64 | This font is distributable without modification. |
---|
| 65 | (see /usr/share/doc/TrueType-ipafont/enduser_license.txt for details) |
---|
| 66 | |
---|
| 67 | %description -l ja gothic |
---|
| 68 | このパッケージには独立行政法人情報処理推進機構のIPAゴシックフォントが含まれて |
---|
| 69 | います。(IPAゴシック、IPAPゴシック) |
---|
| 70 | |
---|
| 71 | %package doc |
---|
| 72 | Summary: IPA Font Documents |
---|
| 73 | Summary(ja): IPA フォントドキュメント |
---|
| 74 | Group: User Interface/X |
---|
| 75 | |
---|
| 76 | %description doc |
---|
| 77 | This package includes important documents for IPA fonts includes enduser |
---|
| 78 | license. |
---|
| 79 | |
---|
| 80 | %description -l ja doc |
---|
| 81 | このパッケージには独立行政法人情報処理推進機構のIPAフォントのライセンス |
---|
| 82 | を含むドキュメント類が含まれています。 |
---|
| 83 | |
---|
| 84 | %prep |
---|
[5160] | 85 | %setup -q -n IPAfont00303 |
---|
[521] | 86 | |
---|
| 87 | %build |
---|
| 88 | |
---|
| 89 | %install |
---|
| 90 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
---|
[1888] | 91 | cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir} |
---|
[521] | 92 | cp -f %{SOURCE10} %{SOURCE11} $RPM_BUILD_ROOT%{_fontdir} |
---|
| 93 | |
---|
| 94 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.{avail,d} |
---|
| 95 | install -m664 %{SOURCE30} %{SOURCE31} $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/ |
---|
| 96 | for i in $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/*.conf |
---|
| 97 | do |
---|
| 98 | ln -sf ../conf.avail/$(basename $i) $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.d/ |
---|
| 99 | done |
---|
| 100 | |
---|
| 101 | # install ghostscript8 cidfmap |
---|
[12393] | 102 | #mkdir -p $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d |
---|
| 103 | #install -m644 %{SOURCE20} %{SOURCE21} $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d |
---|
[521] | 104 | |
---|
| 105 | # add fontpath.d symlinks |
---|
| 106 | mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/fontpath.d |
---|
| 107 | ln -sf /usr/share/fonts/%{name} $RPM_BUILD_ROOT%{_sysconfdir}/X11/fontpath.d/ |
---|
| 108 | |
---|
| 109 | %clean |
---|
| 110 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
---|
| 111 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 112 | fi |
---|
| 113 | |
---|
| 114 | %post mincho |
---|
| 115 | %__font_install_post %{_fontdir} |
---|
| 116 | |
---|
| 117 | %post gothic |
---|
| 118 | %__font_install_post %{_fontdir} |
---|
| 119 | |
---|
[12393] | 120 | %posttrans mincho |
---|
| 121 | update-alternatives --install \ |
---|
| 122 | /usr/share/fonts/alias/TrueType/fonts-japanese-mincho.ttf \ |
---|
| 123 | fonts-japanese-mincho.ttf \ |
---|
| 124 | %{_fontdir}/ipam.ttf \ |
---|
| 125 | 100 |
---|
| 126 | if [ ! -f /usr/share/fonts/alias/TrueType/fonts-japanese-mincho.ttf ] ; then |
---|
| 127 | /sbin/update-alternatives --auto fonts-japanese-mincho.ttf |
---|
| 128 | fi |
---|
| 129 | |
---|
| 130 | %posttrans gothic |
---|
| 131 | update-alternatives --install \ |
---|
| 132 | /usr/share/fonts/alias/TrueType/fonts-japanese-gothic.ttf \ |
---|
| 133 | fonts-japanese-gothic.ttf \ |
---|
| 134 | %{_fontdir}/ipag.ttf \ |
---|
| 135 | 100 |
---|
| 136 | if [ ! -f /usr/share/fonts/alias/TrueType/fonts-japanese-gothic.ttf ] ; then |
---|
| 137 | /sbin/update-alternatives --auto fonts-japanese-gothic.ttf |
---|
| 138 | fi |
---|
| 139 | |
---|
| 140 | %preun mincho |
---|
| 141 | if [ $1 -eq 0 ]; then |
---|
| 142 | update-alternatives --remove \ |
---|
| 143 | fonts-japanese-mincho.ttf \ |
---|
| 144 | %{_fontdir}/ipam.ttf |
---|
| 145 | /sbin/update-alternatives --auto fonts-japanese-mincho.ttf ||: |
---|
| 146 | fi |
---|
| 147 | |
---|
| 148 | %preun gothic |
---|
| 149 | if [ $1 -eq 0 ]; then |
---|
| 150 | update-alternatives --remove \ |
---|
| 151 | fonts-japanese-gothic.ttf \ |
---|
| 152 | %{_fontdir}/ipag.ttf |
---|
| 153 | /sbin/update-alternatives --auto fonts-japanese-gothic.ttf ||: |
---|
| 154 | fi |
---|
| 155 | |
---|
[521] | 156 | %postun mincho |
---|
| 157 | %__font_install_postun %{_fontdir} |
---|
| 158 | |
---|
| 159 | %postun gothic |
---|
| 160 | %__font_install_postun %{_fontdir} |
---|
| 161 | |
---|
[12393] | 162 | |
---|
[521] | 163 | %files |
---|
| 164 | |
---|
| 165 | %files doc |
---|
| 166 | %doc *.txt |
---|
| 167 | |
---|
| 168 | %files mincho |
---|
[12393] | 169 | %license IPA_Font_License_Agreement_v1.0.txt |
---|
[1888] | 170 | %{_fontdir}/ipam*.ttf |
---|
[521] | 171 | %{_fontdir}/ipafont-mincho.ttfconf |
---|
[12393] | 172 | #%config %{_datadir}/ghostscript/conf.d/cidfmap.ja.ipafont-mincho |
---|
[521] | 173 | %{_sysconfdir}/fonts/conf.avail/*-ipa-mincho.conf |
---|
| 174 | %{_sysconfdir}/X11/fontpath.d/%{name} |
---|
| 175 | %config(missingok,noreplace) %{_sysconfdir}/fonts/conf.d/*-ipa-mincho.conf |
---|
| 176 | |
---|
| 177 | %files gothic |
---|
[12393] | 178 | %license IPA_Font_License_Agreement_v1.0.txt |
---|
[1888] | 179 | %{_fontdir}/ipag*.ttf |
---|
[521] | 180 | %{_fontdir}/ipafont-gothic.ttfconf |
---|
[12393] | 181 | #%config %{_datadir}/ghostscript/conf.d/cidfmap.ja.ipafont-gothic |
---|
[521] | 182 | %{_sysconfdir}/fonts/conf.avail/*-ipa-gothic.conf |
---|
| 183 | %config(missingok,noreplace) %{_sysconfdir}/fonts/conf.d/*-ipa-gothic.conf |
---|
| 184 | |
---|
| 185 | |
---|
| 186 | %changelog |
---|
[12393] | 187 | * Sun May 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.03-4 |
---|
| 188 | - made to use alternatives for new ghostscript structure. |
---|
| 189 | |
---|
[10609] | 190 | * Wed Jul 13 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 3.03-3 |
---|
| 191 | - fix fontconfig files (Source30, 31) for fontconfig 2.10 |
---|
| 192 | - sync Vine Linux Git repository |
---|
| 193 | |
---|
[8178] | 194 | * Mon Jan 13 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> |
---|
| 195 | - built with gcc-4.8 |
---|
[7656] | 196 | |
---|
[5160] | 197 | * Sun Nov 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.03-1 |
---|
| 198 | - update to IPAfont 00303 |
---|
| 199 | |
---|
[1888] | 200 | * Fri Sep 24 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.02-1 |
---|
| 201 | - update to IPAfont 00302 |
---|
| 202 | - update ttfconf/cidfmap |
---|
| 203 | |
---|
[521] | 204 | * Mon Aug 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.01-3 |
---|
| 205 | - add fontpath.d symlink |
---|
| 206 | |
---|
| 207 | * Wed Jun 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.01-2 |
---|
| 208 | - use fixed width font for ghostscript. |
---|
| 209 | |
---|
| 210 | * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.01-1 |
---|
| 211 | - update to IPAfont 00301 |
---|
| 212 | - drop IPAUIGothic |
---|
| 213 | - update License tag |
---|
| 214 | - OSI approved license 'IPA Font License Agreement v1.0' |
---|
| 215 | - add fontconfig file |
---|
| 216 | |
---|
| 217 | * Thu Jan 08 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-2 |
---|
| 218 | - fix typo in cidfmap.ja.ipafont |
---|
| 219 | - update vine.map and exec updmap-sys on %%post/%%postun |
---|
| 220 | |
---|
| 221 | * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-1 |
---|
| 222 | - add gs8 cidfmap |
---|
| 223 | - move font files to new location |
---|
| 224 | - new versioning policy, spec in utf-8 |
---|
| 225 | |
---|
| 226 | * Fri Jan 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-0vl2 |
---|
| 227 | - remove Provides: TrueTypeFonts_jp |
---|
| 228 | - ipa*font is not free and should not be default font. |
---|
| 229 | |
---|
| 230 | * Mon Oct 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.01-0vl1 |
---|
| 231 | - initial build with new ipafont license |
---|
| 232 | - sprit mincho and gothic as an independent package |
---|
| 233 | - sprit readme and license to doc package |
---|
| 234 | - drop M+IPA font which is not allowed by new enduser license. |
---|