TrueType-liberation-vl.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. %define fontname liberation
  2. %define archivename %{name}-%{version}
  3. %define common_desc \
  4. The Liberation Fonts are intended to be replacements for the three most \
  5. commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier \
  6. New.
  7. %define _fontdir %{_datadir}/fonts/TrueType-%{fontname}
  8. Name: TrueType-%{fontname}
  9. Summary: Fonts to replace commonly used Microsoft Windows fonts
  10. Summary(ja): 一般に使用されている Microsoft Windows のフォントを置換するためのフォント
  11. Version: 1.05.2.20091227
  12. Release: 1%{?_dist_release}
  13. # The license of the Liberation Fonts is a EULA that contains GPLv2 and two
  14. # exceptions:
  15. # The first exception is the standard FSF font exception.
  16. # The second exception is an anti-lockdown clause somewhat like the one in
  17. # GPLv3. This license is Free, but GPLv2 and GPLv3 incompatible.
  18. License: Liberation
  19. Group: User Interface/X
  20. URL: https://www.redhat.com/promo/fonts/
  21. Source0: %{fontname}-fonts-ttf-%{version}.tar.gz
  22. Requires: TrueType-%{fontname}-sans >= %{version}
  23. Requires: TrueType-%{fontname}-serif >= %{version}
  24. Requires: TrueType-%{fontname}-mono >= %{version}
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  26. BuildArch: noarch
  27. %description
  28. %common_desc
  29. Meta-package of Liberation fonts which installs Sans, Serif, and Monospace
  30. families.
  31. %description -l ja
  32. liberation fonts はマイクロソフトのシステムでよく使用される3つのフォント、
  33. Times New Roman・Arial・Courier New を置換することが意図されている
  34. フォントです。
  35. このパッケージは Liberation フォントのメタパッケージです。
  36. Sans・Serif・Monospace の3書体をインストールします。
  37. %package sans
  38. Summary: liberation sans TrueType Fonts
  39. Summary(ja): liberation sans True Type フォント
  40. Group: User Interface/X
  41. Requires: TrueType-liberation-doc
  42. %description sans
  43. This package includes liberation sans TrueType fonts.
  44. %description -l ja sans
  45. このパッケージには liberation sans フォントが含まれています。
  46. %package serif
  47. Summary: liberation serif TrueType Fonts
  48. Summary(ja): liberation serif True Type フォント
  49. Group: User Interface/X
  50. Requires: TrueType-liberation-doc
  51. %description serif
  52. This package includes liberation serif TrueType fonts.
  53. %description -l ja serif
  54. このパッケージには liberation serif フォントが含まれています。
  55. %package mono
  56. Summary: liberation mono TrueType Fonts
  57. Summary(ja): liberation mono True Type フォント
  58. Group: User Interface/X
  59. Requires: TrueType-liberation-doc
  60. %description mono
  61. This package includes liberation mono TrueType fonts.
  62. %description -l ja mono
  63. このパッケージには liberation mono フォントが含まれています。
  64. %package doc
  65. Summary: liberation Font Documents
  66. Summary(ja): liberation フォントドキュメント
  67. Group: User Interface/X
  68. %description doc
  69. This package includes important documents for liberation fonts includes enduser
  70. license.
  71. %description -l ja doc
  72. このパッケージには liberation フォントのライセンスを含むドキュメント類が含まれています。
  73. %prep
  74. %setup -q -c %{name}-%{version}
  75. mv ttf/*.ttf .
  76. %clean
  77. if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then
  78. rm -rf ${RPM_BUILD_ROOT}
  79. fi
  80. %build
  81. %install
  82. rm -rf %{buildroot}
  83. mkdir -p $RPM_BUILD_ROOT%{_fontdir}
  84. cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir}
  85. # generate fonts.dir and fonts.scale
  86. #mkfontdir %{buildroot}%{_fontdir}
  87. #mkfontscale %{buildroot}%{_fontdir}
  88. %post sans
  89. %__font_install_post %{_fontdir}
  90. %post serif
  91. %__font_install_post %{_fontdir}
  92. %post mono
  93. %__font_install_post %{_fontdir}
  94. %postun sans
  95. %__font_install_postun %{_fontdir}
  96. %postun serif
  97. %__font_install_postun %{_fontdir}
  98. %postun mono
  99. %__font_install_postun %{_fontdir}
  100. %files
  101. %files sans
  102. %{_fontdir}/LiberationSans-*.ttf
  103. %files serif
  104. %{_fontdir}/LiberationSerif-*.ttf
  105. %files mono
  106. %{_fontdir}/LiberationMono-*.ttf
  107. %files doc
  108. %doc AUTHORS COPYING ChangeLog License.txt README
  109. %changelog
  110. * Sun Dec 27 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.05.2.20091227-1
  111. - new upstream release
  112. * Wed Jul 22 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.05.1.20090721-1
  113. - new upstream release
  114. * Fri Jul 17 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.05.1.20090706-1
  115. - new upstream release
  116. * Tue Apr 28 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.04.93-1
  117. - initial build for VineSeed
  118. * Fri Jan 09 2009 Caius Chance <cchance@redhat.com> - 1.04.93-3.fc11
  119. - Resolves: rhbz#477410 (Convert to new font packaging guidelines.)
  120. * Tue Dec 09 2008 Caius Chance <cchance@redhat.com> - 1.04.93-2.fc11
  121. - Resolves: rhbz#474522 (Cent sign is not coressed in Sans & Mono.)
  122. * Wed Dec 03 2008 Caius Chance <cchance@redhat.com> - 1.04.93-1.fc11
  123. - Resolves: rhbz#473481
  124. (Blurriness of Greek letter m (U+03BC) in Liberation Sans Regular.)
  125. * Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04.90-1.fc10
  126. - Resolves: rhbz#258592
  127. (Incorrect glyph points and missing hinting instructions for U+0079, U+03BC,
  128. U+0431, U+2010..2012.)
  129. * Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04-1.fc10
  130. - Resolves: rhbz#455717 (Update sources to version 1.04.)
  131. - Improved .spec file.
  132. * Thu Jun 12 2008 Caius Chance <cchance@redhat.com> - 1.04-0.1.beta2.fc10
  133. - Updated source version to 1.04.beta2.
  134. - Removed License.txt and COPYING as already included in sources.
  135. * Thu Apr 10 2008 Caius Chance <cchance@redhat.com> - 1.03-1.fc9
  136. - Resolves: rhbz#251890 (Exchanged and incomplete glyphs.)
  137. - Repack source tarball and re-align source version number.
  138. * Mon Mar 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.02-2
  139. - correct license tag, license explanation added
  140. * Tue Mar 25 2008 Caius Chance <cchance@redhat.com> - 1.02-1.fc9
  141. - Resolves: rhbz#240525 (Alignment mismatch of dot accents.)
  142. * Wed Jan 16 2008 Caius Chance <cchance@redhat.com> - 1.01-1.fc9
  143. - Moved source tarball from cvs to separated storage.
  144. * Mon Jan 14 2008 Caius Chance <cchance@redhat.com> - 1.0-1.fc9
  145. - Resolves: rhbz#428596 (Liberation fonts need to be updated to latest font.)
  146. * Wed Nov 28 2007 Caius Chance <cchance@redhat.com> - 0.2-4.fc9
  147. - Resolves: rhbz#367791 (remove 59-liberation-fonts.conf)
  148. * Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-3.fc8
  149. - add fontdir macro
  150. - create fonts.dir and fonts.scale (reported by Mark Alford, #245961)
  151. - add catalogue symlink
  152. * Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-2.fc8
  153. - update license field to GPLv2
  154. * Thu Jun 14 2007 Caius Chance <cchance@redhat.com> 0.2-1.fc8
  155. - Updated new source tarball from upstream: '-3' (version 0.2).
  156. * Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-9
  157. - Bump revision
  158. * Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-8
  159. - Change the license tag to "GPL + font exception"
  160. * Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-7
  161. - Correct the source url
  162. * Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-6
  163. - Incorporate package review feedback
  164. * Fri May 11 2007 Matthias Clasen <mclasen@redhat.com> 0.1-5
  165. - Bring the package in sync with Fedora packaging standards
  166. * Wed Apr 25 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-4
  167. - Require fontconfig package for post and postun
  168. * Tue Apr 24 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-3
  169. - Bump version to fix issue in RHEL4 RHN
  170. * Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-2rhis
  171. - New license file
  172. * Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-1rhis
  173. - Inital packaging