ghostscript-fonts-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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: 3%{?_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. * Mon Jan 20 2014 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-3
  62. - rebuild
  63. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-2
  64. - added %%{catalogue}/default-ghostscript
  65. - fixed BuildRoot:, URL: tags
  66. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 5.50-1vl5
  67. - applied new versioning policy, spec in utf-8
  68. * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl2
  69. - rebuild to add gpg sign
  70. - add Japanese summary and description.
  71. * Mon Feb 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl1
  72. - just rebuild with Vine Linux
  73. * Mon Feb 14 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  74. - 5.50
  75. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  76. - auto rebuild in the new build environment (release 3)
  77. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  78. - Injected new description and group.
  79. * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com>
  80. - renamed package to be consistent with new ghostscript.
  81. * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com>
  82. - removed the std fonts...now shared between X11 and gs with URW fonts pkg.
  83. * Thu Jul 2 1998 Jeff Johnson <jbj@redhat.com>
  84. - update to 4.03.
  85. * Mon May 04 1998 Erik Troan <ewt@redhat.com>
  86. - set the owner and group of all of the files to 0.0
  87. * Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
  88. - made a noarch package