summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 09:27:44 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 09:27:44 +0000
commitbf10fc37b70cf9397f66f2cf43adb7917a1de867 (patch)
tree536cc470556b46a9026db198ad86c73440e16c79
parent768e8ba095eba890be65f0a8fdd4a253c2ca3a1d (diff)
automatic import of python-cesloi
-rw-r--r--.gitignore1
-rw-r--r--python-cesloi.spec90
-rw-r--r--sources1
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4e7b89c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cesloi-0.6.11.tar.gz
diff --git a/python-cesloi.spec b/python-cesloi.spec
new file mode 100644
index 0000000..5029477
--- /dev/null
+++ b/python-cesloi.spec
@@ -0,0 +1,90 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cesloi
+Version: 0.6.11
+Release: 1
+Summary: An simple Python SDK base on mirai-api-http v2
+License: AGPL 3.0
+URL: https://github.com/RF-Tar-Railt/Cesloi
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/59/0b/934b4047aa5772e788c545b57de2eb5f09d2e7a7cbf059edb2e41f73f316/cesloi-0.6.11.tar.gz
+BuildArch: noarch
+
+
+%description
+|Licence| |PyPI| |PyPI - Python Version|
+一个简易(?),基于
+```mirai-api-http v2`` <https://github.com/project-mirai/mirai-api-http>`__
+的 Python SDK。
+**本项目适用于 mirai-api-http 2.0 以上版本**\ 。
+项目仍处于开发阶段,部分内容可能会有较大改变
+注: mirai-api-http 需要启用ws adapter和http adapter
+
+%package -n python3-cesloi
+Summary: An simple Python SDK base on mirai-api-http v2
+Provides: python-cesloi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cesloi
+|Licence| |PyPI| |PyPI - Python Version|
+一个简易(?),基于
+```mirai-api-http v2`` <https://github.com/project-mirai/mirai-api-http>`__
+的 Python SDK。
+**本项目适用于 mirai-api-http 2.0 以上版本**\ 。
+项目仍处于开发阶段,部分内容可能会有较大改变
+注: mirai-api-http 需要启用ws adapter和http adapter
+
+%package help
+Summary: Development documents and examples for cesloi
+Provides: python3-cesloi-doc
+%description help
+|Licence| |PyPI| |PyPI - Python Version|
+一个简易(?),基于
+```mirai-api-http v2`` <https://github.com/project-mirai/mirai-api-http>`__
+的 Python SDK。
+**本项目适用于 mirai-api-http 2.0 以上版本**\ 。
+项目仍处于开发阶段,部分内容可能会有较大改变
+注: mirai-api-http 需要启用ws adapter和http adapter
+
+%prep
+%autosetup -n cesloi-0.6.11
+
+%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-cesloi -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.11-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c0d9c3e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6bc99ea2e2b5a87c86fa37939f1961e5 cesloi-0.6.11.tar.gz