summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 05:45:40 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 05:45:40 +0000
commit7d2a35b3d43b9a59485efaf970695d353a861236 (patch)
tree3c27a1681ffc520a994c24928158ef52554e9aff
parent5a6ee9097687bd32b6f12c2252a0ff265e85eed4 (diff)
automatic import of python-ksql
-rw-r--r--.gitignore1
-rw-r--r--python-ksql.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1ad7d31 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ksql-0.10.2.tar.gz
diff --git a/python-ksql.spec b/python-ksql.spec
new file mode 100644
index 0000000..45ea0a4
--- /dev/null
+++ b/python-ksql.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ksql
+Version: 0.10.2
+Release: 1
+Summary: A Python wrapper for the KSQL REST API
+License: MIT License
+URL: https://github.com/bryanyang0528/ksql-python
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/00/24/0bbdccd64fe13904422e6eed2d9e6e9e82ceeef85dec54763a175e4588af/ksql-0.10.2.tar.gz
+BuildArch: noarch
+
+
+%description
+A python wrapper for the KSQL REST API. Easily interact with the KSQL REST API using this library.
+Supported KSQLDB version: 0.10.1+
+Supported Python version: 3.5+
+
+%package -n python3-ksql
+Summary: A Python wrapper for the KSQL REST API
+Provides: python-ksql
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ksql
+A python wrapper for the KSQL REST API. Easily interact with the KSQL REST API using this library.
+Supported KSQLDB version: 0.10.1+
+Supported Python version: 3.5+
+
+%package help
+Summary: Development documents and examples for ksql
+Provides: python3-ksql-doc
+%description help
+A python wrapper for the KSQL REST API. Easily interact with the KSQL REST API using this library.
+Supported KSQLDB version: 0.10.1+
+Supported Python version: 3.5+
+
+%prep
+%autosetup -n ksql-0.10.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-ksql -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8a33dea
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f95296b840b37a13f7e1dfa7e44efe1f ksql-0.10.2.tar.gz