Accepting request 828315 from X11:common:Factory

- update to 0.2.9:
  * Fixed lots of crashes, memory leaks with malformed
  documents (Albert Astals Cid, Randy)
  * Ghostscript 9.24 is now required (Christian Persch)
  * Hide internal symbols (Christian Persch)
  * Added "(libspectre)" to the error messages to be clear where the
  messages come from (Caolán McNamara)
  * Fixed clang warnings (Albert Astals Cid) 
- fix-bsc975503.diff: refresh

OBS-URL: https://build.opensuse.org/request/show/828315
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libspectre?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2020-09-01 18:00:45 +00:00 committed by Git OBS Bridge
commit d42aa5be39
5 changed files with 36 additions and 28 deletions

View File

@ -1,13 +1,13 @@
Index: libspectre-0.2.7/libspectre/spectre-document.c
Index: libspectre-0.2.9/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;
--- libspectre-0.2.9.orig/libspectre/spectre-document.c
+++ libspectre-0.2.9/libspectre/spectre-document.c
@@ -72,7 +72,7 @@ document_load (SpectreDocument *document
return;
}
- document->doc = psscan (filename, SCANSTYLE_NORMAL);
+ document->doc = psscan (filename, SCANSTYLE_IGNORE_EOF);
- document->doc = psscan (file, filename, SCANSTYLE_NORMAL);
+ document->doc = psscan (file, filename, SCANSTYLE_IGNORE_EOF);
if (!document->doc) {
document->status = SPECTRE_STATUS_LOAD_ERROR;
return;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65256af389823bbc4ee4d25bfd1cc19023ffc29ae9f9677f2d200fa6e98bc7a8
size 421791

3
libspectre-0.2.9.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49ae9c52b5af81b405455c19fe24089d701761da2c45d22164a99576ceedfbed
size 433384

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Aug 20 22:01:59 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 0.2.9:
* Fixed lots of crashes, memory leaks with malformed
documents (Albert Astals Cid, Randy)
* Ghostscript 9.24 is now required (Christian Persch)
* Hide internal symbols (Christian Persch)
* Added "(libspectre)" to the error messages to be clear where the
messages come from (Caolán McNamara)
* Fixed clang warnings (Albert Astals Cid)
- fix-bsc975503.diff: refresh
-------------------------------------------------------------------
Tue Aug 23 14:39:44 UTC 2016 - alarrosa@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libspectre
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,26 +12,24 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Url: http://libspectre.freedesktop.org/
%define debug_package_requires libspectre1 = %{version}-%{release}
Name: libspectre
Version: 0.2.8
Version: 0.2.9
Release: 0
Summary: Library for Rendering PostScript Documents
License: GPL-2.0+
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: https://libspectre.freedesktop.org/
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
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
%description
libspectre is a small library for rendering Postscript documents. It
@ -51,7 +49,7 @@ Postscript documents.
Summary: Library for Rendering PostScript Documents
Group: Development/Libraries/C and C++
Requires: libspectre1 >= %{version}
%requires_eq ghostscript-devel
%requires_eq ghostscript-devel
%description -n libspectre-devel
libspectre is a small library for rendering Postscript documents. It
@ -64,25 +62,19 @@ Postscript documents.
%build
%configure --disable-static --enable-shared
make %{?_smp_mflags}
%make_build
%install
%make_install
%post -n libspectre1 -p /sbin/ldconfig
%postun -n libspectre1 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -n libspectre1
%defattr(-, root, root)
%doc COPYING
%license COPYING
%{_libdir}/libspectre.so.1*
%files -n libspectre-devel
%defattr(-, root, root)
%{_includedir}/libspectre
%{_libdir}/libspectre.la
%{_libdir}/libspectre.so