summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 09:29:24 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 09:29:24 +0000
commit113149ebeb92804ebcdfb109b7dd687e2e141662 (patch)
treee4bfa44174ce3338ad39f76556e90f80343948e1
parentace31b280981fb968111f557c378361d257d2817 (diff)
automatic import of python-burnysc2
-rw-r--r--.gitignore1
-rw-r--r--python-burnysc2.spec80
-rw-r--r--sources1
3 files changed, 82 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ca6fe1b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/burnysc2-6.2.0.tar.gz
diff --git a/python-burnysc2.spec b/python-burnysc2.spec
new file mode 100644
index 0000000..18e653c
--- /dev/null
+++ b/python-burnysc2.spec
@@ -0,0 +1,80 @@
+%global _empty_manifest_terminate_build 0
+Name: python-burnysc2
+Version: 6.2.0
+Release: 1
+Summary: A StarCraft II API Client for Python 3
+License: MIT
+URL: https://github.com/Burnysc2/python-sc2
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fa/f0/ce2b8cd02d27d82e50eaada9c46debf0c5c3f4c682dada3f8c94faf8de0c/burnysc2-6.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-aiohttp
+Requires: python3-loguru
+Requires: python3-mpyq
+Requires: python3-numpy
+Requires: python3-portpicker
+Requires: python3-s2clientprotocol
+Requires: python3-scipy
+Requires: python3-protobuf
+
+%description
+
+
+%package -n python3-burnysc2
+Summary: A StarCraft II API Client for Python 3
+Provides: python-burnysc2
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-burnysc2
+
+
+%package help
+Summary: Development documents and examples for burnysc2
+Provides: python3-burnysc2-doc
+%description help
+
+
+%prep
+%autosetup -n burnysc2-6.2.0
+
+%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-burnysc2 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 6.2.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6503737
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a5ef0413f5f266010db9c71eb079befc burnysc2-6.2.0.tar.gz