summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-cao-lang.spec161
-rw-r--r--sources1
3 files changed, 163 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..d235779 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cao-lang-0.1.93.tar.gz
diff --git a/python-cao-lang.spec b/python-cao-lang.spec
new file mode 100644
index 0000000..682b800
--- /dev/null
+++ b/python-cao-lang.spec
@@ -0,0 +1,161 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cao-lang
+Version: 0.1.93
+Release: 1
+Summary: The node based 'language' that governs the actors of the game Cao-Lo
+License: MIT License
+URL: https://github.com/caolo-game/cao-lang
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/91/58/40f22ba6269aa692e724e2b3f9bdbdc18b196b65446fd7d611767aea75a2/cao-lang-0.1.93.tar.gz
+
+
+%description
+# Cao-Lang
+
+![GitHub Workflow Status](https://img.shields.io/github/workflow/status/caolo-game/cao-lang/Cao-Lang%20tests)
+![MIT license](https://img.shields.io/github/license/caolo-game/cao-lang)
+![Crates.io version](https://img.shields.io/crates/v/cao-lang)
+![PyPI version](https://img.shields.io/pypi/v/cao-lang)
+![npm version](https://img.shields.io/npm/v/@caolo-game/cao-lang-wasm)
+
+The node based "language" that governs the actors in the game CaoLo
+
+[Core documentation](https://docs.rs/cao_lang/)
+
+## Project layout
+
+```
+ |+ cao-lang/ # core library
+ |+ c/ # C interface
+ |+ py/ # Python interface
+ |+ wasm/ # WASM interface
+ |+ xtask/ # Additional scripts via Cargo
+ | CHANGELOG.md # Changelog
+ | CMakeLists.txt # Root cmake file
+ | MANIFEST.in # Python build dependency
+ | pyproject.toml # Python build dependency
+ | README.md
+ | setup.py # Python build dependency
+ | tox.ini # Python testing dependency
+ | cliff.toml # git-cliff config
+```
+
+
+%package -n python3-cao-lang
+Summary: The node based 'language' that governs the actors of the game Cao-Lo
+Provides: python-cao-lang
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-cao-lang
+# Cao-Lang
+
+![GitHub Workflow Status](https://img.shields.io/github/workflow/status/caolo-game/cao-lang/Cao-Lang%20tests)
+![MIT license](https://img.shields.io/github/license/caolo-game/cao-lang)
+![Crates.io version](https://img.shields.io/crates/v/cao-lang)
+![PyPI version](https://img.shields.io/pypi/v/cao-lang)
+![npm version](https://img.shields.io/npm/v/@caolo-game/cao-lang-wasm)
+
+The node based "language" that governs the actors in the game CaoLo
+
+[Core documentation](https://docs.rs/cao_lang/)
+
+## Project layout
+
+```
+ |+ cao-lang/ # core library
+ |+ c/ # C interface
+ |+ py/ # Python interface
+ |+ wasm/ # WASM interface
+ |+ xtask/ # Additional scripts via Cargo
+ | CHANGELOG.md # Changelog
+ | CMakeLists.txt # Root cmake file
+ | MANIFEST.in # Python build dependency
+ | pyproject.toml # Python build dependency
+ | README.md
+ | setup.py # Python build dependency
+ | tox.ini # Python testing dependency
+ | cliff.toml # git-cliff config
+```
+
+
+%package help
+Summary: Development documents and examples for cao-lang
+Provides: python3-cao-lang-doc
+%description help
+# Cao-Lang
+
+![GitHub Workflow Status](https://img.shields.io/github/workflow/status/caolo-game/cao-lang/Cao-Lang%20tests)
+![MIT license](https://img.shields.io/github/license/caolo-game/cao-lang)
+![Crates.io version](https://img.shields.io/crates/v/cao-lang)
+![PyPI version](https://img.shields.io/pypi/v/cao-lang)
+![npm version](https://img.shields.io/npm/v/@caolo-game/cao-lang-wasm)
+
+The node based "language" that governs the actors in the game CaoLo
+
+[Core documentation](https://docs.rs/cao_lang/)
+
+## Project layout
+
+```
+ |+ cao-lang/ # core library
+ |+ c/ # C interface
+ |+ py/ # Python interface
+ |+ wasm/ # WASM interface
+ |+ xtask/ # Additional scripts via Cargo
+ | CHANGELOG.md # Changelog
+ | CMakeLists.txt # Root cmake file
+ | MANIFEST.in # Python build dependency
+ | pyproject.toml # Python build dependency
+ | README.md
+ | setup.py # Python build dependency
+ | tox.ini # Python testing dependency
+ | cliff.toml # git-cliff config
+```
+
+
+%prep
+%autosetup -n cao-lang-0.1.93
+
+%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-cao-lang -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.93-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..10c0565
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+647df59e62f27aeaa6dd9d3ee5048d5c cao-lang-0.1.93.tar.gz