From 3cbcad7331291272cabb60f91776c547f7bbe2ad Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 6 Mar 2023 12:47:57 +0000 Subject: automatic import of python-OBD --- python-OBD.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 python-OBD.spec (limited to 'python-OBD.spec') 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 - 0.7.1-1 +- Package Spec generated -- cgit v1.2.3