diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 14:15:08 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 14:15:08 +0000 |
commit | 71e8c68e888f9a185049073a0637eab59534ba36 (patch) | |
tree | 4ed4e03ea7c684265c3e7220f690783d5402ecc8 | |
parent | 9bd428640a71e7e57074eb37439bf09d4c3367a9 (diff) |
automatic import of python-vertica-python
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-vertica-python.spec | 83 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 85 insertions, 0 deletions
@@ -0,0 +1 @@ +/vertica-python-1.3.1.tar.gz diff --git a/python-vertica-python.spec b/python-vertica-python.spec new file mode 100644 index 0000000..f870b9e --- /dev/null +++ b/python-vertica-python.spec @@ -0,0 +1,83 @@ +%global _empty_manifest_terminate_build 0 +Name: python-vertica-python +Version: 1.3.1 +Release: 1 +Summary: Official native Python client for the Vertica database. +License: Apache License 2.0 +URL: https://github.com/vertica/vertica-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/60/1b/492fc9e9ae93a146e8ca401fd2d80dfbf6b42e152ca62b3f88eeebc4c7ba/vertica-python-1.3.1.tar.gz +BuildArch: noarch + +Requires: python3-dateutil +Requires: python3-six + +%description +vertica-python is the official Vertica database client for the Python programming language. Please check the [project homepage](https://github.com/vertica/vertica-python) for the details. + + + + +%package -n python3-vertica-python +Summary: Official native Python client for the Vertica database. +Provides: python-vertica-python +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-vertica-python +vertica-python is the official Vertica database client for the Python programming language. Please check the [project homepage](https://github.com/vertica/vertica-python) for the details. + + + + +%package help +Summary: Development documents and examples for vertica-python +Provides: python3-vertica-python-doc +%description help +vertica-python is the official Vertica database client for the Python programming language. Please check the [project homepage](https://github.com/vertica/vertica-python) for the details. + + + + +%prep +%autosetup -n vertica-python-1.3.1 + +%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-vertica-python -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.1-1 +- Package Spec generated @@ -0,0 +1 @@ +cd4d8f06912ec8b446d4c8ec1c69e4cf vertica-python-1.3.1.tar.gz |