Hello community,
here is the log from the commit of package python-pyserial for openSUSE:Factory checked in at 2019-04-19 18:36:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyserial (Old)
and /work/SRC/openSUSE:Factory/.python-pyserial.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyserial"
Fri Apr 19 18:36:51 2019 rev:17 rq:694194 version:3.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyserial/python-pyserial.changes 2018-12-14 20:47:00.105541337 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyserial.new.5536/python-pyserial.changes 2019-04-19 18:36:53.799071438 +0200
@@ -1,0 +2,9 @@
+Mon Apr 15 06:44:21 UTC 2019 - John Vandenberg
+
+- Remove unnecessary Windows and OSX modules from runtime package
+- Remove Mono and Java CLI modules from runtime package
+- Activate test suite
+- Fix fdupes, hashbangs and executable bits
+- Remove non-break-space in python-pyserial.changes with normal space
+
+-------------------------------------------------------------------
@@ -262 +271 @@
- + [Patch pyserial:30] [PATCH 1/1] serial.Serial() should not raise IOError.
+ + [Patch pyserial:30] [PATCH 1/1] serial.Serial() should not raise IOError
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyserial.spec ++++++
--- /var/tmp/diff_new_pack.EtYB6q/_old 2019-04-19 18:36:55.183073195 +0200
+++ /var/tmp/diff_new_pack.EtYB6q/_new 2019-04-19 18:36:55.219073241 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pyserial
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -50,8 +50,23 @@
%prep
%setup -q -n pyserial-%{version}
-sed -i "s|^#!\/usr\/bin\/env python$||" serial/{serialposix,__init__}.py # Fix non-executable scripts
-sed -i -e "s/\r//" examples/port_publisher.py # Fix EOL encoding
+
+# Unnecessary
+rm serial/tools/list_ports_windows.py \
+ serial/tools/list_ports_osx.py \
+ serial/win32.py \
+ serial/serialwin32.py
+
+# Requires .Net/IronPython, and especially System.IO.Ports which is troublesome
+rm serial/serialcli.py
+
+# Requires Jython with JavaComm
+rm serial/serialjava.py
+
+find serial -type f -not -name 'miniterm.py' -exec sed -i '1{/#!/d}' {} +
+find serial -type f -not -name 'miniterm.py' -exec chmod a-x {} +
+
+touch test/__init__.py
%build
%python_build
@@ -65,25 +80,13 @@
%python_clone -a %{buildroot}%{_bindir}/miniterm
rm documentation/_build/doctrees/environment.pickle
-%{python_expand pushd %{buildroot}%{$python_sitelib}
-# Fix wrong-script-interpreter
-sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" serial/tools/*.py
-sed -i "s|^#!%{_bindir}/env python3$|#!%{__$python}|" serial/threaded/__init__.py
-sed -i "s|^#!%{_bindir}/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
+%{python_expand sed -i '1{/#!/d}' %{buildroot}%{$python_sitelib}/serial/tools/miniterm.py
+%fdupes %{buildroot}%{$python_sitelib}
}
+%check
+%python_exec test/run_all_tests.py
+
%post
%python_install_alternative miniterm