* 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) OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/libspectre?expand=0&rev=27
84 lines
2.7 KiB
RPMSpec
84 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package libspectre
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define debug_package_requires libspectre1 = %{version}-%{release}
|
|
Name: libspectre
|
|
Version: 0.2.9
|
|
Release: 0
|
|
Summary: Library for Rendering PostScript Documents
|
|
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
|
|
BuildRequires: ghostscript-devel
|
|
BuildRequires: ghostscript-library
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
libspectre is a small library for rendering Postscript documents. It
|
|
provides a convenient easy to use API for handling and rendering
|
|
Postscript documents.
|
|
|
|
%package -n libspectre1
|
|
Summary: Library for Rendering PostScript Documents
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libspectre1
|
|
libspectre is a small library for rendering Postscript documents. It
|
|
provides a convenient easy to use API for handling and rendering
|
|
Postscript documents.
|
|
|
|
%package -n libspectre-devel
|
|
Summary: Library for Rendering PostScript Documents
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libspectre1 >= %{version}
|
|
%requires_eq ghostscript-devel
|
|
|
|
%description -n libspectre-devel
|
|
libspectre is a small library for rendering Postscript documents. It
|
|
provides a convenient easy to use API for handling and rendering
|
|
Postscript documents.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%configure --disable-static --enable-shared
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%post -n libspectre1 -p /sbin/ldconfig
|
|
%postun -n libspectre1 -p /sbin/ldconfig
|
|
|
|
%files -n libspectre1
|
|
%license COPYING
|
|
%{_libdir}/libspectre.so.1*
|
|
|
|
%files -n libspectre-devel
|
|
%{_includedir}/libspectre
|
|
%{_libdir}/libspectre.la
|
|
%{_libdir}/libspectre.so
|
|
%{_libdir}/pkgconfig/libspectre.pc
|
|
|
|
%changelog
|