File texmath.spec of Package texmath
#
# spec file for package texmath
#
# Copyright (c) 2015 SUSE LINUX 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/
#
%global pkg_name texmath
Name: texmath
Version: 0.8.3
Release: 0
Summary: Conversion of LaTeX math formulas to MathML or OMML
License: GPL-2.0
Group: Productivity/Publishing/TeX/Utilities
Url: http://hackage.haskell.org/package/%{name}
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1: texmath-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: chrpath
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-pandoc-types-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-split-devel
BuildRequires: ghc-syb-devel
BuildRequires: ghc-xml-devel
# End cabal-rpm deps
%description
The texmathml library provides functions to convert LaTeX
math formulas to presentation MathML (which can be used
in HTML) or OMML (Office Math Markup Language, used in
Microsoft Office). It supports basic LaTeX and AMS
extensions, and it can parse and apply LaTeX macros.
%package -n ghc-%{name}
Summary: Haskell %{name} library
Group: System/Libraries
%description -n ghc-%{name}
The texmathml library provides functions to convert LaTeX
math formulas to presentation MathML (which can be used
in HTML) or OMML (Office Math Markup Language, used in
Microsoft Office). It supports basic LaTeX and AMS
extensions, and it can parse and apply LaTeX macros.
%package -n ghc-%{name}-devel
Summary: Haskell %{name} library development files
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
Requires: ghc-compiler
%description -n ghc-%{name}-devel
The texmathml library provides functions to convert LaTeX
math formulas to presentation MathML (which can be used
in HTML) or OMML (Office Math Markup Language, used in
Microsoft Office). It supports basic LaTeX and AMS
extensions, and it can parse and apply LaTeX macros.
This package provides the library development files.
%prep
%setup -q
%build
%define cabal_configure_options -f 'executable'
%ghc_lib_build
%install
%ghc_lib_install
%ghc_fix_dynamic_rpath %{name}
%post -n ghc-%{name}-devel
%ghc_pkg_recache
%postun -n ghc-%{name}-devel
%ghc_pkg_recache
%files
%defattr(-,root,root,-)
%doc LICENSE
%{_bindir}/%{name}
%files -n ghc-%{name} -f ghc-%{name}.files
%defattr(-,root,root,-)
%doc LICENSE
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%defattr(-,root,root,-)
%changelog