diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:30:32 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 06:30:32 +0000 |
commit | 977f2f81f2d7ca9d0d70fbe3ec9b9b2e33fc0807 (patch) | |
tree | 0294d9d42fa0f06ca9ca17417d6714c0da8ff8f4 | |
parent | 3556c17f1e09ac6de174ab53516487b9ad4b0d6a (diff) |
automatic import of python-based-latex
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-based-latex.spec | 147 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 149 insertions, 0 deletions
@@ -0,0 +1 @@ +/based_latex-0.0.61.tar.gz diff --git a/python-based-latex.spec b/python-based-latex.spec new file mode 100644 index 0000000..59f56d9 --- /dev/null +++ b/python-based-latex.spec @@ -0,0 +1,147 @@ +%global _empty_manifest_terminate_build 0 +Name: python-based-latex +Version: 0.0.61 +Release: 1 +Summary: Generates properly baselined images and HTML code from LaTeX formulas. +License: MIT License +URL: https://github.com/wircho/based_latex +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/55/cc/d0af0ddeadac7554f814dfeaeb194c8f89d7667dae36f94820908aa3f9fe/based_latex-0.0.61.tar.gz +BuildArch: noarch + + +%description +# based_latex + +Generates SVG image code from LaTeX formulas. + +## Installation + +``` +pip install based_latex +``` + +## Requirements + +This package requires a [LaTeX distribution](https://www.latex-project.org/), as well as [Ghostscript](https://www.ghostscript.com/) and [Inkscape](https://inkscape.org/). + +## Usage + +Use the function `based_latex.get_latex_svg_data(expression)` to get a dictionary of the form + +``` +{ + dimensions: # Some dimension parameters (useful for HTML embedding) + svg: # The SVG code. +} +``` + + + +%package -n python3-based-latex +Summary: Generates properly baselined images and HTML code from LaTeX formulas. +Provides: python-based-latex +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-based-latex +# based_latex + +Generates SVG image code from LaTeX formulas. + +## Installation + +``` +pip install based_latex +``` + +## Requirements + +This package requires a [LaTeX distribution](https://www.latex-project.org/), as well as [Ghostscript](https://www.ghostscript.com/) and [Inkscape](https://inkscape.org/). + +## Usage + +Use the function `based_latex.get_latex_svg_data(expression)` to get a dictionary of the form + +``` +{ + dimensions: # Some dimension parameters (useful for HTML embedding) + svg: # The SVG code. +} +``` + + + +%package help +Summary: Development documents and examples for based-latex +Provides: python3-based-latex-doc +%description help +# based_latex + +Generates SVG image code from LaTeX formulas. + +## Installation + +``` +pip install based_latex +``` + +## Requirements + +This package requires a [LaTeX distribution](https://www.latex-project.org/), as well as [Ghostscript](https://www.ghostscript.com/) and [Inkscape](https://inkscape.org/). + +## Usage + +Use the function `based_latex.get_latex_svg_data(expression)` to get a dictionary of the form + +``` +{ + dimensions: # Some dimension parameters (useful for HTML embedding) + svg: # The SVG code. +} +``` + + + +%prep +%autosetup -n based-latex-0.0.61 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-based-latex -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.61-1 +- Package Spec generated @@ -0,0 +1 @@ +608c308b59963a0d175670545dc87f8e based_latex-0.0.61.tar.gz |