diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-06 12:47:57 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-06 12:47:57 +0000 |
commit | 3cbcad7331291272cabb60f91776c547f7bbe2ad (patch) | |
tree | 9fc095e97aa073cf9a8775d4f75122e7e6037e30 | |
parent | d5353f9fa5cc1a21f1405578ce86d30060c1cc21 (diff) |
automatic import of python-OBD
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-OBD.spec | 78 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 80 insertions, 0 deletions
@@ -0,0 +1 @@ +/obd-0.7.1.tar.gz diff --git a/python-OBD.spec b/python-OBD.spec new file mode 100644 index 0000000..a955ca2 --- /dev/null +++ b/python-OBD.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-obd +Version: 0.7.1 +Release: 1 +Summary: Serial module for handling live sensor data from a vehicle's OBD-II port +License: GNU GPLv2 +URL: http://github.com/brendan-w/python-OBD +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fc/7b/13ffeaefa5b2623263ba26d60ed12229cb1c9ceabdb50c880de9d77d2613/obd-0.7.1.tar.gz +BuildArch: noarch + + +%description +A python module for handling realtime sensor data from OBD-II vehicle +ports. Works with ELM327 OBD-II adapters, and is fit for the Raspberry +Pi. + +%package -n python3-obd +Summary: Serial module for handling live sensor data from a vehicle's OBD-II port +Provides: python-obd +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-obd +A python module for handling realtime sensor data from OBD-II vehicle +ports. Works with ELM327 OBD-II adapters, and is fit for the Raspberry +Pi. + +%package help +Summary: Development documents and examples for obd +Provides: python3-obd-doc +%description help +A python module for handling realtime sensor data from OBD-II vehicle +ports. Works with ELM327 OBD-II adapters, and is fit for the Raspberry +Pi. + +%prep +%autosetup -n obd-0.7.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-obd -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Mar 06 2023 Python_Bot <Python_Bot@openeuler.org> - 0.7.1-1 +- Package Spec generated @@ -0,0 +1 @@ +305efcb6c650db7b9583532355ebeb7c obd-0.7.1.tar.gz |