summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 03:03:15 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 03:03:15 +0000
commit81337b7659e93937a8d929f8eb2c9ca62c115efd (patch)
tree04b7042180c37981c23c799a3e52cd70462c15dc
parent69546b29a393139b3331f76a3d2b2d37f840bfdf (diff)
automatic import of python-pyraklib
-rw-r--r--.gitignore1
-rw-r--r--python-pyraklib.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a4a4921 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/PyRakLib-1.0.15b1.zip
diff --git a/python-pyraklib.spec b/python-pyraklib.spec
new file mode 100644
index 0000000..83df9ed
--- /dev/null
+++ b/python-pyraklib.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-PyRakLib
+Version: 1.0.15b1
+Release: 1
+Summary: A port of the PHP RakLib library to Python.
+License: GPL V3
+URL: https://github.com/jython234/PyRakLib
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b4/02/88a730234150527123651447785a5c94009829abbfb0188dd8dc039b8e46/PyRakLib-1.0.15b1.zip
+BuildArch: noarch
+
+
+%description
+PyRakLib is a networking library that follows the RakNet protocol for MCPE. It is ported from the PHP library: RakLib.
+You can find the original library here: https://github.com/PocketMine/RakLib
+
+%package -n python3-PyRakLib
+Summary: A port of the PHP RakLib library to Python.
+Provides: python-PyRakLib
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-PyRakLib
+PyRakLib is a networking library that follows the RakNet protocol for MCPE. It is ported from the PHP library: RakLib.
+You can find the original library here: https://github.com/PocketMine/RakLib
+
+%package help
+Summary: Development documents and examples for PyRakLib
+Provides: python3-PyRakLib-doc
+%description help
+PyRakLib is a networking library that follows the RakNet protocol for MCPE. It is ported from the PHP library: RakLib.
+You can find the original library here: https://github.com/PocketMine/RakLib
+
+%prep
+%autosetup -n PyRakLib-1.0.15b1
+
+%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-PyRakLib -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.15b1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0f6fceb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7bd49599b5a2e2b9b381b814309d2b72 PyRakLib-1.0.15b1.zip