diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-30 17:11:30 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-30 17:11:30 +0000 |
commit | fc3778dbb515304a94812c6badb23e2ee6e88a70 (patch) | |
tree | 1916c5787c085aada43b68b16fb72ac11bbb787f | |
parent | 7ad1d9f28efa624f0f0f433aa375c38444b92d5f (diff) |
automatic import of python-pydrill
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pydrill.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/pydrill-0.3.4.tar.gz diff --git a/python-pydrill.spec b/python-pydrill.spec new file mode 100644 index 0000000..42829e9 --- /dev/null +++ b/python-pydrill.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pydrill +Version: 0.3.4 +Release: 1 +Summary: Python Driver for Apache Drill. +License: MIT +URL: https://github.com/PythonicNinja/pydrill +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/23/8e/b8f3998547e008dc8dbdc6764235f1f6e60d2813a3a1c426b3af447d2e81/pydrill-0.3.4.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-pydrill +Summary: Python Driver for Apache Drill. +Provides: python-pydrill +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pydrill + + +%package help +Summary: Development documents and examples for pydrill +Provides: python3-pydrill-doc +%description help + + +%prep +%autosetup -n pydrill-0.3.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-pydrill -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.4-1 +- Package Spec generated @@ -0,0 +1 @@ +62a045f7a8bb57b9551bb3d8cde6d424 pydrill-0.3.4.tar.gz |