ghostscript-fonts-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define fontdir %{_datadir}/fonts/default/ghostscript
  2. %define catalogue %{_sysconfdir}/X11/fontpath.d
  3. # font manipulation macro
  4. %define __mkfontscale umask 133;%{_bindir}/mkfontscale
  5. %define __mkfontdir umask 133;%{_bindir}/mkfontdir
  6. %define __fccache umask 133;which fc-cache &> /dev/null && fc-cache
  7. Summary: Fonts for the Ghostscript PostScript(TM) interpreter
  8. Summary(ja): Ghostscript ポストスクリプト(TM) インタプリタ用のフォント
  9. Name: ghostscript-fonts
  10. Version: 5.50
  11. Release: 2%{?_dist_release}
  12. License: GPL
  13. Group: Applications/Publishing
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. URL: http://www.gnu.org/software/ghostscript/
  16. Source: ftp://ftp.cs.wisc.edu/pub/ghost/gnu/gs550/gnu-gs-fonts-other-%{version}.tar.gz
  17. Requires: ghostscript
  18. Requires: fontconfig
  19. Requires(post): xorg-x11-font-utils
  20. Requires(post): fontconfig
  21. Requires(postun): fontconfig
  22. BuildArch: noarch
  23. %description
  24. Ghostscript-fonts contains a set of fonts that Ghostscript, a
  25. PostScript interpreter, uses to render text. These fonts are in
  26. addition to the fonts shared by Ghostscript and the X Window System.
  27. You'll need to install ghostscript-fonts if you're installing
  28. ghostscript.
  29. %description -l ja
  30. ghostscript-fonts には Ghostscripts ポストスクリプトインタプリタ
  31. でテキストをレンダリングするために必要なフォント一式が含まれてい
  32. ます。このフォントは Ghostscript と X ウィンドウシステムの両方で
  33. 利用されます。
  34. ghostscript をインストールする場合は ghostscript-fonts もインス
  35. トールする必要があります。
  36. %prep
  37. %setup -q -c ghostscript-fonts-%{version}
  38. %build
  39. %install
  40. %__rm -rf $RPM_BUILD_ROOT
  41. %__mkdir_p $RPM_BUILD_ROOT%{fontdir}
  42. %__cp -p fonts/* $RPM_BUILD_ROOT%{fontdir}
  43. # Install catalogue symlink
  44. %__mkdir_p $RPM_BUILD_ROOT%{catalogue}
  45. %__ln_s -f %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript
  46. %post
  47. %{__mkfontscale} %{fontdir} ||:
  48. %{__mkfontdir} %{fontdir} ||:
  49. %{__fccache} %{_datadir}/fonts ||:
  50. %postun
  51. if [ "$1" = "0" ]; then
  52. %{__fccache} %{_datadir}/fonts ||:
  53. fi
  54. %clean
  55. %__rm -rf $RPM_BUILD_ROOT
  56. %files
  57. %defattr(-,root,root,-)
  58. %{_datadir}/fonts/default/ghostscript
  59. %{catalogue}/default-ghostscript
  60. %changelog
  61. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-2
  62. - added %%{catalogue}/default-ghostscript
  63. - fixed BuildRoot:, URL: tags
  64. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 5.50-1vl5
  65. - applied new versioning policy, spec in utf-8
  66. * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl2
  67. - rebuild to add gpg sign
  68. - add Japanese summary and description.
  69. * Mon Feb 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl1
  70. - just rebuild with Vine Linux
  71. * Mon Feb 14 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  72. - 5.50
  73. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  74. - auto rebuild in the new build environment (release 3)
  75. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  76. - Injected new description and group.
  77. * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com>
  78. - renamed package to be consistent with new ghostscript.
  79. * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com>
  80. - removed the std fonts...now shared between X11 and gs with URW fonts pkg.
  81. * Thu Jul 2 1998 Jeff Johnson <jbj@redhat.com>
  82. - update to 4.03.
  83. * Mon May 04 1998 Erik Troan <ewt@redhat.com>
  84. - set the owner and group of all of the files to 0.0
  85. * Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
  86. - made a noarch package