diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:24:10 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 09:24:10 +0000 |
commit | 2d37354ef0d987f1d8173a66eaa25fdcc703c023 (patch) | |
tree | 951652299a539097d861971320eefb9e9ea3b184 | |
parent | d8cc3cf7e0379ee4df56235f2a581f5e97dff29c (diff) |
automatic import of python-cahoots
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-cahoots.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/Cahoots-0.5.2.zip diff --git a/python-cahoots.spec b/python-cahoots.spec new file mode 100644 index 0000000..6476007 --- /dev/null +++ b/python-cahoots.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Cahoots +Version: 0.5.2 +Release: 1 +Summary: A Text Comprehension Engine in Python. +License: MIT +URL: https://github.com/SerenitySoftwareLLC/cahoots +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6b/5c/a82ebed2368b30a0852a222ccd9400955646de9ae79d1bdb920c3aad5b13/Cahoots-0.5.2.zip +BuildArch: noarch + + +%description + + +%package -n python3-Cahoots +Summary: A Text Comprehension Engine in Python. +Provides: python-Cahoots +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Cahoots + + +%package help +Summary: Development documents and examples for Cahoots +Provides: python3-Cahoots-doc +%description help + + +%prep +%autosetup -n Cahoots-0.5.2 + +%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-Cahoots -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.2-1 +- Package Spec generated @@ -0,0 +1 @@ +a4c563c2853b0cf779fb9003ced910dc Cahoots-0.5.2.zip |