2008-04-09 02:42:11 +00:00
#
2014-01-17 10:29:11 +00:00
# spec file for package libspectre
2008-04-09 02:42:11 +00:00
#
2020-08-20 22:07:33 +00:00
# Copyright (c) 2020 SUSE LLC
2008-04-09 02:42:11 +00:00
#
2008-10-22 16:15:51 +00:00
# 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.
2020-08-20 22:07:33 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2008-04-09 02:42:11 +00:00
#
2020-08-20 22:07:33 +00:00
%define debug_package_requires libspectre1 = %{version}-%{release}
2008-04-09 02:42:11 +00:00
Name : libspectre
2020-08-20 22:07:33 +00:00
Version : 0.2.9
2014-01-17 10:29:11 +00:00
Release : 0
Summary : Library for Rendering PostScript Documents
2020-08-20 22:07:33 +00:00
License : GPL-2.0-or-later
2008-04-09 02:42:11 +00:00
Group : Development/Libraries/C and C++
2020-08-20 22:07:33 +00:00
URL : https://libspectre.freedesktop.org/
2014-01-17 10:29:11 +00:00
Source0 : http://libspectre.freedesktop.org/releases/%{name} -%{version} .tar.gz
2016-08-25 06:44:48 +00:00
# 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
2014-01-17 10:29:11 +00:00
BuildRequires : ghostscript-devel
BuildRequires : ghostscript-library
2020-08-20 22:07:33 +00:00
BuildRequires : pkgconfig
2008-04-09 02:42:11 +00:00
%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
2012-10-23 20:43:03 +00:00
Summary : Library for Rendering PostScript Documents
2014-01-17 10:29:11 +00:00
Group : Development/Libraries/C and C++
2008-04-09 02:42:11 +00:00
%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
2012-10-23 20:43:03 +00:00
Summary : Library for Rendering PostScript Documents
2014-01-17 10:29:11 +00:00
Group : Development/Libraries/C and C++
Requires : libspectre1 >= %{version}
2020-08-20 22:07:33 +00:00
%requires_eq ghostscript-devel
2008-04-09 02:42:11 +00:00
%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
2016-08-25 06:44:48 +00:00
%patch0 -p1
2008-04-09 02:42:11 +00:00
%build
%configure --disable-static --enable-shared
2020-08-20 22:07:33 +00:00
%make_build
2008-04-09 02:42:11 +00:00
%install
2014-01-17 10:29:11 +00:00
%make_install
2008-04-09 02:42:11 +00:00
%post -n libspectre1 -p /sbin/ldconfig
%postun -n libspectre1 -p /sbin/ldconfig
%files -n libspectre1
2020-08-20 22:07:33 +00:00
%license COPYING
2014-01-17 10:29:11 +00:00
%{_libdir} /libspectre.so.1*
2008-04-09 02:42:11 +00:00
%files -n libspectre-devel
2014-01-17 10:29:11 +00:00
%{_includedir} /libspectre
%{_libdir} /libspectre.la
%{_libdir} /libspectre.so
%{_libdir} /pkgconfig/libspectre.pc
2008-04-09 02:42:11 +00:00
%changelog