|
@@ -1,18 +1,20 @@
|
|
|
-%define gs_ver 9.20
|
|
|
-%define gs_dot_ver 9.20
|
|
|
+%define gs_dot_ver 9.27
|
|
|
+
|
|
|
+%define gs_ver %(echo %{gs_dot_ver} | sed -e "s/\\.//")
|
|
|
%{expand: %%define build_with_freetype %{?_with_freetype:1}%{!?_with_freetype:0}}
|
|
|
+
|
|
|
Summary: A PostScript(TM) interpreter and renderer.
|
|
|
Summary(ja): 日本語 PostScript(TM) インタプリタ/レンダラ/ビュア
|
|
|
Name: ghostscript
|
|
|
-Version: %{gs_ver}
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Version: %{gs_dot_ver}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
|
|
# Included CMap data is Redistributable, no modification permitted,
|
|
|
# see http://bugzilla.redhat.com/487510
|
|
|
License: AGPLv3+ and Redistributable, no modification permitted
|
|
|
URL: http://www.ghostscript.com/
|
|
|
Group: Applications/Publishing
|
|
|
-Source0: ghostscript-%{gs_ver}.tar.xz
|
|
|
+Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%{gs_ver}/ghostscript-%{gs_dot_ver}.tar.xz
|
|
|
# ghostscript contains code we cannot ship due to licensing concerns.
|
|
|
# Therefore we use this script to remove it before shipping the
|
|
|
# tarball.
|
|
@@ -26,28 +28,16 @@ Source5: cidfmap.ja
|
|
|
Source10: Changelog.gs7.vine
|
|
|
|
|
|
# patches from fedora
|
|
|
-Patch1: ghostscript-9.20-fix-openjpeg-system-build.patch
|
|
|
-Patch2: ghostscript-9.20-runlibfileifexists.patch
|
|
|
-Patch3: ghostscript-9.20-run-dvipdf-securely.patch
|
|
|
-Patch4: ghostscript-9.20-urw-fonts-naming.patch
|
|
|
-Patch10: ghostscript-9.20-handle-glyphdirectory-correctly.patch
|
|
|
-Patch11: ghostscript-9.20-remove-and-reimplement-ConvertUTF.patch
|
|
|
+Patch100: ghostscript-9.23-100-run-dvipdf-securely.patch
|
|
|
|
|
|
# security patches
|
|
|
-Patch5: ghostscript-9.20-cve-2016-7979.patch
|
|
|
-Patch6: ghostscript-9.20-cve-2016-7976.patch
|
|
|
-Patch7: ghostscript-9.20-cve-2016-7978.patch
|
|
|
-Patch8: ghostscript-9.20-cve-2016-8602.patch
|
|
|
-Patch9: ghostscript-9.20-cve-2016-7977.patch
|
|
|
-Patch12: ghostscript-9.20-cve-2016-9601.patch
|
|
|
-Patch13: ghostscript-9.20-cve-2017-7207.patch
|
|
|
-Patch14: ghostscript-9.20-cve-2016-10217.patch
|
|
|
-Patch15: ghostscript-9.20-cve-2016-10218.patch
|
|
|
-Patch16: ghostscript-9.20-cve-2016-10219.patch
|
|
|
-Patch17: ghostscript-9.20-cve-2016-10220.patch
|
|
|
-Patch18: ghostscript-9.20-cve-2017-5951.patch
|
|
|
-Patch19: ghostscript-9.20-cve-2017-8291.patch
|
|
|
-Patch20: ghostscript-9.20-cve-2017-7975.patch
|
|
|
+Patch001: ghostscript-cve-2019-10216.patch
|
|
|
+Patch002: CVE-2019-14811_14812_14813.patch
|
|
|
+Patch003: 0001-fix-CVE-2019-14817.patch
|
|
|
+
|
|
|
+# Vine patch(es)
|
|
|
+Patch1000: runlibfileifexists.patch
|
|
|
+
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
BuildRequires: xz
|
|
@@ -144,84 +134,24 @@ Group: Applications/Publishing
|
|
|
A GTK-enabled version of Ghostscript, called 'gsx'.
|
|
|
|
|
|
%prep
|
|
|
-%setup -q -n %{name}-%{gs_ver}
|
|
|
-rm -rf expat freetype icclib jasper jpeg jpegxr lcms lcms2 libpng openjpeg zlib cups/libs
|
|
|
+%setup -q -n %{name}-%{gs_dot_ver}
|
|
|
+rm -rf cups/libs expat freetype icclib jasper jpeg jpegxr lcms lcms2 libpng openjpeg zlib
|
|
|
+rm -rf windows
|
|
|
|
|
|
%patch1 -p1
|
|
|
-
|
|
|
-# Fix error when using 'convert' from ImageMagick, and
|
|
|
-# make sure the configuration in /etc/ghostscript/Fonts.local is used:
|
|
|
%patch2 -p1
|
|
|
-
|
|
|
-# Fix some shell scripts
|
|
|
%patch3 -p1
|
|
|
|
|
|
-# Use old names for urw-fonts (bug #1207577).
|
|
|
-%patch4 -p1
|
|
|
-
|
|
|
-# security patches.
|
|
|
-# DSC parser - validate parameters (bug #1382305):
|
|
|
-%patch5 -p1
|
|
|
-
|
|
|
-# Add a file permissions callaback (bug #1382294):
|
|
|
-%patch6 -p1
|
|
|
-
|
|
|
-# Reference count device icc profile (bug #1382300):
|
|
|
-%patch7 -p1
|
|
|
-
|
|
|
-# Check for sufficient params in .sethalftone5 (bug #1383940):
|
|
|
-%patch8 -p1
|
|
|
-
|
|
|
-# Honor -dSAFER in .libfile (bug #1380415):
|
|
|
-%patch9 -p1
|
|
|
-
|
|
|
-# handle GlyphDirectory as an array (http://bugs.ghostscript.com/show_bug.cgi?id=697286):
|
|
|
-%patch10 -p1
|
|
|
-
|
|
|
-# Remove (and re-implement) ConvertUTF.c because of licensing issues (bug #1404933):
|
|
|
-%patch11 -p1
|
|
|
-
|
|
|
-# Squash signed/unsigned warnings in MSVC jbig2 build (bug #1410021):
|
|
|
-%patch12 -p1
|
|
|
-
|
|
|
-# Check for null-pointer dereference in mem_get_bits_rectangle() (bug #1434497):
|
|
|
-%patch13 -p1
|
|
|
-
|
|
|
-# CVE-2016-10217 (bug #1441564):
|
|
|
-%patch14 -p1
|
|
|
-
|
|
|
-# CVE-2016-10218 (bug #1441568):
|
|
|
-%patch15 -p1
|
|
|
-
|
|
|
-# CVE-2016-10219 (bug #1441569):
|
|
|
-%patch16 -p1
|
|
|
-
|
|
|
-# CVE-2016-10220 (bug #1441571):
|
|
|
-%patch17 -p1
|
|
|
-
|
|
|
-# CVE-2017-5951 (bug #1441572):
|
|
|
-%patch18 -p1
|
|
|
-
|
|
|
-# CVE-2017-8291 (bug #1446063):
|
|
|
-%patch19 -p1
|
|
|
-
|
|
|
-# CVE-2017-7975 (bug #1443940):
|
|
|
-%patch20 -p1
|
|
|
+%patch100 -p1
|
|
|
|
|
|
+%patch1000 -p1
|
|
|
|
|
|
# Convert manual pages to UTF-8
|
|
|
from8859_1() {
|
|
|
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
|
|
|
mv "${1}_" "$1"
|
|
|
}
|
|
|
-for i in man/de/*.1; do
|
|
|
- if [ "$(file --brief --mime-encoding "$i")" = iso-8859-1 ]; then
|
|
|
- from8859_1 "$i"
|
|
|
- fi
|
|
|
-done
|
|
|
|
|
|
-# Convert ps files to UTF-8
|
|
|
-for i in examples/cjk/gsc*.ps; do from8859_1 "$i"; done
|
|
|
|
|
|
%build
|
|
|
# Compile without strict aliasing opts due to these files:
|
|
@@ -309,12 +239,14 @@ cd ..
|
|
|
echo ".so man1/gs.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/ghostscript.1
|
|
|
ln -sf gs $RPM_BUILD_ROOT/usr/bin/ghostscript
|
|
|
|
|
|
+%if 0
|
|
|
# Rename an original cidfmap to cidfmap.GS
|
|
|
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/%{gs_dot_ver}/Resource/Init/cidfmap{,.GS}
|
|
|
# Install our own cidfmap to allow the separated
|
|
|
# cidfmap which the font packages own.
|
|
|
install -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/%{gs_dot_ver}/Resource/Init/CIDFnmap
|
|
|
install -m0644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/%{name}/%{gs_dot_ver}/Resource/Init/cidfmap
|
|
|
+%endif
|
|
|
|
|
|
# Documentation
|
|
|
install -m0644 doc/COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}-%{gs_dot_ver}
|
|
@@ -329,7 +261,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/ijs_{client,server}_example
|
|
|
|
|
|
# Don't ship URW fonts; we already have them.
|
|
|
-rm -rf $RPM_BUILD_ROOT%{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Font
|
|
|
+#rm -rf $RPM_BUILD_ROOT%{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Font
|
|
|
|
|
|
# cjk examples
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/%{gs_dot_ver}/examples/cjk
|
|
@@ -344,7 +276,7 @@ touch $RPM_BUILD_ROOT/etc/ghostscript/%{gs_dot_ver}/Fontmap.local
|
|
|
touch $RPM_BUILD_ROOT/etc/ghostscript/%{gs_dot_ver}/cidfmap.local
|
|
|
|
|
|
# cidfmap.ja
|
|
|
-install -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.d
|
|
|
+#install -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/conf.d
|
|
|
|
|
|
# vine's historical changelog
|
|
|
install -m644 %{SOURCE10} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{gs_dot_ver}
|
|
@@ -381,10 +313,12 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%dir %{_datadir}/ghostscript/conf.d
|
|
|
%dir %{_datadir}/ghostscript/%{gs_dot_ver}
|
|
|
%dir %{_datadir}/ghostscript/%{gs_dot_ver}/Resource
|
|
|
+%dir %{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Font
|
|
|
%dir %{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Init
|
|
|
%config %{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Init/gs_init.ps
|
|
|
%config %{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Init/Fontmap*
|
|
|
-%config %{_datadir}/ghostscript/conf.d/cidfmap.ja
|
|
|
+#config %{_datadir}/ghostscript/conf.d/cidfmap.ja
|
|
|
+%exclude %{_datadir}/ghostscript/%{gs_dot_ver}/Resource/Font/URW*
|
|
|
%{_datadir}/ghostscript/%{gs_dot_ver}/examples
|
|
|
%{_datadir}/ghostscript/%{gs_dot_ver}/lib
|
|
|
%{_datadir}/ghostscript/%{gs_dot_ver}/iccprofiles
|
|
@@ -414,6 +348,16 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%{_libdir}/libgs.so
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.27-2
|
|
|
+- added missing fonts.
|
|
|
+
|
|
|
+* Fri Sep 06 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.27-1
|
|
|
+- new upstream release.
|
|
|
+- dropped all patches.
|
|
|
+- imported Patch001 and 100 from rawhide.
|
|
|
+- imported Patch002 and 003 from upstream.
|
|
|
+- added Patch1000.
|
|
|
+
|
|
|
* Mon May 8 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.20-1
|
|
|
- new upstream release.
|
|
|
- dropped all patches.
|