From 02cdff8f6704c05556ea5594ac6e6e32cf52232ed60b009c5dda8b44b1dc3e68 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Mon, 26 Apr 2010 13:09:28 +0000 Subject: [PATCH] - fixed tiff2pdf output [bnc#599475] OBS-URL: https://build.opensuse.org/package/show/graphics/tiff?expand=0&rev=15 --- tiff-3.9.2-tiff2pdf-colors.patch | 12 ++++++++++++ tiff.changes | 5 +++++ tiff.spec | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 tiff-3.9.2-tiff2pdf-colors.patch diff --git a/tiff-3.9.2-tiff2pdf-colors.patch b/tiff-3.9.2-tiff2pdf-colors.patch new file mode 100644 index 0000000..0cb342b --- /dev/null +++ b/tiff-3.9.2-tiff2pdf-colors.patch @@ -0,0 +1,12 @@ +--- tiff-3.9.2_/tools/tiff2pdf.c 2009-01-01 01:10:43.000000000 +0100 ++++ tiff-3.9.2/tools/tiff2pdf.c 2010-04-24 17:39:00.000000000 +0200 +@@ -5072,7 +5072,7 @@ + + if(t2p->tiff_photometric != PHOTOMETRIC_YCBCR) { + written += t2pWriteFile(output, (tdata_t) "/DecodeParms ", 13); +- written += t2pWriteFile(output, (tdata_t) "<< /ColorTransform 0 >>\n", 24); ++ written += t2pWriteFile(output, (tdata_t) "<< /ColorTransform 1 >>\n", 24); + } + break; + #endif + diff --git a/tiff.changes b/tiff.changes index 48f6c6c..995bf05 100644 --- a/tiff.changes +++ b/tiff.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 26 15:07:09 CEST 2010 - pgajdos@suse.cz + +- fixed tiff2pdf output [bnc#599475] + ------------------------------------------------------------------- Fri Mar 26 08:49:41 UTC 2010 - pgajdos@suse.cz diff --git a/tiff.spec b/tiff.spec index 52f13a4..eceaa56 100644 --- a/tiff.spec +++ b/tiff.spec @@ -35,6 +35,7 @@ Source: tiff-%{version}.tar.bz2 Source2: README.SUSE Source3: baselibs.conf Patch2: tiff-%{version}-seek.patch +Patch3: tiff-%{version}-tiff2pdf-colors.patch # FYI: this issue is solved another way # http://bugzilla.maptools.org/show_bug.cgi?id=1985#c1 # Patch9: tiff-%{version}-lzw-CVE-2009-2285.patch @@ -95,6 +96,7 @@ the libtiff library. %prep %setup -q %patch2 +%patch3 -p1 find -type d -name "CVS" | xargs rm -rfv find -type d | xargs chmod 755