summaryrefslogtreecommitdiff
path: root/python-nunavut.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 04:35:27 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 04:35:27 +0000
commit2ca374d517c3853af388b23c76196d34213eed0b (patch)
treefb9c5a2f1541fccea1aee22c6ad25bb4d33efd4d /python-nunavut.spec
parenta1f13ef683a528c55bfa963efc747ea8dac2268e (diff)
automatic import of python-nunavutopeneuler20.03
Diffstat (limited to 'python-nunavut.spec')
-rw-r--r--python-nunavut.spec84
1 files changed, 84 insertions, 0 deletions
diff --git a/python-nunavut.spec b/python-nunavut.spec
new file mode 100644
index 0000000..c8b8a82
--- /dev/null
+++ b/python-nunavut.spec
@@ -0,0 +1,84 @@
+%global _empty_manifest_terminate_build 0
+Name: python-nunavut
+Version: 2.0.9
+Release: 1
+Summary: Generate code from DSDL using Jinja2 templates.
+License: MIT
+URL: https://opencyphal.org
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3b/01/8800a39952951be7abfc6c54ea4cdd04a02e62dfc433b0caa011ebc7e29d/nunavut-2.0.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-pydsdl
+Requires: python3-pyyaml
+Requires: python3-importlib-resources
+
+%description
+This example assumes that the public regulated namespace directories ``reg`` and ``uavcan`` reside under
+``public_regulated_data_types/``.
+Nunavut is invoked to generate code for the former.
+ nnvg --target-language c --target-endianness=little --enable-serialization-asserts public_regulated_data_types/reg --lookup-dir public_regulated_data_types/uavcan
+
+%package -n python3-nunavut
+Summary: Generate code from DSDL using Jinja2 templates.
+Provides: python-nunavut
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-nunavut
+This example assumes that the public regulated namespace directories ``reg`` and ``uavcan`` reside under
+``public_regulated_data_types/``.
+Nunavut is invoked to generate code for the former.
+ nnvg --target-language c --target-endianness=little --enable-serialization-asserts public_regulated_data_types/reg --lookup-dir public_regulated_data_types/uavcan
+
+%package help
+Summary: Development documents and examples for nunavut
+Provides: python3-nunavut-doc
+%description help
+This example assumes that the public regulated namespace directories ``reg`` and ``uavcan`` reside under
+``public_regulated_data_types/``.
+Nunavut is invoked to generate code for the former.
+ nnvg --target-language c --target-endianness=little --enable-serialization-asserts public_regulated_data_types/reg --lookup-dir public_regulated_data_types/uavcan
+
+%prep
+%autosetup -n nunavut-2.0.9
+
+%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-nunavut -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.9-1
+- Package Spec generated