TrueType-roboto-vl.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. %define fontname roboto
  2. %define _fontdir %{_datadir}/fonts/TrueType-%{fontname}
  3. Name: TrueType-%{fontname}
  4. Summary: Roboto font
  5. Summary(ja): Roboto フォント
  6. Version: 20120823
  7. Release: 1%{?_dist_release}
  8. License: apache License 2.0
  9. Group: User Interface/X
  10. #URL: https://github.com/android/platform_frameworks_base/tree/master/data/fonts
  11. URL: http://developer.android.com/design/downloads/index.html
  12. Source0: Roboto_Hinted_%{version}.zip
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. BuildRequires: unzip
  16. Requires: %{name}-doc
  17. %description
  18. Roboto is new font that introduced with Android OS 4.0
  19. "Ice Cream Sandwich".
  20. %description -l ja
  21. Roboto は Android OS 4.0 "Ice Cream Sandwich" と
  22. 一緒に紹介された新しいフォントです。
  23. %package doc
  24. Summary: Robot font Documents
  25. Summary(ja): Roboto フォントドキュメント
  26. Group: User Interface/X
  27. %description doc
  28. This package includes important documents for Roboto font
  29. includes enduser license.
  30. %description -l ja doc
  31. このパッケージには Roboto フォントのライセンスを含む
  32. ドキュメント類が含まれています。
  33. %prep
  34. %setup -q -c -T
  35. %{_bindir}/unzip -oq %{SOURCE0}
  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 *.ttf $RPM_BUILD_ROOT%{_fontdir}
  45. %post
  46. %__font_install_post %{_fontdir}
  47. %postun
  48. %__font_install_postun %{_fontdir}
  49. %files
  50. %{_fontdir}/Roboto-*.ttf
  51. %files doc
  52. %doc COPYING.txt RobotoSpecimenBook.pdf
  53. %changelog
  54. * Sun Oct 13 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 20120823-1
  55. - new upstream release
  56. - changed URL and Source
  57. - added BuildRequires: unzip
  58. - changed versioning
  59. * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-1
  60. - initial build for VineSeed