File libgxps.spec of Package libgxps
#
# spec file for package libgxps
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: libgxps
Version: 0.2.2
Release: 0
Summary: Library for rendering XPS documents
License: LGPL-2.1+
Group: System/Libraries
Url: https://live.gnome.org/libgxps
Source0: http://download.gnome.org/sources/libgxps/0.2/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM libgxps-libpng16.patch pgajdos@suse.com -- Also build against libpng16, patch from upstream git.
Patch0: libgxps-libpng16.patch
BuildRequires: gobject-introspection-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires: xz
BuildRequires: pkgconfig(cairo) >= 1.10.0
BuildRequires: pkgconfig(cairo-pdf)
BuildRequires: pkgconfig(cairo-ps)
BuildRequires: pkgconfig(cairo-svg)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gio-2.0) >= 2.24
BuildRequires: pkgconfig(glib-2.0) >= 2.24
BuildRequires: pkgconfig(gobject-2.0) >= 2.24
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libarchive) >= 2.8.0
BuildRequires: pkgconfig(libpng)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libgxps is a GObject based library for handling and rendering XPS
documents.
%package -n libgxps2
Summary: Library for rendering XPS documents
Group: System/Libraries
%description -n libgxps2
libgxps is a GObject based library for handling and rendering XPS
documents.
%package -n typelib-1_0-GXPS-0_1
Summary: Library for rendering XPS documents -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-GXPS-0_1
libgxps is a GObject based library for handling and rendering XPS
documents.
This package provides the GObject Introspection bindings for libgxps.
%package tools
Summary: Library for rendering XPS documents -- Tools
Group: Productivity/Publishing/Other
%description tools
libgxps is a GObject based library for handling and rendering XPS
documents.
%package devel
Summary: Library for rendering XPS documents -- Development Files
Group: Development/Libraries/C and C++
Requires: libgxps2 = %{version}
Requires: typelib-1_0-GXPS-0_1 = %{version}
%description devel
libgxps is a GObject based library for handling and rendering XPS
documents.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%post -n libgxps2 -p /sbin/ldconfig
%postun -n libgxps2 -p /sbin/ldconfig
%files -n libgxps2
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/libgxps.so.2*
%files -n typelib-1_0-GXPS-0_1
%defattr(-, root, root)
%{_libdir}/girepository-1.0/GXPS-0.1.typelib
%files tools
%defattr(-, root, root)
%{_bindir}/xpstojpeg
%{_bindir}/xpstopdf
%{_bindir}/xpstopng
%{_bindir}/xpstops
%{_bindir}/xpstosvg
%files devel
%defattr(-, root, root)
%{_includedir}/libgxps/
%{_libdir}/libgxps.so
%{_libdir}/pkgconfig/libgxps.pc
%{_datadir}/gir-1.0/GXPS-0.1.gir
%doc %{_datadir}/gtk-doc/html/libgxps/
%changelog