diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:51:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:51:06 +0000 |
commit | acb3e028caec6296f38501ea51a294ce64e871e6 (patch) | |
tree | 2972fcb71265e643ff224ec099f7c82f143bd83d | |
parent | 2258bc4a7e40949c1579d3311ae947ba4dfe9dc6 (diff) |
automatic import of python-docalopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-docal.spec | 102 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 104 insertions, 0 deletions
@@ -0,0 +1 @@ +/docal-3.0.4.tar.gz diff --git a/python-docal.spec b/python-docal.spec new file mode 100644 index 0000000..050cf9d --- /dev/null +++ b/python-docal.spec @@ -0,0 +1,102 @@ +%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 +[](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 +[](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 +[](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 <Python_Bot@openeuler.org> - 3.0.4-1 +- Package Spec generated @@ -0,0 +1 @@ +e636e54e8863e9220d8ccfa5fc19d39f docal-3.0.4.tar.gz |