OpenType-source-sans-pro-vl.spec 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %define _fontdir %{_datadir}/fonts/OpenType-source-sans-pro
  2. %define _fontname SourceSansPro_FontsOnly
  3. Summary: A set of OpenType fonts designed for user interfaces
  4. Summary(ja): ユーザーインターフェース向けにデザインされた OpenType フォントセット
  5. Name: OpenType-source-sans-pro
  6. Version: 1.050
  7. Release: 1%{?_dist_release}
  8. License: OFL
  9. Group: User Interface/X
  10. URL: http://sourceforge.net/projects/sourcesans.adobe/
  11. BuildArch: noarch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Source: http://sourceforge.net/projects/sourcesans.adobe/files/%{_fontname}-%{version}.zip
  14. BuildRequires: unzip
  15. %description
  16. Source Sans is a set of OpenType fonts that have been designed
  17. to work well in user interface (UI) environments,
  18. as well as in text setting for screen and print.
  19. %package doc
  20. Summary: Source Sans pro font documents
  21. Summary(ja): Source sans pro フォントドキュメント
  22. Group: User Interface/X
  23. %description doc
  24. This package includes important documents for Source Sans pro fonts
  25. includes enduser license.
  26. %description -l ja doc
  27. このパッケージには Source Sans pro フォントのライセンスを含む
  28. ドキュメント類が含まれています。
  29. %prep
  30. %setup -q -n %{_fontname}-%{version}
  31. %clean
  32. if test -n "%{buildroot}" && test "/" != "%{buildroot}"; then
  33. rm -rf %{buildroot}
  34. fi
  35. %build
  36. %install
  37. rm -rf %{buildroot}
  38. mkdir -p %{buildroot}%{_fontdir}
  39. cp -a OTF/*.otf %{buildroot}%{_fontdir}
  40. %post
  41. %__font_install_post %{fontdir}
  42. %postun
  43. %__font_install_postun %{fontdir}
  44. %files
  45. %defattr(-,root,root,-)
  46. %{_fontdir}/*.otf
  47. %files doc
  48. %defattr(-,root,root,-)
  49. %doc LICENSE.txt ReadMe.html SourceSansProReadMe.html
  50. %changelog
  51. * Sun May 05 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.050-1
  52. - initial build for Vine Linux