summaryrefslogtreecommitdiff
path: root/python-udsoncan.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 01:41:36 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 01:41:36 +0000
commit2e9db09f26884c0236b0c08d0709a93a9ec9b4fa (patch)
tree402a97e1b81a8cd8f39e729692a1823e98eb94f1 /python-udsoncan.spec
parentf8f01e3e48eb29a7b8c6f90ec4467b3d5d9c333b (diff)
automatic import of python-udsoncan
Diffstat (limited to 'python-udsoncan.spec')
-rw-r--r--python-udsoncan.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-udsoncan.spec b/python-udsoncan.spec
new file mode 100644
index 0000000..1c49a51
--- /dev/null
+++ b/python-udsoncan.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-udsoncan
+Version: 1.17.1
+Release: 1
+Summary: Implementation of the Unified Diagnostic Service (UDS) protocol (ISO-14229) used in the automotive industry.
+License: MIT
+URL: https://github.com/pylessard/python-udsoncan
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7c/83/1b1dd79a8e579f34c96312c2d0520173f728b7970446c6600944fcaef611/udsoncan-1.17.1.tar.gz
+BuildArch: noarch
+
+
+%description
+The documentation is available here : http://udsoncan.readthedocs.io
+
+%package -n python3-udsoncan
+Summary: Implementation of the Unified Diagnostic Service (UDS) protocol (ISO-14229) used in the automotive industry.
+Provides: python-udsoncan
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-udsoncan
+The documentation is available here : http://udsoncan.readthedocs.io
+
+%package help
+Summary: Development documents and examples for udsoncan
+Provides: python3-udsoncan-doc
+%description help
+The documentation is available here : http://udsoncan.readthedocs.io
+
+%prep
+%autosetup -n udsoncan-1.17.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-udsoncan -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.17.1-1
+- Package Spec generated