From 2ca374d517c3853af388b23c76196d34213eed0b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 5 May 2023 04:35:27 +0000 Subject: automatic import of python-nunavut --- .gitignore | 1 + python-nunavut.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 86 insertions(+) create mode 100644 python-nunavut.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..99fc957 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/nunavut-2.0.9.tar.gz 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 - 2.0.9-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..c6e7f6a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +35736d69de2868472572452883c3ff3e nunavut-2.0.9.tar.gz -- cgit v1.2.3