TrueType-hanaminplus-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %define version 0.3
  2. %define release 3%{?_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. * Mon Jan 13 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 0.3-3
  64. - built with gcc-4.8
  65. * Fri Apr 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-2
  66. - rebuild with rpm-4.8.1
  67. * Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3-1
  68. - use %%__font_install_{post,postun} macros
  69. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-3
  70. - remove Requires/Requires(post): TrueType-base
  71. * Fri Mar 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-2
  72. - remove Requires: TrueType-sazanami
  73. * Mon Nov 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
  74. - update to HanaMinPlus 20081115
  75. * Sat Nov 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1
  76. - initial build
  77. - HanaMin Plus (hanazono-20081012 + sazanami-20040629)