%global _empty_manifest_terminate_build 0 Name: python-docal Version: 3.0.4 Release: 1 Summary: Inject calculations into Word and LaTeX documents with ease! License: MIT license URL: https://github.com/K1DV5/docal Source0: https://mirrors.aliyun.com/pypi/web/packages/d2/9a/ccfd65072e80e5a4af58bd1208088e84fea8f2fbeb732f27ac9bc06f886f/docal-3.0.4.tar.gz BuildArch: noarch %description [![image](https://img.shields.io/pypi/v/docal.svg)](https://pypi.python.org/pypi/docal) Inject Python calculations into Word and LaTeX documents with ease! - Free software: MIT license docal is a tool that can be used to send calculations that are written in python to Word or LaTeX documents. It evaluates equations in a separate python script from the document and replaces hashtags in the document that indicate where the calculations should be with the results of the evaluation. It comes with a powerful python expression to LaTeX converter built-in, so it converts the calculations and their results to their appropriate LaTeX forms before sending them, which makes it ideal to make academic and scientific reports. %package -n python3-docal Summary: Inject calculations into Word and LaTeX documents with ease! Provides: python-docal BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-docal [![image](https://img.shields.io/pypi/v/docal.svg)](https://pypi.python.org/pypi/docal) Inject Python calculations into Word and LaTeX documents with ease! - Free software: MIT license docal is a tool that can be used to send calculations that are written in python to Word or LaTeX documents. It evaluates equations in a separate python script from the document and replaces hashtags in the document that indicate where the calculations should be with the results of the evaluation. It comes with a powerful python expression to LaTeX converter built-in, so it converts the calculations and their results to their appropriate LaTeX forms before sending them, which makes it ideal to make academic and scientific reports. %package help Summary: Development documents and examples for docal Provides: python3-docal-doc %description help [![image](https://img.shields.io/pypi/v/docal.svg)](https://pypi.python.org/pypi/docal) Inject Python calculations into Word and LaTeX documents with ease! - Free software: MIT license docal is a tool that can be used to send calculations that are written in python to Word or LaTeX documents. It evaluates equations in a separate python script from the document and replaces hashtags in the document that indicate where the calculations should be with the results of the evaluation. It comes with a powerful python expression to LaTeX converter built-in, so it converts the calculations and their results to their appropriate LaTeX forms before sending them, which makes it ideal to make academic and scientific reports. %prep %autosetup -n docal-3.0.4 %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-docal -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 3.0.4-1 - Package Spec generated