File gtkmathview.spec of Package gtkmathview

#
# spec file for package gtkmathview (Version 0.8.0)
#
# Copyright (c) 2009 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/
#


Url:            http://helm.cs.unibo.it/mml-widget/

Name:           gtkmathview
Version:        0.8.0
Release:        3
License:        GPL v2 or later; LGPL v3 or later
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++ gtk2-devel >= 2.2.1
BuildRequires:  glib2-devel >= 2.2.1
BuildRequires:  libxml2-devel >= 2.6.7 libxslt popt-devel t1lib-devel
BuildRequires:  gmetadom-devel >= 0.1.8
Source0:        %{name}-%{version}.tar.bz2
Patch:          gtkmathview-gcc43-fixes.patch
Patch1:         gtkmathview-other-fixes.patch
Group:          System/Libraries
Summary:        A rendering engine for MathML documents

%description
GtkMathView is a C++ rendering engine for MathML documents. It provides
an interactive view that can be used for browsing and editing MathML
markup.



Authors:
--------
    Luca Padovani

%package -n libgtkmathview
License:        GPL v2 or later; LGPL v3 or later
Group:          System/Libraries
Summary:        A rendering engine for MathML documents

%description -n libgtkmathview
GtkMathView is a C++ rendering engine for MathML documents. It provides
an interactive view that can be used for browsing and editing MathML
markup.



Authors:
--------
    Luca Padovani

%package devel
License:        GPL v2 or later; LGPL v3 or later
Summary:        A rendering engine for MathML documents
Requires:       libgtkmathview = %{version}
Requires:       t1lib-devel glib2-devel >= 2.2.1
Group:          System/Libraries

%description devel
GtkMathView is a C++ rendering engine for MathML documents. It provides
an interactive view that can be used for browsing and editing MathML
markup.



Authors:
--------
    Luca Padovani

%prep
%setup -q
%patch -p1
%patch1 -p1

%build
autoreconf -si
%configure --disable-static
make

%install
%makeinstall
find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;

%post -n libgtkmathview -p /sbin/ldconfig

%postun -n libgtkmathview -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*

%files -n libgtkmathview
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%{_datadir}/%{name}
%{_sysconfdir}/%{name}

%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}
%{_libdir}/*.so

%changelog
* Fri May 22 2009 vuntz@novell.com
- Update gtkmathview-gcc43-fixes.patch to also add an include for
  gcc 4.4.
- Use makeinstall.
* Tue Jan 13 2009 hfiguiere@suse.de
- Initial submission.
openSUSE Build Service is sponsored by