TrueType-sil-charis.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. %define fontname sil-charis
  2. %define archivename %{name}-%{version}
  3. %define _fontdir %{_datadir}/fonts/TrueType-%{fontname}
  4. Name: TrueType-%{fontname}
  5. Summary: smart Unicode font family for Roman or Cyrillic-based writing systems
  6. Summary(ja): ラテン語或いはキリル文字ベースの表記のためのスマートな Unicode フォントファミリ
  7. Version: 4.114
  8. Release: 1%{?_dist_release}
  9. License: OFL
  10. Group: User Interface/X
  11. URL: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=CharisSILfont
  12. Source: CharisSIL-%{version}.zip
  13. BuildRequires: unzip
  14. BuildArch: noarch
  15. Requires: TrueType-%{fontname}-doc >= %{version}
  16. Obsoletes: TrueType-%{fontname}-regular
  17. Obsoletes: TrueType-%{fontname}-italic
  18. Obsoletes: TrueType-%{fontname}-bold
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. %description
  21. Charis SIL is serif fonts what provides glyphs for a wide range
  22. of Latin and Cyrillic characters.
  23. This package install regular, bold, and italic families.
  24. %description -l ja
  25. Charis SIL はラテン文字とキリル文字の広範なグリフを提供する
  26. セリフ体のフォントです。
  27. regular・bold・italic の3書体をインストールします。
  28. %package doc
  29. Summary: Charis SIL Font Documents
  30. Summary(ja): Charis SIL フォントドキュメント
  31. Group: User Interface/X
  32. %description doc
  33. This package includes important documents for Charis SIL fonts includes enduser
  34. license.
  35. %description -l ja doc
  36. このパッケージには Charis SIL フォントのライセンスを含むドキュメント類が含まれています。
  37. %prep
  38. %setup -q -n CharisSIL-%{version}
  39. %clean
  40. if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then
  41. rm -rf ${RPM_BUILD_ROOT}
  42. fi
  43. %build
  44. %install
  45. rm -rf %{buildroot}
  46. mkdir -p $RPM_BUILD_ROOT%{_fontdir}
  47. cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir}
  48. %post
  49. %__font_install_post %{_fontdir}
  50. %postun
  51. %__font_install_postun %{_fontdir}
  52. %files
  53. %{_fontdir}/CharisSIL-R.ttf
  54. %{_fontdir}/CharisSIL-B.ttf
  55. %{_fontdir}/CharisSIL-I.ttf
  56. %{_fontdir}/CharisSIL-BI.ttf
  57. %files doc
  58. %doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
  59. %changelog
  60. * Sat Jan 11 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 4.114-1
  61. - new upstream release
  62. * Wed Oct 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 4.110-1
  63. - new upstream release
  64. - obsoleted -regular, -bold, -italic sub packages
  65. * Sat May 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 4.106-1
  66. - initial build for VineSeed