summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 03:47:10 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 03:47:10 +0000
commit54b27fd30303287e58af25b242478509e6a2c527 (patch)
tree6aaecd83bb8bb097c0809c33327344e743c1ddb7
parent050adf2813aa7ec2a38c9b3fb10db5e344e06e8e (diff)
automatic import of python-ikabotopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-ikabot.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d1a98e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ikabot-6.5.34.tar.gz
diff --git a/python-ikabot.spec b/python-ikabot.spec
new file mode 100644
index 0000000..a34667d
--- /dev/null
+++ b/python-ikabot.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ikabot
+Version: 6.5.34
+Release: 1
+Summary: A bot for ikariam
+License: MIT
+URL: https://github.com/physics-sp/ikabot
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/b2/6a91a9a610f5829c2771c15a58408fd65f2eaa50cb13196dec5ad7140fb1/ikabot-6.5.34.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-requests[socks]
+Requires: python3-cryptography
+Requires: python3-psutil
+
+%description
+
+
+%package -n python3-ikabot
+Summary: A bot for ikariam
+Provides: python-ikabot
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ikabot
+
+
+%package help
+Summary: Development documents and examples for ikabot
+Provides: python3-ikabot-doc
+%description help
+
+
+%prep
+%autosetup -n ikabot-6.5.34
+
+%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-ikabot -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 6.5.34-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..9a5fec0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d571fb66e10166bcf64742a01b15ed64 ikabot-6.5.34.tar.gz