TrueType-hanaminplus-vl.spec 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %define version 0.3
  2. %define release 1%{?_dist_release}
  3. %define hanamin_date 20081115
  4. %define ttfjp_version 6.0
  5. %define fontdir %{_datadir}/fonts/%{name}/
  6. Summary: HanaMin+SazanamiMincho True Type Font
  7. Summary(ja): ハナミン+さざなみ明朝 合成 TrueType フォント
  8. Name: TrueType-hanaminplus
  9. Version: %{version}
  10. Release: %{release}
  11. License: BSD Like
  12. Group: User Interface/X
  13. # HanMinPlus
  14. Source0: HanaMin-Plus-%{hanamin_date}.tar.bz2
  15. Source10: 59-hanaminplus.conf
  16. Source20: cidfmap.ja.hanaminplus
  17. Distribution: Vine Linux
  18. Vendor: Project Vine
  19. BuildArch: noarch
  20. Buildroot: %{_tmppath}/%{name}-%{version}-root
  21. Requires(post): mktcapdir >= 0.5.4
  22. Requires(post): fontconfig, xorg-x11-font-utils
  23. Provides: TrueTypeFonts_jp = %{ttfjp_version}
  24. Obsoletes: TrueTypeFonts_jp < 4.1
  25. Obsoletes: TrueType-kochi <= 4.4.1
  26. Obsoletes: TrueType-sazanami < 3.0
  27. %description
  28. HanaMin+SazanamiMincho font - Free Japanese True Type Font
  29. - HanaMin Plus
  30. %description -l ja
  31. このパッケージには以下のフリーの日本語 True Type フォントが含まれています。
  32. - HanaMin Plus
  33. %prep
  34. rm -rf ${RPM_BUILD_ROOT}
  35. %setup -n %{name} -c -a 0
  36. mv HanaMin-Plus/*.ttf .
  37. %install
  38. mkdir -p $RPM_BUILD_ROOT/%{fontdir}
  39. install -m664 *.ttf $RPM_BUILD_ROOT/%{fontdir}
  40. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.{avail,d}
  41. install -m664 %{SOURCE10} $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/
  42. for i in $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/*.conf
  43. do
  44. ln -sf ../conf.avail/$(basename $i) $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.d/
  45. done
  46. # install ghostscript8 cidfmap
  47. mkdir -p $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d
  48. install -m644 %{SOURCE20} $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d
  49. %post
  50. %__font_install_post %{fontdir}
  51. %postun
  52. %__font_install_postun %{fontdir}
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %files
  56. %defattr(-,root,root)
  57. %doc HanaMin-Plus/*
  58. %{fontdir}/*
  59. %{_sysconfdir}/fonts/conf.avail/*.conf
  60. %config(missingok,noreplace) %{_sysconfdir}/fonts/conf.d/*.conf
  61. %config %{_datadir}/ghostscript/conf.d/cidfmap.ja.*
  62. %changelog
  63. * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3-1
  64. - use %%__font_install_{post,postun} macros
  65. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-3
  66. - remove Requires/Requires(post): TrueType-base
  67. * Fri Mar 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-2
  68. - remove Requires: TrueType-sazanami
  69. * Mon Nov 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
  70. - update to HanaMinPlus 20081115
  71. * Sat Nov 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1
  72. - initial build
  73. - HanaMin Plus (hanazono-20081012 + sazanami-20040629)