OpenType-stix-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. %define fontname stix
  2. %define fontname_cap STIX
  3. %define _fontdir %{_datadir}/fonts/OpenType-%{fontname}
  4. Name: OpenType-%{fontname}
  5. Summary: the Scientific and Technical Information eXchange fonts
  6. Summary(ja): 数式用のフリーなフォント STIX フォント
  7. Version: 1.0.0
  8. Release: 1%{?_dist_release}
  9. License: OFL
  10. Group: User Interface/X
  11. URL: http://www.stixfonts.org/
  12. Source0: %{fontname_cap}v%{version}.zip
  13. BuildRequires: unzip
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. Requires: OpenType-%{fontname}-doc
  17. %description
  18. The mission of the Scientific and Technical Information Exchange (STIX) font
  19. creation project is the preparation of a comprehensive set of fonts that
  20. serve the scientific and engineering community in the process from manuscript
  21. creation through final publication, both in electronic and print formats.
  22. %package doc
  23. Summary: STIX font Document
  24. Summary(ja): STIX フォントドキュメント
  25. Group: User Interface/X
  26. %description doc
  27. This package includes important documents for STIX font
  28. includes enduser license.
  29. %description -l ja doc
  30. このパッケージには STIX フォントのライセンスを含む
  31. ドキュメント類が含まれています。
  32. %prep
  33. %setup -q -n %{fontname_cap}v%{version}
  34. %__tar cjf %{name}-documents.tar.bz2 Blocks/ Glyphs/ HTML/ \
  35. STIX\ Font\ Release\ Documentation\ 2010.pdf
  36. %clean
  37. if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then
  38. rm -rf ${RPM_BUILD_ROOT}
  39. fi
  40. %build
  41. %install
  42. rm -rf %{buildroot}
  43. mkdir -p $RPM_BUILD_ROOT%{_fontdir}
  44. cp -a Fonts/*.otf $RPM_BUILD_ROOT%{_fontdir}
  45. %post
  46. %__font_install_post %{_fontdir}
  47. %postun
  48. %__font_install_postun %{_fontdir}
  49. %files
  50. %{_fontdir}/*.otf
  51. %files doc
  52. %doc License/STIX\ Font\ License\ 2010.pdf
  53. %doc %{name}-documents.tar.bz2
  54. %changelog
  55. * Tue Aug 24 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
  56. - initial build for VineSeed