summaryrefslogtreecommitdiff
path: root/python-airsim.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 04:43:26 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 04:43:26 +0000
commit2dff97ffe6be4f8e5529d41d83865486fcefc6c8 (patch)
treeb56a0e822bb5dca28601dc70946a5d0f6e38d2fe /python-airsim.spec
parent2bf4450567a941a466d9adbe52259a5391e99a7a (diff)
automatic import of python-airsim
Diffstat (limited to 'python-airsim.spec')
-rw-r--r--python-airsim.spec126
1 files changed, 126 insertions, 0 deletions
diff --git a/python-airsim.spec b/python-airsim.spec
new file mode 100644
index 0000000..b9315dd
--- /dev/null
+++ b/python-airsim.spec
@@ -0,0 +1,126 @@
+%global _empty_manifest_terminate_build 0
+Name: python-airsim
+Version: 1.8.1
+Release: 1
+Summary: Open source simulator based on Unreal Engine for autonomous vehicles from Microsoft AI & Research
+License: MIT
+URL: https://github.com/microsoft/airsim
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2f/d7/a692b1a82263b6d510bb04b5278154d096e4e4b43fb68cd2482f33ee9a2a/airsim-1.8.1.tar.gz
+BuildArch: noarch
+
+
+%description
+# Python API for AirSim
+
+This package contains Python APIs for [AirSim](https://github.com/microsoft/airsim).
+
+## How to Use
+See examples at [car/hello_car.py](https://github.com/Microsoft/AirSim/blob/main/PythonClient/car/hello_car.py) or [multirotor/hello_drone.py](https://github.com/microsoft/AirSim/blob/main/PythonClient/multirotor/hello_drone.py).
+
+## Dependencies
+This package depends on `msgpack` and would automatically install `msgpack-rpc-python` (this may need administrator/sudo prompt):
+```
+pip install msgpack-rpc-python
+```
+
+Some examples also requires opencv.
+
+## More Info
+
+More information on AirSim Python APIs can be found at:
+https://github.com/Microsoft/AirSim/blob/main/docs/python.md
+
+%package -n python3-airsim
+Summary: Open source simulator based on Unreal Engine for autonomous vehicles from Microsoft AI & Research
+Provides: python-airsim
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-airsim
+# Python API for AirSim
+
+This package contains Python APIs for [AirSim](https://github.com/microsoft/airsim).
+
+## How to Use
+See examples at [car/hello_car.py](https://github.com/Microsoft/AirSim/blob/main/PythonClient/car/hello_car.py) or [multirotor/hello_drone.py](https://github.com/microsoft/AirSim/blob/main/PythonClient/multirotor/hello_drone.py).
+
+## Dependencies
+This package depends on `msgpack` and would automatically install `msgpack-rpc-python` (this may need administrator/sudo prompt):
+```
+pip install msgpack-rpc-python
+```
+
+Some examples also requires opencv.
+
+## More Info
+
+More information on AirSim Python APIs can be found at:
+https://github.com/Microsoft/AirSim/blob/main/docs/python.md
+
+%package help
+Summary: Development documents and examples for airsim
+Provides: python3-airsim-doc
+%description help
+# Python API for AirSim
+
+This package contains Python APIs for [AirSim](https://github.com/microsoft/airsim).
+
+## How to Use
+See examples at [car/hello_car.py](https://github.com/Microsoft/AirSim/blob/main/PythonClient/car/hello_car.py) or [multirotor/hello_drone.py](https://github.com/microsoft/AirSim/blob/main/PythonClient/multirotor/hello_drone.py).
+
+## Dependencies
+This package depends on `msgpack` and would automatically install `msgpack-rpc-python` (this may need administrator/sudo prompt):
+```
+pip install msgpack-rpc-python
+```
+
+Some examples also requires opencv.
+
+## More Info
+
+More information on AirSim Python APIs can be found at:
+https://github.com/Microsoft/AirSim/blob/main/docs/python.md
+
+%prep
+%autosetup -n airsim-1.8.1
+
+%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-airsim -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.8.1-1
+- Package Spec generated