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..38ec934 100644 --- a/tiff.spec +++ b/tiff.spec @@ -19,7 +19,7 @@ Name: tiff BuildRequires: gcc-c++ libjpeg-devel zlib-devel -License: MIT License (or similar) +License: PERMISSIVE-OSI-COMPLIANT ; MIT License (or similar) Group: Productivity/Graphics/Convertors AutoReqProv: on # bug437293 @@ -29,12 +29,13 @@ Obsoletes: tiff-64bit # Url: http://www.remotesensing.org/libtiff/ Version: 3.9.2 -Release: 2 +Release: 3 Summary: Tools for Converting from and to the Tiff Format 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