File lasem.spec of Package lasem
#
# spec file for package
#
# 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: lasem
Version: 0.4.1
%define api 0.4
Release: 0
License: LGPL-2.1+
Summary: Mathml and SVG rendering library
Url: https://live.gnome.org/Lasem
Group: System/Libraries
Source: http://ftp.acc.umu.se/pub/GNOME/sources/lasem/0.4/lasem-0.4.1.tar.xz
# PATCH-FIX-UPSTREAM lasem-nonvoid.patch dimstar@opensuse.org -- Fix no-return-in-nonvoid brp error. Taken from git.
Patch0: lasem-nonvoid.patch
BuildRequires: bison
BuildRequires: gobject-introspection >= 0.6.7
BuildRequires: intltool >= 0.35.0
BuildRequires: pkgconfig(cairo) >= 1.2
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.16
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(pangocairo) >= 1.16.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Lasem is a library for rendering SVG and Mathml, implementing a DOM like API.
It's based on GObject and use Pango and Cairo for the rendering. Included in the package,
there is a simple application, lasemrender, which is able to convert a Mathml, a latex
math or a SVG file to either a PNG, PDF or SVG image.
%package -n liblasem-0_4-4
Summary: Mathml and SVG rendering library
Group: System/Libraries
Recommends: %{name}-lang
%description -n liblasem-0_4-4
Lasem is a library for rendering SVG and Mathml, implementing a DOM like API.
It's based on GObject and use Pango and Cairo for the rendering.
%package devel
Summary: Mathml and SVG rendering library -- Development files
Group: Development/Languages/C and C++
Requires: liblasem-0_4-4 = %{version}
%description devel
Lasem is a library for rendering SVG and Mathml, implementing a DOM like API.
It's based on GObject and use Pango and Cairo for the rendering.
%prep
%setup -q
%patch0 -p1
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
# Those files do not belong there... we package them using %%doc
rm -rf %{buildroot}%{_prefix}/doc
find %{buildroot} -type f -name '*.la' -delete -print
%find_lang %{name}-%{api}
%post -n liblasem-0_4-4 -p /sbin/ldconfig
%postun -n liblasem-0_4-4 -p /sbin/ldconfig
%files -f %{name}-%{api}.lang
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/%{name}-render-%{api}
%files -n liblasem-0_4-4
%defattr(-,root,root)
%doc COPYING
%{_libdir}/lib%{name}-%{api}.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-%{api}/
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_datadir}/gtk-doc/html/%{name}-%{api}/
%changelog