|
@@ -10,12 +10,21 @@ Summary: Fonts for the Ghostscript PostScript(TM) interpreter
|
|
|
Summary(ja): Ghostscript ポストスクリプト(TM) インタプリタ用のフォント
|
|
|
Name: ghostscript-fonts
|
|
|
Version: 5.50
|
|
|
-Release: 3%{?_dist_release}
|
|
|
-License: GPL
|
|
|
+Release: 4%{?_dist_release}
|
|
|
+License: GPLv2+ and Hershey and MIT and OFL and Public Domain
|
|
|
Group: Applications/Publishing
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
URL: http://www.gnu.org/software/ghostscript/
|
|
|
-Source: ftp://ftp.cs.wisc.edu/pub/ghost/gnu/gs550/gnu-gs-fonts-other-%{version}.tar.gz
|
|
|
+Source: gnu-gs-fonts-other-%{version}-nobch.tar.gz
|
|
|
+Source1: Kevin_Hartig-Font_License.txt
|
|
|
+Source2: SIL-Open-Font-License.txt
|
|
|
+# gnu-gs-fonts-other-5.50 contains fonts with a non-free license (bug #690593).
|
|
|
+# Therefore we use this script to remove those fonts before shipping
|
|
|
+# it. Download the upstream tarball (from
|
|
|
+# http://ftp.gnu.org/gnu/ghostscript/) and invoke this script while in
|
|
|
+# the tarball's directory:
|
|
|
+# ./generate-tarball.sh 5.50
|
|
|
+Source3: generate-tarball.sh
|
|
|
Requires: ghostscript
|
|
|
Requires: fontconfig
|
|
|
Requires(post): xorg-x11-font-utils
|
|
@@ -42,6 +51,10 @@ ghostscript をインストールする場合は ghostscript-fonts もインス
|
|
|
|
|
|
%prep
|
|
|
%setup -q -c ghostscript-fonts-%{version}
|
|
|
+cp -p %{SOURCE1} %{SOURCE2} .
|
|
|
+
|
|
|
+# Remove Hershey fonts as they cause problems (bug #707007).
|
|
|
+find fonts -type f | xargs grep -lw Hershey | xargs rm -f
|
|
|
|
|
|
%build
|
|
|
|
|
@@ -50,6 +63,9 @@ ghostscript をインストールする場合は ghostscript-fonts もインス
|
|
|
%__mkdir_p $RPM_BUILD_ROOT%{fontdir}
|
|
|
%__cp -p fonts/* $RPM_BUILD_ROOT%{fontdir}
|
|
|
|
|
|
+# Touch ghosted files
|
|
|
+touch $RPM_BUILD_ROOT%{fontdir}/fonts.{dir,scale}
|
|
|
+
|
|
|
# Install catalogue symlink
|
|
|
%__mkdir_p $RPM_BUILD_ROOT%{catalogue}
|
|
|
%__ln_s -f %{fontdir} $RPM_BUILD_ROOT%{catalogue}/default-ghostscript
|
|
@@ -73,6 +89,9 @@ fi
|
|
|
%{catalogue}/default-ghostscript
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Jul 4 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.50-4
|
|
|
+- removed files that have problems.
|
|
|
+
|
|
|
* Mon Jan 20 2014 Munehiro Yamamoto <munepi@vinelinux.org> 5.50-3
|
|
|
- rebuild
|
|
|
|