Backport a patch from svn trunk to enable colord support.

This commit is contained in:
Richard Hughes 2011-03-08 11:29:45 +00:00
parent 1a1240ee01
commit 63ba0ce8b3
3 changed files with 1295 additions and 1 deletions

1267
ghostscript-colord.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
diff -urNp ghostscript-9.01.old/ijs/Makefile.am ghostscript-9.01/ijs/Makefile.am
--- ghostscript-9.01.old/ijs/Makefile.am 2011-03-08 10:09:33.055722164 +0000
+++ ghostscript-9.01/ijs/Makefile.am 2011-03-08 10:09:37.390722163 +0000
@@ -24,7 +24,7 @@
## Process this file with automake to produce Makefile.in.
-AUTOMAKE_OPTIONS = 1.6 foreign dist-bzip2 no-dependencies
+AUTOMAKE_OPTIONS = 1.8 foreign dist-bzip2 no-dependencies
@SET_MAKE@

View File

@ -5,7 +5,7 @@ Summary: A PostScript interpreter and renderer
Name: ghostscript
Version: %{gs_ver}
Release: 1%{?dist}
Release: 2%{?dist}
# Included CMap data is Redistributable, no modification permitted,
# see http://bugzilla.redhat.com/487510
@ -19,6 +19,7 @@ Source4: cidfmap
Patch1: ghostscript-multilib.patch
Patch2: ghostscript-scripts.patch
Patch3: ghostscript-noopt.patch
Patch4: ghostscript-ijs-automake-ver.patch
Patch5: ghostscript-runlibfileifexists.patch
Patch7: ghostscript-pksmraw.patch
Patch8: ghostscript-jbig2dec-nullderef.patch
@ -28,9 +29,11 @@ Patch21: ghostscript-jbig2-image-refcount.patch
Patch27: ghostscript-Fontmap.local.patch
Patch28: ghostscript-iccprofiles-initdir.patch
Patch29: ghostscript-gdevcups-debug-uninit.patch
Patch30: ghostscript-colord.patch
Requires: urw-fonts >= 1.1, ghostscript-fonts
Requires: poppler-data
Requires: colord
BuildRequires: xz
BuildRequires: libjpeg-devel, libXt-devel
BuildRequires: zlib-devel, libpng-devel, unzip, gtk2-devel
@ -41,6 +44,7 @@ BuildRequires: libtiff-devel
BuildRequires: cups-devel >= 1.1.13
BuildRequires: libtool
BuildRequires: jasper-devel
BuildRequires: dbus-devel
BuildRequires: poppler-data
%{?_with_freetype:BuildRequires: freetype-devel}
BuildRoot: %{_tmppath}/%{name}-%{gs_ver}-root
@ -113,6 +117,10 @@ rm -rf libpng zlib jpeg jasper
# Build igcref.c with -O0 to work around bug #150771.
%patch3 -p1 -b .noopt
# Fix ./autgen.sh in ijs sub-project
# See http://bugs.ghostscript.com/show_bug.cgi?id=692040 for details.
%patch4 -p1 -b .ijs-automake-ver
# Define .runlibfileifexists.
%patch5 -p1
@ -143,6 +151,9 @@ rm -rf libpng zlib jpeg jasper
# gdevcups: don't use uninitialized variables in debugging output.
%patch29 -p1 -b .gdevcups-debug-uninit
# colord: use colord to get the correct device profile
%patch30 -p1 -b .colord
# Convert manual pages to UTF-8
from8859_1() {
iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
@ -176,6 +187,7 @@ for path in \
do
FONTPATH="$FONTPATH${FONTPATH:+:}$path"
done
autoconf --force
%configure --with-ijs --enable-dynamic --with-fontpath="$FONTPATH" \
--with-drivers=ALL --disable-compile-inits --with-system-libtiff \
CFLAGS="$CFLAGS $EXTRACFLAGS"
@ -334,6 +346,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libgs.so
%changelog
* Thu Feb 10 2011 Richard Hughes <rhughes@redhat.com> 9.01-2
- Backport a patch from svn trunk to enable colord support.
* Thu Feb 10 2011 Tim Waugh <twaugh@redhat.com> 9.01-1
- 9.01. No longer needed gdevcups-691733, glyph-stretch-691920,
icc-fix, scan_token, or system-jasper patches.