ghostscript-fonts-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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: 4%{?_dist_release}
  12. License: GPLv2+ and Hershey and MIT and OFL and Public Domain
  13. Group: Applications/Publishing
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. URL: http://www.gnu.org/software/ghostscript/
  16. Source: gnu-gs-fonts-other-%{version}-nobch.tar.gz
  17. Source1: Kevin_Hartig-Font_License.txt
  18. Source2: SIL-Open-Font-License.txt
  19. # gnu-gs-fonts-other-5.50 contains fonts with a non-free license (bug #690593).
  20. # Therefore we use this script to remove those fonts before shipping
  21. # it. Download the upstream tarball (from
  22. # http://ftp.gnu.org/gnu/ghostscript/) and invoke this script while in
  23. # the tarball's directory:
  24. # ./generate-tarball.sh 5.50
  25. Source3: generate-tarball.sh
  26. Requires: ghostscript
  27. Requires: fontconfig
  28. Requires(post): xorg-x11-font-utils
  29. Requires(post): fontconfig
  30. Requires(postun): fontconfig
  31. BuildArch: noarch
  32. %description
  33. Ghostscript-fonts contains a set of fonts that Ghostscript, a
  34. PostScript interpreter, uses to render text. These fonts are in
  35. addition to the fonts shared by Ghostscript and the X Window System.
  36. You'll need to install ghostscript-fonts if you're installing
  37. ghostscript.
  38. %description -l ja
  39. ghostscript-fonts には Ghostscripts ポストスクリプトインタプリタ
  40. でテキストをレンダリングするために必要なフォント一式が含まれてい
  41. ます。このフォントは Ghostscript と X ウィンドウシステムの両方で
  42. 利用されます。
  43. ghostscript をインストールする場合は ghostscript-fonts もインス
  44. トールする必要があります。
  45. %prep
  46. %setup -q -c ghostscript-fonts-%{version}
  47. cp -p %{SOURCE1} %{SOURCE2} .
  48. # Remove Hershey fonts as they cause problems (bug #707007).
  49. find fonts -type f | xargs grep -lw Hershey | xargs rm -f
  50. %build
  51. %install
  52. %__rm -rf $RPM_BUILD_ROOT
  53. %__mkdir_p $RPM_BUILD_ROOT%{fontdir}
  54. %__cp -p fonts/* $RPM_BUILD_ROOT%{fontdir}
  55. # Touch ghosted files
  56. touch $RPM_BUILD_ROOT%{fontdir}/fonts.{dir,scale}
  57. # Install catalogue symlink
  58. %__mkdir_p $RPM_BUILD_ROOT%{catalogue}
  59. %__ln_s -f %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript
  60. %post
  61. %{__mkfontscale} %{fontdir} ||:
  62. %{__mkfontdir} %{fontdir} ||:
  63. %{__fccache} %{_datadir}/fonts ||:
  64. %postun
  65. if [ "$1" = "0" ]; then
  66. %{__fccache} %{_datadir}/fonts ||:
  67. fi
  68. %clean
  69. %__rm -rf $RPM_BUILD_ROOT
  70. %files
  71. %defattr(-,root,root,-)
  72. %{_datadir}/fonts/default/ghostscript
  73. %{catalogue}/default-ghostscript
  74. %changelog
  75. * Sat Jul 4 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.50-4
  76. - removed files that have problems.
  77. * Mon Jan 20 2014 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-3
  78. - rebuild
  79. * Sat Apr 16 2011 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-2
  80. - added %%{catalogue}/default-ghostscript
  81. - fixed BuildRoot:, URL: tags
  82. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 5.50-1vl5
  83. - applied new versioning policy, spec in utf-8
  84. * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl2
  85. - rebuild to add gpg sign
  86. - add Japanese summary and description.
  87. * Mon Feb 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 5.50-1vl1
  88. - just rebuild with Vine Linux
  89. * Mon Feb 14 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  90. - 5.50
  91. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  92. - auto rebuild in the new build environment (release 3)
  93. * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
  94. - Injected new description and group.
  95. * Wed Jan 13 1999 Preston Brown <pbrown@redhat.com>
  96. - renamed package to be consistent with new ghostscript.
  97. * Fri Nov 13 1998 Preston Brown <pbrown@redhat.com>
  98. - removed the std fonts...now shared between X11 and gs with URW fonts pkg.
  99. * Thu Jul 2 1998 Jeff Johnson <jbj@redhat.com>
  100. - update to 4.03.
  101. * Mon May 04 1998 Erik Troan <ewt@redhat.com>
  102. - set the owner and group of all of the files to 0.0
  103. * Tue Sep 23 1997 Erik Troan <ewt@redhat.com>
  104. - made a noarch package