TrueType-ipafont-vl.spec 5.4 KB

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