forked from pool/python-pyserial
Accepting request 515045 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/515045 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=15
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2949cddffc2b05683065a3cd2345114b1a49b08df8cb843d69ba99dc3e19edc2
|
|
||||||
size 149032
|
|
3
pyserial-3.4.tar.gz
Normal file
3
pyserial-3.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
|
||||||
|
size 151657
|
@@ -1,3 +1,29 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 7 16:32:29 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Further fix shebangs
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 6 18:07:57 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to version 3.4
|
||||||
|
+ Improvements:
|
||||||
|
* miniterm: suspend function (temporarily release port, :kbd:`Ctrl-T s`)
|
||||||
|
* [#240] context manager automatically opens port on ``__enter__``
|
||||||
|
* [#141] list_ports: add interface number to location string
|
||||||
|
* [#225] protocol_socket: Retry if ``BlockingIOError`` occurs in
|
||||||
|
``reset_input_buffer``.
|
||||||
|
+ Bugfixes:
|
||||||
|
* [#153] list_ports: option to include symlinked devices
|
||||||
|
* [#237] list_ports: workaround for special characters in port names
|
||||||
|
+ Bugfixes (posix):
|
||||||
|
* allow calling cancel functions w/o error if port is closed
|
||||||
|
* [#220] protocol_socket: sync error handling with posix version
|
||||||
|
* [#227] posix: ignore more blocking errors and EINTR, timeout only
|
||||||
|
applies to blocking I/O
|
||||||
|
* [#228] fix: port_publisher typo
|
||||||
|
- Fix shebangs
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 21 13:47:02 UTC 2017 - bwiedemann@suse.com
|
Wed Jun 21 13:47:02 UTC 2017 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pyserial
|
Name: python-pyserial
|
||||||
Version: 3.3
|
Version: 3.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://github.com/pyserial/pyserial
|
Url: https://github.com/pyserial/pyserial
|
||||||
Summary: Python Serial Port Extension
|
Summary: Python Serial Port Extension
|
||||||
@@ -53,22 +53,43 @@ Documentation, examples, and help files for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyserial-%{version}
|
%setup -q -n pyserial-%{version}
|
||||||
sed -i "s|#\!\/usr\/bin\/env python||" serial/{serialposix,__init__}.py # Fix non-executable scripts
|
sed -i "s|^#\!\/usr\/bin\/env python$||" serial/{serialposix,__init__}.py # Fix non-executable scripts
|
||||||
sed -i "s/\r//" examples/port_publisher.py # Fix EOL encoding
|
sed -i "s/\r//" examples/port_publisher.py # Fix EOL encoding
|
||||||
|
find examples -name '*.py' -exec sed -i "s|^#!/usr/bin/env python$|#!%{__python3}|" {} \;
|
||||||
|
find examples -name '*.py' -exec sed -i "s|^#! /usr/bin/env python$|#!%{__python3}|" {} \;
|
||||||
|
find examples -name '*.py' -exec sed -i "s|^#! python$|#!%{__python3}|" {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
make -C documentation html && rm documentation/_build/html/.buildinfo # Build HTML documentation
|
make -C documentation html && rm documentation/_build/html/.buildinfo # Build HTML documentation
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
||||||
|
|
||||||
mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm
|
mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm
|
||||||
%python_clone -a %{buildroot}%{_bindir}/miniterm
|
%python_clone -a %{buildroot}%{_bindir}/miniterm
|
||||||
rm documentation/_build/doctrees/environment.pickle
|
rm documentation/_build/doctrees/environment.pickle
|
||||||
|
|
||||||
|
%{python_expand pushd %{buildroot}%{$python_sitelib}
|
||||||
|
# Fix wrong-script-interpreter
|
||||||
|
sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" serial/tools/*.py
|
||||||
|
sed -i "s|^#!/usr/bin/env python3$|#!%{__$python}|" serial/threaded/__init__.py
|
||||||
|
sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" serial/rs485.py
|
||||||
|
sed -i "s|^#! python$||#!%{__$python}|" serial/tools/*.py
|
||||||
|
chmod a+x serial/tools/*.py
|
||||||
|
chmod a-x serial/tools/__init__.py
|
||||||
|
chmod a-x serial/tools/list_ports_windows.py
|
||||||
|
chmod a-x serial/tools/hexlify_codec.py
|
||||||
|
chmod a+x serial/threaded/__init__.py
|
||||||
|
chmod a+x serial/rs485.py
|
||||||
|
# Deduplicating files can generate a RPMLINT warning for pyc mtime
|
||||||
|
$python -m compileall -d %{$python_sitelib} serial/
|
||||||
|
$python -O -m compileall -d %{$python_sitelib} serial/
|
||||||
|
%fdupes .
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative miniterm
|
%python_install_alternative miniterm
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user