TrueType-roboto-vl.spec 2.0 KB

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