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