From 4524aa90f238d22b257ae076bb264fc0850e680f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 24 Oct 2025 09:28:10 -0700 Subject: [PATCH] add: latex2mathml (#6856) (#6863) --- anda/langs/python/latex2mathml/anda.hcl | 6 ++ .../python/latex2mathml/latex2mathml.spec | 55 +++++++++++++++++++ anda/langs/python/latex2mathml/update.rhai | 1 + 3 files changed, 62 insertions(+) create mode 100644 anda/langs/python/latex2mathml/anda.hcl create mode 100644 anda/langs/python/latex2mathml/latex2mathml.spec create mode 100644 anda/langs/python/latex2mathml/update.rhai diff --git a/anda/langs/python/latex2mathml/anda.hcl b/anda/langs/python/latex2mathml/anda.hcl new file mode 100644 index 0000000000..32df684396 --- /dev/null +++ b/anda/langs/python/latex2mathml/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "latex2mathml.spec" + } +} diff --git a/anda/langs/python/latex2mathml/latex2mathml.spec b/anda/langs/python/latex2mathml/latex2mathml.spec new file mode 100644 index 0000000000..2eecbb3805 --- /dev/null +++ b/anda/langs/python/latex2mathml/latex2mathml.spec @@ -0,0 +1,55 @@ +%global pypi_name latex2mathml +%global _desc Pure Python library for LaTeX to MathML conversion. + +Name: python-%{pypi_name} +Version: 3.78.1 +Release: 1%?dist +Summary: Pure Python library for LaTeX to MathML conversion +License: MIT +URL: https://github.com/roniemartinez/latex2mathml +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-poetry-core +BuildRequires: python3-installer +BuildRequires: python3-build + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: latex2mathml +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n latex2mathml-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files latex2mathml + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE +%{_bindir}/l2m +%{_bindir}/latex2mathml +%ghost %python3_sitelib/__pycache__/*.cpython-*.pyc +%ghost %python3_sitelib/%{name}/subcommands/__pycache__/*.cpython-*.pyc +%python3_sitelib/latex2mathml-%version.dist-info/* + +%changelog +* Fri Oct 24 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/latex2mathml/update.rhai b/anda/langs/python/latex2mathml/update.rhai new file mode 100644 index 0000000000..914d701d94 --- /dev/null +++ b/anda/langs/python/latex2mathml/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("latex2mathml"));