%define name gtkmathview %define version 0.4.3 %define release 3mdk %define major 0 %define libname %mklibname %name %major Summary: GtkMathView is a C++ rendering engine for MathML documents. Name: %name Version: %version Release: %release License: GPL Group: Networking/WWW Url: http://www.cs.unibo.it/helm/mml-widget/ Source: http://www.cs.unibo.it/helm/mml-widget/sources/%{name}-%{version}.tar.bz2 Source1: gtkmathview.html.tar.bz2 Patch: gtkmathview-0.4.3-gcc3.4.patch.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gtk+-devel >= 1.2.0, t1lib-devel >= 1.3 gmetadom-devel >= 0.1.8 autoconf2.5 BuildRequires: libxml2-devel >= 2.2.0 Requires: gtk+ >= 1.2.0 t1lib >= 1.3 %libname = %version-%release Requires: libxml2 >= 2.5.0 Requires: %{_lib}gmetadom_gdome_cpp_smart0 >= 0.1.8 %description GtkMathView is a GTK Widget for rendering MathML documents. %package -n %libname Summary: Libraries for gtkmathview Group: System/Libraries %description -n %libname GtkMathView is a GTK Widget for rendering MathML documents. %package -n %libname-devel Summary: Libraries and include files for gtkmathview Group: Development/C++ Requires: %libname = %version-%release glib-devel >= 1.2.10 libxml2-devel >= 2.4.26 Provides: lib%name-devel = %version-%release %description -n %libname-devel GtkMathView is a GTK Widget for rendering MathML documents. %prep %setup -q %patch -p1 %build %configure2_5x --enable-helm --with-t1lib=no --with-libxml2 %make ##Add updated html reference manual## mkdir DATA.TMP cd DATA.TMP tar xjf %{SOURCE1} cd ../../.. %install rm -rf %buildroot %makeinstall_std mkdir -p %buildroot/%_docdir/%name mv DATA.TMP/%name.html %buildroot/%_docdir/%name %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %doc AUTHORS BUGS COPYING HISTORY INSTALL LICENSE NEWS README TODO %_bindir/mathml2ps %_bindir/mathmlviewer %_datadir/%name %doc %_docdir/%name/ %_libdir/pkgconfig/gtkmathview.pc %_mandir/man1/* %files -n %libname %defattr(-, root, root) %_libdir/lib*.so.* %files -n %libname-devel %defattr(-,root,root) %_bindir/gtkmathview-config %{_libdir}/lib*.so %{_libdir}/lib*.*a %{_includedir}/* %changelog * Tue Jan 10 2005 Charles A Edwards <eslrahc@bellsouth.net> 0.4.3-3mdk - rebuild without t1lib (build fails if latest is used) * Fri Jun 11 2004 Götz Waschk <waschk@linux-mandrake.com> 0.4.3-2mdk - spec cleanup - fix deps - patch for new g++ * Tue Jul 29 2003 Charles A Edwards <eslrahc@bellsouth.net> 0.4.3-1mdk - 0.4.3 - drop gcc Patch...merged upstream - build --with libxml2 - Requires/BuildRequires - rm Info Post/Postrun (info dropped in 0.4.2) * Tue Jul 8 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.2-2mdk - fix directory ownership * Tue Jun 10 2003 Charles A Edwards <eslrahc@bellsouth.net> 0.4.2-1mdk - release 0.4.2 - rm info, no longer created - add gtkmathview.pc - BuildRequires/Requires gmetadom-devel>= 0.1.8 * Mon Jun 9 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-2mdk - move the config script to the devel package * Sun May 4 2003 Götz Waschk <waschk@linux-mandrake.com> 0.4.1-1mdk - from Charles A Edwards <eslrahc@bellsouth.net>: - initial Mdk release