2012-06-07 10:00:43 +00:00
|
|
|
#
|
2013-08-03 08:36:43 +00:00
|
|
|
# spec file for package texmath
|
2012-06-07 10:00:43 +00:00
|
|
|
#
|
2013-08-03 08:36:43 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-01-20 21:50:36 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%global pkg_name texmath
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
Name: texmath
|
2014-01-10 15:09:19 +00:00
|
|
|
Version: 0.6.5.2
|
2013-08-03 08:36:43 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Conversion of LaTeX math formulas to MathML or OMML
|
2013-11-01 17:53:08 +00:00
|
|
|
License: GPL-1.0+
|
|
|
|
|
Group: Productivity/Publishing/TeX/Utilities
|
2013-08-03 08:36:43 +00:00
|
|
|
|
|
|
|
|
Url: http://hackage.haskell.org/package/%{name}
|
2012-01-20 21:50:36 +00:00
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2013-08-03 08:36:43 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
2012-01-20 21:50:36 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2013-08-03 08:36:43 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
# Begin cabal-rpm deps:
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-containers-devel
|
2013-11-01 17:53:08 +00:00
|
|
|
BuildRequires: ghc-pandoc-types-devel
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-parsec-devel
|
|
|
|
|
BuildRequires: ghc-syb-devel
|
|
|
|
|
BuildRequires: ghc-xml-devel
|
2013-08-03 08:36:43 +00:00
|
|
|
# End cabal-rpm deps
|
2012-02-29 12:54:43 +00:00
|
|
|
|
2014-01-10 15:09:19 +00:00
|
|
|
# Deps for cgi executable
|
|
|
|
|
# BuildRequires: ghc-cgi-devel
|
|
|
|
|
# BuildRequires: ghc-json-devel
|
|
|
|
|
# BuildRequires: ghc-utf8-string-devel
|
2013-11-01 17:53:08 +00:00
|
|
|
|
2012-01-20 21:50:36 +00:00
|
|
|
%description
|
2013-08-03 08:36:43 +00:00
|
|
|
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.
|
2012-01-20 21:50:36 +00:00
|
|
|
|
|
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%package -n ghc-%{name}
|
|
|
|
|
Summary: Haskell %{name} library
|
|
|
|
|
Group: System/Libraries
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%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.
|
2012-01-20 21:50:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%package -n ghc-%{name}-devel
|
|
|
|
|
Summary: Haskell %{name} library development files
|
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-11-01 17:53:08 +00:00
|
|
|
Requires: ghc-compiler
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%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.
|
2012-06-07 10:00:43 +00:00
|
|
|
|
2013-11-01 17:53:08 +00:00
|
|
|
This package provides the library development files.
|
|
|
|
|
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%build
|
2014-01-10 15:09:19 +00:00
|
|
|
%define cabal_configure_options -f 'test'
|
2013-08-03 08:36:43 +00:00
|
|
|
%ghc_lib_build
|
2012-06-07 10:00:43 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%install
|
|
|
|
|
%ghc_lib_install
|
2012-06-07 10:00:43 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%post -n ghc-%{name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%postun -n ghc-%{name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
2012-01-20 21:50:36 +00:00
|
|
|
|
|
|
|
|
%files
|
2013-11-01 17:53:08 +00:00
|
|
|
%defattr(-,root,root,-)
|
2012-06-07 10:00:43 +00:00
|
|
|
%doc LICENSE
|
2014-01-10 15:09:19 +00:00
|
|
|
#%%{_bindir}/texmath-cgi
|
2013-08-03 08:36:43 +00:00
|
|
|
%{_bindir}/%{name}
|
2012-01-20 21:50:36 +00:00
|
|
|
%{_datadir}/%{name}-%{version}
|
2013-08-03 08:36:43 +00:00
|
|
|
%exclude %{_datadir}/%{name}-%{version}/tests
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
2013-11-01 17:53:08 +00:00
|
|
|
%defattr(-,root,root,-)
|
2013-08-03 08:36:43 +00:00
|
|
|
%doc LICENSE
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
|
2013-11-01 17:53:08 +00:00
|
|
|
%defattr(-,root,root,-)
|
2012-01-20 21:50:36 +00:00
|
|
|
|
|
|
|
|
%changelog
|