TrueType-kochi-subst-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. # Command macros
  2. %define __mkfontdir umask 133;%{_x11bindir}/mkfontdir
  3. %define __mkfontscale umask 133;%{_x11bindir}/mkfontscale
  4. # Use this macro to call fc-cache throughout the specfile.
  5. %define __fccache umask 133;which fc-cache &> /dev/null && fc-cache
  6. %define version 4.6
  7. %define release 0vl3
  8. %define kochi_subst_date 20030809
  9. %define xfontdir /usr/X11R6/lib/X11/fonts/TrueType
  10. Summary: Free Japanese/English True Type Font (Kochi substitute, Luxi)
  11. Summary(ja): フリーの日本語 True Type フォント(東風代用明朝/ゴシック)
  12. Name: TrueType-kochi-subst
  13. Version: %{version}
  14. Release: %{release}
  15. BuildArch: noarch
  16. PreReq: TrueType-base >= 4.4.1
  17. Requires: TrueType-base >= 4.4.1
  18. Provides: TrueTypeFonts_jp = %{version}
  19. Obsoletes: TrueTypeFonts_jp < 4.1
  20. Obsoletes: TrueType-kochi <= 4.4.1
  21. Provides: TrueType-kochi = %{version}-%{release}
  22. Source: %{name}-%{version}.tgz
  23. # Kochi substitute
  24. Source4: kochi-substitute-%{kochi_subst_date}.tar.bz2
  25. Copyright: distributable
  26. Group: User Interface/X
  27. Buildroot: %{_tmppath}/%{name}-root
  28. # Prereq: chkfontpath
  29. Prereq: mktcapdir >= 0.5.4
  30. Distribution: Vine Linux
  31. Vendor: Project Vine
  32. %description
  33. Free Japanese True Type Font (Kochi-Mincho-subst/Kochi-Gothic-subst)
  34. %description -l ja
  35. フリーの日本語 True Type フォント(代用東風明朝/ゴシック)
  36. %prep
  37. rm -rf ${RPM_BUILD_ROOT}
  38. %setup -a 4
  39. mv kochi-substitute-%{kochi_subst_date}/* .
  40. %install
  41. mkdir -p $RPM_BUILD_ROOT/%{xfontdir}
  42. mv *.ttfconf *.ttf \
  43. $RPM_BUILD_ROOT/%{xfontdir}
  44. %post
  45. %{_bindir}/mktcapdir %{xfontdir} %{xfontdir}/*.ttfconf
  46. if [ -x %{_bindir}/vine-update-gnome-font-install ]; then
  47. %{_bindir}/vine-update-gnome-font-install
  48. fi
  49. ( %__fccache %{xfontdir} ) ||:
  50. %postun
  51. %{_bindir}/mktcapdir %{xfontdir} %{xfontdir}/*.ttfconf
  52. if [ -x %{_bindir}/vine-update-gnome-font-install ]; then
  53. %{_bindir}/vine-update-gnome-font-install
  54. fi
  55. ( %__fccache %{xfontdir} ) ||:
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %files
  59. %defattr(-,root,root)
  60. %doc README.ja COPYING Changelog docs/
  61. %{xfontdir}/*
  62. %changelog
  63. * Sat Jan 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6-0vl3
  64. - fix %post/%pre macros
  65. * Wed Dec 24 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.6-0vl2
  66. - use __fccache macro
  67. * Wed Oct 22 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6-0vl1
  68. - new upstream release
  69. - new upstream release
  70. - add "eo=m" to ttfconf to use Windows Unicode encoding
  71. * Fri Jun 27 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.5-0vl1
  72. - Kochi substitute fonts
  73. - spec file based on TrueType-kochi
  74. * Thu Feb 20 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4.1-0vl1
  75. - update kochi-gothic to 0.20030118
  76. - modify kochi.ttfconf (use cell for monospace font)
  77. * Mon Nov 04 2002 Shoji Matsumoto <shom@vinelinux.org> 4.4-0vl2
  78. - add kochi-gothic-new
  79. * Sun Oct 06 2002 Shoji Matsumoto <shom@vinelinux.org> 4.4-0vl1
  80. - update to 0.2-20020727
  81. - modiry kochi.ttfconf
  82. - remove chkfontpath
  83. * Sun Mar 31 2002 Shoji Matsumoto <shom@vinelinux.org> 4.3.1-0vl1
  84. - fix %post ( chkfontpath )
  85. - remove chkfontpath from %postun
  86. - update to 0.2-20020326
  87. * Sat Mar 16 2002 Shoji Matsumoto <shom@vinelinux.org> 4.3.1-0vl0
  88. - add postun
  89. * Tue Mar 12 2002 Shoji Matsumoto <shom@vinelinux.org> 4.3-0vl0
  90. - created
  91. - separated from TrueType_jp (to TrueType-base, TrueType-kochi)
  92. - *******************************************************************
  93. * Tue Mar 12 2002 Shoji Matsumoto <shom@vinelinux.org> 4.2-0vl0
  94. - update ricoh.ttfconf, kochi.ttfconf
  95. - add luxi*-2.ttf (bitmap embedded luxi*.ttf)
  96. * Mon Mar 11 2002 Shoji Matsumoto <shom@vinelinux.org> 4.1-0vl0
  97. - Package Name changed to TrueType-kochi (Provides TrueTypeFonts_jp)
  98. - update microsoft.ttfconf, ricoh.ttfconf
  99. * Sun Mar 10 2002 Shoji Matsumoto <shom@vinelinux.org> 4.0-0vl2
  100. - fix
  101. * Sun Mar 10 2002 Shoji Matsumoto <shom@vinelinux.org> 4.0-0vl1
  102. - upate kochi-*
  103. - update *.ttfconf
  104. - add xf42lux.ttfconf, symlinks to XF42 lux ttfs
  105. - add ricoh.ttfconf for CR
  106. * Mon Dec 03 2001 Shoji Matsumoto <shom@vinelinux.org> 3.0-0vl6
  107. - update *.ttfconf
  108. - remove ricoh.ttfconf
  109. - update kochi-*
  110. * Mon Sep 10 2001 SHoji Matsumoto <shom@vinelinux.org> 3.0-0vl4
  111. - fixed bug in kochi.ttfconf
  112. * Mon Sep 10 2001 SHoji Matsumoto <shom@vinelinux.org> 3.0-0vl3
  113. - remove %post process for DynaFonts fonts
  114. (/usr/share/fonts/TrueType/aliastt-* obsoletes)
  115. * Sat Sep 08 2001 Shoji Matsumoto <shom@vinelinux.org> 3.0-0vl2
  116. - remove watanabe, wadalab
  117. - now using mktcapdir
  118. * Mon Jun 04 2001 Shoji Matsumoto <shom@vinelinux.org> 3.0-0vl1
  119. - remove times/hevletica iso8859-1 aliases for kochi
  120. * Fri May 18 2001 Shoji Matsumoto <shom@vinelinux.org> 3.0-0vl0
  121. - add kochi-mincho/kochi-gothic
  122. - add Type1 fonts from XFree86-4.0 (temp)
  123. - add -alias-{times,helvetica,monotype} to aliases
  124. * Thu Mar 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2-7
  125. - remove Obsoletes DynaFonts tag.
  126. * Sun Nov 19 2000 Satoshi MACHINO <machino@vinelinux.org> 2-6
  127. - build with gcc-2.95.3
  128. - partially used rpmmacros
  129. * Wed Mar 8 2000 Jun Nishii <jun@vinelinux.org>
  130. - 2-5
  131. - chkfontpath -remove TrueType in %post to get stability
  132. * Tue Feb 1 2000 Jun Nishii <jun@vinelinux.org>
  133. - 2-4
  134. - stop to add path for xfs to get stability
  135. * Mon Jan 24 2000 Jun Nishii <jun@vinelinux.org>
  136. - 2-3
  137. - oops...fix bugs for comment out in FONTS.ALIAS
  138. * Thu Jan 20 2000 Jun Nishii <jun@vinelinux.org>
  139. - 2-2
  140. - bug fix: added symlink for aliastt-...
  141. - added Obsoletes DynaFonts
  142. * Sun Jan 9 2000 Jun Nishii <jun@vinelinux.org>
  143. - TrueTypeFonts_jp-2-1
  144. - added %defattr
  145. - bzip2 source
  146. * Thu Dec 30 1999 Jun Nishii <jun@vinelinux.org>
  147. - change group
  148. * Fri Dec 10 1999 Jun Nishii <jun@vinelinux.org>
  149. - new fonts.alias
  150. * Mon Nov 8 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
  151. - 1-4
  152. - added Prereq: chkfontpath tag
  153. * Tue Sep 9 1999 Norihito Ohmori <ohmori@flatout.org>
  154. - change using chkfontpath
  155. * Wed Dec 23 1998 MATSUMOTO Shoji <vine@flatout.org>
  156. - 1-2
  157. - change fonts.dir and fonts.alias
  158. - some symbols defined