diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:38:58 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 09:38:58 +0000 |
commit | f8d031844c585a6c40d04937da66a9609d2269c1 (patch) | |
tree | e70bd4c48af8c68d0c72c5e807e92425260f9c5d | |
parent | 8a0a86458806d2a9131b173cc21a3abc84bf5459 (diff) |
automatic import of python-tarantoolopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-tarantool.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/tarantool-1.0.0.tar.gz diff --git a/python-tarantool.spec b/python-tarantool.spec new file mode 100644 index 0000000..771b1d0 --- /dev/null +++ b/python-tarantool.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-tarantool +Version: 1.0.0 +Release: 1 +Summary: Python client library for Tarantool +License: BSD +URL: https://github.com/tarantool/tarantool-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/57/18/12c7426dd3c36be1d311f3c361e70f7090c9417bcb2434fd148d3dacb630/tarantool-1.0.0.tar.gz +BuildArch: noarch + +Requires: python3-msgpack +Requires: python3-pytz +Requires: python3-dataclasses + +%description +This package is a pure-python client library for `Tarantool`_. +`Documentation`_ | `Downloads`_ | `PyPI`_ | `GitHub`_ | `Issue tracker`_ + +%package -n python3-tarantool +Summary: Python client library for Tarantool +Provides: python-tarantool +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-tarantool +This package is a pure-python client library for `Tarantool`_. +`Documentation`_ | `Downloads`_ | `PyPI`_ | `GitHub`_ | `Issue tracker`_ + +%package help +Summary: Development documents and examples for tarantool +Provides: python3-tarantool-doc +%description help +This package is a pure-python client library for `Tarantool`_. +`Documentation`_ | `Downloads`_ | `PyPI`_ | `GitHub`_ | `Issue tracker`_ + +%prep +%autosetup -n tarantool-1.0.0 + +%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-tarantool -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +04d87a0c98c88ca246470ae4bee00ce8 tarantool-1.0.0.tar.gz |