2012-06-07 10:00:43 +00:00
|
|
|
#
|
2022-02-10 14:36:54 +00:00
|
|
|
# spec file for package texmath
|
2012-06-07 10:00:43 +00:00
|
|
|
#
|
2025-01-17 22:01:45 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
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.
|
|
|
|
|
2018-10-18 09:53:32 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-20 21:50:36 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%global pkg_name texmath
|
2023-03-30 08:26:54 +00:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2016-06-28 16:25:17 +00:00
|
|
|
%bcond_with tests
|
|
|
|
Name: %{pkg_name}
|
2025-05-29 21:01:42 +00:00
|
|
|
Version: 0.12.10.3
|
2013-08-03 08:36:43 +00:00
|
|
|
Release: 0
|
2022-02-10 14:36:54 +00:00
|
|
|
Summary: Conversion between math formats
|
2018-05-03 01:15:45 +00:00
|
|
|
License: GPL-2.0-or-later
|
2017-08-15 14:10:07 +00:00
|
|
|
URL: https://hackage.haskell.org/package/%{name}
|
2016-06-28 16:25:17 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base-prof
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-containers-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-containers-prof
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRequires: ghc-mtl-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-mtl-prof
|
2013-11-01 17:53:08 +00:00
|
|
|
BuildRequires: ghc-pandoc-types-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-pandoc-types-prof
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-parsec-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-parsec-prof
|
2022-06-29 12:18:33 +00:00
|
|
|
BuildRequires: ghc-pretty-show-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-pretty-show-prof
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2021-05-30 18:58:20 +00:00
|
|
|
BuildRequires: ghc-split-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-split-prof
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-syb-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-syb-prof
|
2018-05-15 18:42:31 +00:00
|
|
|
BuildRequires: ghc-text-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-text-prof
|
2023-06-21 16:50:40 +00:00
|
|
|
BuildRequires: ghc-typst-symbols-devel
|
|
|
|
BuildRequires: ghc-typst-symbols-prof
|
2012-03-16 18:13:07 +00:00
|
|
|
BuildRequires: ghc-xml-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-xml-prof
|
2020-12-19 17:49:44 +00:00
|
|
|
ExcludeArch: %{ix86}
|
2016-06-28 16:25:17 +00:00
|
|
|
%if %{with tests}
|
2024-12-10 11:26:01 +00:00
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-bytestring-prof
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRequires: ghc-directory-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-directory-prof
|
2016-06-28 16:25:17 +00:00
|
|
|
BuildRequires: ghc-filepath-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-filepath-prof
|
2024-12-10 11:26:01 +00:00
|
|
|
BuildRequires: ghc-pretty-show-devel
|
|
|
|
BuildRequires: ghc-pretty-show-prof
|
2022-06-29 12:18:33 +00:00
|
|
|
BuildRequires: ghc-tagged-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-tagged-prof
|
2022-06-29 12:18:33 +00:00
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-golden-devel
|
2023-03-30 08:26:54 +00:00
|
|
|
BuildRequires: ghc-tasty-golden-prof
|
|
|
|
BuildRequires: ghc-tasty-prof
|
2016-06-28 16:25:17 +00:00
|
|
|
%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).
|
2023-03-30 08:26:54 +00:00
|
|
|
Support is also included for converting math formats to Gnu eqn, typst, and
|
|
|
|
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
|
|
|
|
<https://johnmacfarlane.net/texmath here> for a live demo of bidirectional
|
|
|
|
conversion between LaTeX and MathML.)
|
2016-06-28 16:25:17 +00:00
|
|
|
|
|
|
|
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
|
2022-06-29 12:18:33 +00:00
|
|
|
the MathML operator dictionary is included.
|
2016-06-28 16:25:17 +00:00
|
|
|
|
2022-06-29 12:18:33 +00:00
|
|
|
Use the 'executable' flag to install a standalone executable, 'texmath', that
|
|
|
|
converts formulas from one format to another. (Use the '--help' flag for a
|
|
|
|
description of all functionality).
|
|
|
|
|
|
|
|
Use the 'server' flag to install a web server, 'texmath-server', that exposes a
|
|
|
|
JSON API allowing conversion of individual formulas and batches of formulas.
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%package -n ghc-%{name}
|
|
|
|
Summary: Haskell %{name} library
|
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
|
2016-06-28 16:25:17 +00:00
|
|
|
Requires: ghc-%{name} = %{version}-%{release}
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
2022-02-10 14:36:54 +00:00
|
|
|
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
|
|
|
|
2023-03-30 08:26:54 +00:00
|
|
|
%package -n ghc-%{pkg_name}-doc
|
|
|
|
Summary: Haskell %{pkg_name} library documentation
|
|
|
|
Requires: ghc-filesystem
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-doc
|
|
|
|
This package provides the Haskell %{pkg_name} library documentation.
|
|
|
|
|
|
|
|
%package -n ghc-%{pkg_name}-prof
|
|
|
|
Summary: Haskell %{pkg_name} profiling library
|
|
|
|
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
|
|
|
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-prof
|
|
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%prep
|
2020-09-04 15:12:06 +00:00
|
|
|
%autosetup
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%build
|
2024-12-10 11:26:01 +00:00
|
|
|
%define cabal_configure_options -f+executable
|
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
|
|
|
|
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
|
2018-04-26 07:59:02 +00:00
|
|
|
%license LICENSE
|
2025-03-25 09:35:07 +00:00
|
|
|
%doc README.md changelog.md
|
2024-12-10 11:26:01 +00:00
|
|
|
%{_bindir}/texmath
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2013-08-03 08:36:43 +00:00
|
|
|
%files -n ghc-%{name} -f ghc-%{name}.files
|
2018-04-26 07:59:02 +00:00
|
|
|
%license 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
|
2025-03-25 09:35:07 +00:00
|
|
|
%doc README.md changelog.md
|
2012-01-20 21:50:36 +00:00
|
|
|
|
2023-03-30 08:26:54 +00:00
|
|
|
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
|
|
|
|
2012-01-20 21:50:36 +00:00
|
|
|
%changelog
|