Accepting request 421899 from X11:common:Factory

Add fix-bsc975503.diff bsc#975503, fdo#97091

OBS-URL: https://build.opensuse.org/request/show/421899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libspectre?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2016-08-26 21:15:23 +00:00 committed by Git OBS Bridge
commit bfa341c213
3 changed files with 24 additions and 0 deletions

13
fix-bsc975503.diff Normal file
View File

@ -0,0 +1,13 @@
Index: libspectre-0.2.7/libspectre/spectre-document.c
===================================================================
--- libspectre-0.2.7.orig/libspectre/spectre-document.c
+++ libspectre-0.2.7/libspectre/spectre-document.c
@@ -67,7 +67,7 @@ spectre_document_load (SpectreDocument *
document->doc = NULL;
}
- document->doc = psscan (filename, SCANSTYLE_NORMAL);
+ document->doc = psscan (filename, SCANSTYLE_IGNORE_EOF);
if (!document->doc) {
document->status = SPECTRE_STATUS_LOAD_ERROR;
return;

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Aug 23 14:39:44 UTC 2016 - alarrosa@suse.com
- Add fix-bsc975503.diff to fix handling of PostScript files with
embedded EPS files. The PS file then contains two "%%EOF" DSC
comments and the first one stopped the parsing of the file as if
the real EOF was reached (bsc#975503, fdo#97091).
-------------------------------------------------------------------
Sat Jul 2 13:32:33 UTC 2016 - zaitor@opensuse.org

View File

@ -25,6 +25,8 @@ Summary: Library for Rendering PostScript Documents
License: GPL-2.0+
Group: Development/Libraries/C and C++
Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-bsc975503.diff bsc#975503 fdo#97091 -- Parse ps files ignoring EOF comments which would stop parsing too soon in documents with embedded EPS files.
Patch0: fix-bsc975503.diff
%define debug_package_requires libspectre1 = %{version}-%{release}
BuildRequires: ghostscript-devel
BuildRequires: ghostscript-library
@ -58,6 +60,7 @@ Postscript documents.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static --enable-shared