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
|
|
|
#
|
2017-02-22 19:30:37 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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
|
2016-06-28 16:25:17 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
Name: %{pkg_name}
|
2017-02-22 19:30:37 +00:00
|
|
|
Version: 0.9.1
|
2013-08-03 08:36:43 +00:00
|
|
|
Release: 0
|
2016-06-28 16:25:17 +00:00
|
|
|
Summary: Conversion between formats used to represent mathematics
|
2014-03-27 10:58:25 +00:00
|
|
|
License: GPL-2.0
|
2016-07-16 21:58:41 +00:00
|
|
|
Group: Development/Languages/Other
|
2016-06-28 16:25:17 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{name}
|
|
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
2016-08-24 14:40:13 +00:00
|
|
|
BuildRequires: chrpath
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2016-08-24 14:40:13 +00:00
|
|
|
BuildRequires: ghc-aeson-devel
|
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-containers-devel
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRequires: ghc-mtl-devel
|
2016-08-24 14:40:13 +00:00
|
|
|
BuildRequires: ghc-network-uri-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
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2016-08-24 14:40:13 +00:00
|
|
|
BuildRequires: ghc-split-devel
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-syb-devel
|
2016-08-24 14:40:13 +00:00
|
|
|
BuildRequires: ghc-text-devel
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-xml-devel
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: ghc-directory-devel
|
|
|
|
|
BuildRequires: ghc-filepath-devel
|
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
|
BuildRequires: ghc-temporary-devel
|
|
|
|
|
BuildRequires: ghc-utf8-string-devel
|
|
|
|
|
%endif
|
2012-02-29 12:54:43 +00:00
|
|
|
|
2012-01-20 21:50:36 +00:00
|
|
|
%description
|
2016-06-28 16:25:17 +00:00
|
|
|
The texmath library provides functions to read and write TeX math, presentation
|
|
|
|
|
MathML, and OMML (Office Math Markup Language, used in Microsoft Office).
|
|
|
|
|
Support is also included for converting math formats to pandoc's native format
|
|
|
|
|
(allowing conversion, via pandoc, to a variety of different markup formats).
|
|
|
|
|
The TeX reader supports basic LaTeX and AMS extensions, and it can parse and
|
|
|
|
|
apply LaTeX macros. (See <http://johnmacfarlane.net/texmath here> for a live
|
|
|
|
|
demo of bidirectional conversion between LaTeX and MathML.)
|
|
|
|
|
|
|
|
|
|
The package also includes several utility modules which may be useful for
|
|
|
|
|
anyone looking to manipulate either TeX math or MathML. For example, a copy of
|
|
|
|
|
the MathML operator dictionary is included.
|
|
|
|
|
|
|
|
|
|
Use the 'executable' flag to install a standalone executable, 'texmath', that
|
|
|
|
|
by default reads a LaTeX formula from 'stdin' and writes MathML to 'stdout'.
|
|
|
|
|
With flags all the functionality exposed by 'Text.TeXMath' can be accessed
|
|
|
|
|
through this executable. (Use the '--help' flag for a description of all
|
|
|
|
|
functionality)
|
|
|
|
|
|
|
|
|
|
The 'texmath' executable can also be used as a CGI script, when renamed as
|
|
|
|
|
'texmath-cgi'. It will expect query parameters for 'from', 'to', 'input', and
|
|
|
|
|
optionally 'inline', and return a JSON object with either 'error' and a message
|
|
|
|
|
or 'success' and the converted result.
|
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}
|
2016-06-28 16:25:17 +00:00
|
|
|
This package provides the Haskell %{name} shared library.
|
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
|
2016-06-28 16:25:17 +00:00
|
|
|
Requires: ghc-%{name} = %{version}-%{release}
|
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%description -n ghc-%{name}-devel
|
2016-06-28 16:25:17 +00:00
|
|
|
This package provides the Haskell %{name} 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
|
2016-10-06 19:10:11 +00:00
|
|
|
%define cabal_configure_options -fexecutable
|
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
|
2017-02-22 19:30:37 +00:00
|
|
|
%ghc_fix_rpath %{pkg_name}-%{version}
|
2012-06-07 10:00:43 +00:00
|
|
|
|
2016-06-28 16:25:17 +00:00
|
|
|
%check
|
2016-08-24 14:40:13 +00:00
|
|
|
%cabal_test
|
2016-06-28 16:25:17 +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
|
2016-08-24 14:40:13 +00:00
|
|
|
%doc README.markdown changelog
|
2013-08-03 08:36:43 +00:00
|
|
|
%{_bindir}/%{name}
|
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,-)
|
2016-08-24 14:40:13 +00:00
|
|
|
%doc README.markdown changelog
|
2012-01-20 21:50:36 +00:00
|
|
|
|
|
|
|
|
%changelog
|