File mingw32-gtkmathview.spec of Package mingw32-gtkmathview
#
# spec file for package mingw32-gtkmathview
#
# Copyright (c) 2014 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: mingw32-gtkmathview
Version: 0.8.0
Release: 0
Summary: A MathML renderer
License: LGPL-3.0-only
Group: Development/Libraries
Url: http://helm.cs.unibo.it/mml-widget/
Source0: http://helm.cs.unibo.it/mml-widget/sources/gtkmathview-%{version}.tar.gz
Source1000: %{name}-%{version}-rpmlintrc
Patch0: gtkmathview-0.8.0-msvc.patch
Patch1: gtkmathview-0.8.0-fridrich.patch
Patch2: gtkmathview-0.8.0-gcc47.patch
Patch3: gtkmathview-0.8.0-gcc6.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: libxslt-tools
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-libxml2-devel
BuildRequires: mingw32-popt-devel
BuildRequires: mingw32-t1lib-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
GtkMathView is a MathML renderer.
%package devel
Summary: A MathML renderer
Group: Development/Libraries
%description devel
GtkMathView is a MathML renderer.
%package -n mingw32-libgtkmathview
Summary: A MathML renderer
Group: Development/Libraries
%description -n mingw32-libgtkmathview
GtkMathView is a MathML renderer.
%_mingw32_debug_package
%prep
%setup -q -n gtkmathview-%{version}
%patch -P 0 -p1 -b .msvc
%patch -P 1 -p1 -b .fridrich
%patch -P 2 -p1 -b .gcc47
%patch -P 3 -p1 -b .gcc6
chmod +x autogen.sh
%build
./autogen.sh
echo "lt_cv_deplibs_check_method=pass_all" >>%{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH" \
MINGW32_CFLAGS="%{_mingw32_cflags} -DBR_PTHREADS=0" \
%{_mingw32_configure} \
--disable-static --enable-shared \
--enable-boxml --enable-libxml2 --enable-libxml2-reader \
--enable-tfm --enable-svg --with-t1lib --enable-pipe \
--enable-binreloc --disable-binreloc-threads \
--disable-gmetadom --disable-debug --disable-custom-reader \
--disable-gtk --without-x --disable-ps
make -j4
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}%{_mingw32_sysconfdir}/gtkmathview/gtkmathview.conf.xml.in
rm -f %{buildroot}%{_mingw32_mandir}/man1/mathmlviewer.1*
%files
%defattr(-,root,root)
%{_mingw32_bindir}/mathmlsvg.exe
%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libmathview.dll.a
%{_mingw32_libdir}/libmathview_frontend_libxml2.dll.a
%{_mingw32_libdir}/libmathview_frontend_libxml2_reader.dll.a
%{_mingw32_libdir}/libmathview_backend_svg.dll.a
%{_mingw32_includedir}/gtkmathview
%{_mingw32_libdir}/pkgconfig/mathview-backend-svg.pc
%{_mingw32_libdir}/pkgconfig/mathview-core.pc
%{_mingw32_libdir}/pkgconfig/mathview-frontend-libxml2-reader.pc
%{_mingw32_libdir}/pkgconfig/mathview-frontend-libxml2.pc
%files -n mingw32-libgtkmathview
%defattr(-,root,root)
%{_mingw32_bindir}/libmathview-0.dll
%{_mingw32_bindir}/libmathview_backend_svg-0.dll
%{_mingw32_bindir}/libmathview_frontend_libxml2-0.dll
%{_mingw32_bindir}/libmathview_frontend_libxml2_reader-0.dll
%{_mingw32_sysconfdir}/gtkmathview/gtkmathview.conf.xml
%{_mingw32_datadir}/gtkmathview/*.xml
%{_mingw32_datadir}/gtkmathview/*.dtd
%changelog