TrueType-baekmuk-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. %define xfontdir_ %{_datadir}/fonts/ko
  2. %define xfontdir %{xfontdir_}/TrueType
  3. %define gsver 7.07
  4. %define gslibdir %{_datadir}/ghostscript/%{gsver}/lib
  5. Summary: Baekmuk Korean TrueType Fonts
  6. Summary(ja): Baekmuk 韓国語 TrueType フォント
  7. Name: TrueType-baekmuk
  8. Version: 2.2
  9. Release: 3%{?_dist_release}
  10. License: BSD
  11. Group: User Interface/X
  12. BuildArch: noarch
  13. BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
  14. BuildRequires: ghostscript >= %{gsver}
  15. Source0: http://kldp.net/frs/download.php/1429/baekmuk-ttf-2.2.tar.gz
  16. Source5: CIDFnmap.ko
  17. Requires: chkfontpath, freetype-utils
  18. Requires: XOrg-font-utils
  19. %description
  20. This package provides Baekmuk Korean TrueType fonts.
  21. %prep
  22. %setup -n baekmuk-ttf-%{version}
  23. %build
  24. %install
  25. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  26. install -d $RPM_BUILD_ROOT%{xfontdir}
  27. install -m 0644 ttf/*.ttf $RPM_BUILD_ROOT%{xfontdir}/
  28. # for ghostscript
  29. install -d $RPM_BUILD_ROOT%{gslibdir}
  30. install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{gslibdir}/
  31. %clean
  32. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  33. %post
  34. {
  35. /usr/bin/ttmkfdir -d %{xfontdir} -o %{xfontdir}/fonts.scale
  36. /usr/X11R6/bin/mkfontdir %{xfontdir}
  37. /usr/sbin/chkfontpath -q -a %{xfontdir}
  38. if [ -x /usr/bin/vine-update-gnome-font-install ]; then
  39. /usr/bin/vine-update-gnome-font-install
  40. fi
  41. if [ -x /usr/bin/redhat-update-gnome-font-install2 ]; then
  42. /usr/bin/redhat-update-gnome-font-install2
  43. fi
  44. [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache %{xfontdir}
  45. } >& /dev/null ||:
  46. %postun
  47. {
  48. /usr/bin/ttmkfdir -d %{xfontdir} -o %{xfontdir}/fonts.scale
  49. /usr/X11R6/bin/mkfontdir %{xfontdir}
  50. if [ "$1" = 0 ]; then
  51. /usr/sbin/chkfontpath -q -r %{xfontdir}
  52. if [ -x /usr/bin/vine-update-gnome-font-install ]; then
  53. /usr/bin/vine-update-gnome-font-install
  54. fi
  55. if [ -x /usr/bin/redhat-update-gnome-font-install2 ]; then
  56. /usr/bin/redhat-update-gnome-font-install2
  57. fi
  58. [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache %{xfontdir}
  59. fi
  60. } >& /dev/null ||:
  61. %files
  62. %defattr(-, root, root)
  63. %doc README COPYRIGHT COPYRIGHT.ks
  64. %attr(0755, root, root) %dir %{xfontdir_}
  65. %attr(0755, root, root) %dir %{xfontdir}
  66. %{xfontdir}/*.ttf
  67. %{gslibdir}/CIDFnmap.ko
  68. %changelog
  69. * Mon Jan 13 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.2-3
  70. - built with gcc-4.8
  71. * Fri Apr 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2-2
  72. - rebuild with rpm-4.8.1
  73. * Sun Oct 05 2008 Shu KONNO <owa@bg.wakwak.com> 2.2-1vl5
  74. - applied new versioning policy, spec in utf-8
  75. * Fri Apr 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2-0vl1
  76. - new upstream source
  77. * Wed Aug 25 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-0vl1
  78. - initial build for Vine Linux