urw-fonts-vl.spec 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. %define filippov_version 1.0.7pre44
  2. %define fontdir %{_datadir}/fonts/default/Type1
  3. %define catalogue /etc/X11/fontpath.d
  4. # font manipulation macro
  5. %define __mkfontscale umask 133;%{_bindir}/mkfontscale
  6. %define __mkfontdir umask 133;%{_bindir}/mkfontdir
  7. %define __fccache umask 133;which fc-cache &> /dev/null && fc-cache
  8. Summary: Free versions of the 35 standard PostScript fonts.
  9. Summary(ja): 35書体のフリーな標準ポストスクリプトフォント
  10. Name: urw-fonts
  11. Version: 2.4
  12. Release: 1%{?_dist_release}
  13. Source: %{name}-%{filippov_version}.tar.bz2
  14. URL: http://svn.ghostscript.com/ghostscript/tags/urw-fonts-1.0.7pre44/
  15. # URW holds copyright
  16. # No version specified
  17. License: GPL+
  18. Group: User Interface/X
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  20. BuildArch: noarch
  21. Requires(post,postun): xorg-x11-font-utils, fontconfig
  22. %description
  23. Free, good quality versions of the 35 standard PostScript(TM) fonts,
  24. donated under the GPL by URW++ Design and Development GmbH. The
  25. fonts.dir file font names match the original Adobe names of the fonts
  26. (e.g., Times, Helvetica, etc.).
  27. Install the urw-fonts package if you need free versions of standard
  28. PostScript fonts.
  29. %prep
  30. %setup -q -c
  31. %install
  32. %__rm -rf $RPM_BUILD_ROOT
  33. %__mkdir_p $RPM_BUILD_ROOT%{fontdir}
  34. %__install -m 0644 *.afm *.pfm *.pfb $RPM_BUILD_ROOT%{fontdir}/
  35. # Touch ghosted files
  36. touch $RPM_BUILD_ROOT%{fontdir}/{fonts.{dir,scale,cache-1},encodings.dir}
  37. # Install catalogue symlink
  38. %__mkdir_p $RPM_BUILD_ROOT%{catalogue}
  39. #%__ln_s -f %{fontdir} $RPM_BUILD_ROOT%{catalogue}/fonts-default
  40. %__ln_s -f %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-Type1
  41. %post
  42. %{__mkfontscale} %{fontdir} ||:
  43. %{__mkfontdir} %{fontdir} ||:
  44. %{__fccache} %{_datadir}/fonts ||:
  45. %postun
  46. if [ "$1" = "0" ]; then
  47. %{__fccache} %{_datadir}/fonts ||:
  48. fi
  49. %clean
  50. %__rm -rf $RPM_BUILD_ROOT
  51. %files
  52. %defattr(0644,root,root,0755)
  53. %doc COPYING README README.tweaks
  54. %dir %{fontdir}
  55. %{catalogue}/default-Type1
  56. %ghost %verify(not md5 size mtime) %{fontdir}/fonts.dir
  57. %ghost %verify(not md5 size mtime) %{fontdir}/fonts.scale
  58. %ghost %verify(not md5 size mtime) %{fontdir}/fonts.cache-1
  59. %ghost %verify(not md5 size mtime) %{fontdir}/encodings.dir
  60. %{fontdir}/*.afm
  61. %{fontdir}/*.pfm
  62. %{fontdir}/*.pfb
  63. %changelog
  64. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.4-1
  65. - new upstream release
  66. - based on urw-fonts-2.4-10 of Fedora rawhide
  67. * Wed Apr 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-7
  68. - spec in utf-8
  69. * Tue Apr 15 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-6
  70. - update dependancies to xorg-x11-7.3
  71. - drop chkfontpath deps
  72. * Sun Feb 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1-5vl4
  73. - updated Prereq: XOrg-font-utils XOrg-base-fonts
  74. * Mon Jan 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-5vl3
  75. - remove unneeded dependency
  76. * Wed Dec 24 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.1-5vl2
  77. - modified __fccache macro
  78. * Sun Dec 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-5vl1
  79. - merged with fedora 2.1-5.1
  80. * Sat Aug 18 2001 Toru Sagami <sagami@vinelinux.org>
  81. - 2.0-12vl1: was ported to Vine
  82. * Fri Aug 29 2003 Owen Taylor <otaylor@redhat.com> 2.1-5.0
  83. - Add MediItal variant with fixed weight and some of the
  84. missing baseline hints (for u,t)
  85. * Mon Jul 21 2003 Owen Taylor <otaylor@redhat.com> 2.1-4.1
  86. - Bump for rebuild
  87. * Mon Jul 21 2003 Owen Taylor <otaylor@redhat.com> 2.1-4.0
  88. - Replace the regular not italic bold font with the fixed copy
  89. * Wed Jul 9 2003 Owen Taylor <otaylor@redhat.com> 2.1-3.1
  90. - Bump for rebuild
  91. * Wed Jul 9 2003 Owen Taylor <otaylor@redhat.com> 2.1-3
  92. - Add some obvious missing hints that were resulting in
  93. very uneven baselines (#97271)
  94. * Fri Jun 20 2003 Than Ngo <than@redhat.com> 2.1-2
  95. - fix Weight in Nimbus Roman No 9 L (bug #97683)
  96. * Tue Jun 10 2003 Owen Taylor <otaylor@redhat.com> 2.1-1
  97. - Upgrade to upstream version 1.0.7pre22
  98. - Massive cleanups to fonts.dir/fonts.scale handling (use mkfontscale
  99. instead of fonts.scale from the package, etc.)
  100. * Wed Jan 29 2003 Than Ngo 2.0-29
  101. - rebuild
  102. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  103. - rebuilt
  104. * Wed Dec 11 2002 Tim Powers <timp@redhat.com> 2.0-27
  105. - rebuild
  106. * Fri Aug 30 2002 Alexander Larsson <alexl@redhat.com> 2.0-26
  107. - Call fc-cache from %%post, prereq fontconfig
  108. * Fri Jul 12 2002 Owen Taylor <otaylor@redhat.com>
  109. - Didn't revert back far enough to fix hints last time; try again.
  110. * Wed Jul 10 2002 Owen Taylor <otaylor@redhat.com>
  111. - Fix packaging error that lost most of the fonts
  112. * Mon Jul 8 2002 Owen Taylor <otaylor@redhat.com>
  113. - Go back to 1.0 URW/cyrillic version to avoid hinting problems
  114. * Tue Jun 25 2002 Owen Taylor <otaylor@redhat.com>
  115. - Newer upstream version
  116. - Fix accidental revert of urw-fontspecific => adobe-fontspecific change
  117. - Tweak hints in "Nimbus Sans Regular L" a bit.
  118. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  119. - automated rebuild
  120. * Wed Jun 12 2002 Than Ngo <than@redhat.com> 2.0-19
  121. - update urw fonts
  122. - add missing ZapfDingbats font (bug #65101, #65523)
  123. - fixed metric troubles (bug #65522)
  124. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  125. - automated rebuild
  126. * Tue Feb 26 2002 Than Ngo <than@redhat.com> 2.0-17
  127. - rebuild
  128. * Tue Jan 22 2002 Preston Brown <pbrown@redhat.com>
  129. - use adobe-fontspecific instead of urw-fontspecific encoding name for
  130. symbol font. Fixes some java issues.
  131. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  132. - automated rebuild
  133. * Thu Dec 13 2001 Than Ngo <than@redhat.com> 2.0-14
  134. - fixed bug #57306
  135. * Wed Sep 26 2001 Than Ngo <than@redhat.com> 2.0-13
  136. - Added new fonts with cyrrilic glyphs
  137. from ftp://ftp.gnome.ru/fonts/urw/ (bug #52772)
  138. * Thu Nov 16 2000 Than Ngo <than@redhat.com>
  139. - zapf dingbats font works now, fixed (Bug #20352)
  140. * Mon Oct 16 2000 Than Ngo <than@redhat.com>
  141. - added font aliases (Bug #17586)
  142. - added missing fonts.alias
  143. * Wed Aug 30 2000 Preston Brown <pbrown@redhat.com>
  144. - enable latin2 encoding
  145. - alias the Nimbus/Courier font to be monospaced
  146. - include a Fontmap
  147. * Fri Jul 14 2000 Preston Brown <pbrown@redhat.com>
  148. - renamed fonts from URW names to Adobe names for better compatibility
  149. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  150. - automatic rebuild
  151. * Sun Jul 09 2000 Than Ngo <than@redhat.de>
  152. - update gnu-gs-fonts-std-6.0
  153. - fix Url
  154. * Sat May 27 2000 Ngo Than <than@redhat.de>
  155. - rebuild for 7.0
  156. * Wed Mar 08 2000 Preston Brown <pbrown@redhat.com>
  157. - argh! fonts.scale shouldn't have been symlinked to fonts.dir. fixed.
  158. * Mon Feb 28 2000 Preston Brown <pbrown@redhat.com>
  159. - noreplace the fonts.dir config file
  160. * Wed Feb 16 2000 Bill Nottingham <notting@redhat.com>
  161. - need .pfb files too
  162. * Mon Feb 14 2000 Preston Brown <pbrown@redhat.com>
  163. - new URW++ fonts that include extra glyphs.
  164. * Thu Jan 13 2000 Preston Brown <pbrown@redhat.com>
  165. - remove vendor tag.
  166. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  167. - auto rebuild in the new build environment (release 8)
  168. * Tue Mar 09 1999 Preston Brown <pbrown@redhat.com>
  169. - fixed up chkfontpath stuff
  170. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  171. - Injected new description and group.
  172. * Mon Feb 15 1999 Preston Brown <pbrown@redhat.com>
  173. - added missing fonts.dir, fonts.scale, %post, %postun using chkfontpath
  174. - changed foundary from Adobe (which was a lie) to URW.
  175. * Sat Feb 06 1999 Preston Brown <pbrown@redhat.com>
  176. - fonts now live in /usr/share/fonts/default/Type1
  177. * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com>
  178. - eliminated section that adds to XF86Config
  179. - changed fonts to reside in /usr/share/fonts/default/URW, so they can be
  180. shared between X and Ghostscript (and other, future programs/applications)
  181. * Fri Sep 11 1998 Preston Brown <pbrown@redhat.com>
  182. - integrate adding fontdir to XF86Config
  183. * Wed Aug 12 1998 Jeff Johnson <jbj@redhat.com>
  184. - eliminate %post output
  185. * Wed Jul 8 1998 Jeff Johnson <jbj@redhat.com>
  186. - create from Stefan Waldherr <swa@cs.cmu.edu> contrib package.