diff --git a/pyserial-2.5.tar.gz b/pyserial-2.5.tar.gz deleted file mode 100644 index c10385f..0000000 --- a/pyserial-2.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eddd22280e0dac0888c6cddd8906ebd902fa42467fee151c43ecde4196bbf511 -size 106278 diff --git a/pyserial-2.6.tar.gz b/pyserial-2.6.tar.gz new file mode 100644 index 0000000..c666596 --- /dev/null +++ b/pyserial-2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:049dbcda0cd475d3be903e721d60889ee2cc4ec3b62892a81ecef144196413ed +size 116289 diff --git a/python-pyserial.changes b/python-pyserial.changes index bb00470..fb86d8b 100644 --- a/python-pyserial.changes +++ b/python-pyserial.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Wed Apr 24 04:16:24 UTC 2013 - highwaystar.ru@gmail.com + +- update to 2.6 version + * Moved some of the examples to serial.tools so that they can be + used with ``python -m`` + * serial port enumeration now included as ``serial.tools.list_ports`` + * URL handers for ``serial_for_url`` are now imported dynamically. + This allows to add protocols w/o editing files. The list + ``serial.protocol_handler_packages`` can be used to add or remove + user packages with protocol handlers (see docs for details). + * new URL type: hwgrep:// uses list_ports module to search + for ports by their description + * serveral internal changes to improve Python 3.x compatibility + (setup.py, use of absolute imports and more) + * [Bug 3093882] calling open() on an already open port now + raises an exception + * [Bug 3245627] connection-lost let rfc2217 hangs in closed loop + * [Patch 3147043] readlines() to support multi-character eol + * [Patch 3316943] Avoid unneeded termios.tcsetattr calls in serialposix.py + * [Patch 2912349] Serial Scan as a Module with Mac Support + ------------------------------------------------------------------- Tue Sep 6 15:23:26 UTC 2011 - saschpe@suse.de diff --git a/python-pyserial.spec b/python-pyserial.spec index 533211b..8fbb73e 100644 --- a/python-pyserial.spec +++ b/python-pyserial.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyserial # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,12 +11,13 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: python-pyserial -Version: 2.5 +Version: 2.6 Release: 0 Url: http://pyserial.sourceforge.net/ Summary: Python Serial Port Extension @@ -24,8 +25,8 @@ License: Python-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel BuildRequires: python-Sphinx +BuildRequires: python-devel %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 @@ -33,8 +34,7 @@ BuildArch: noarch %endif %endif Provides: python-serial = %{version} -#TODO: Change back to '<' after next version update -Obsoletes: python-serial <= %{version} +Obsoletes: python-serial < %{version} %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description @@ -42,7 +42,7 @@ Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython %prep %setup -q -n pyserial-%{version} -sed -i "1d" 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 %build @@ -56,6 +56,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %defattr(-,root,root,-) %doc CHANGES.txt LICENSE.txt README.txt examples documentation/_build/* %{_bindir}/miniterm.py -%{python_sitelib}/* +%{python_sitelib}/serial/ +%{python_sitelib}/pyserial-%{version}-py%{py_ver}.egg-info %changelog diff --git a/python3-pyserial.changes b/python3-pyserial.changes new file mode 100644 index 0000000..a50122b --- /dev/null +++ b/python3-pyserial.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Wed Apr 24 03:53:23 UTC 2013 - highwaystar.ru@gmail.com + +- initial python3 package +- update to 2.6 version + * Moved some of the examples to serial.tools so that they can be + used with ``python -m`` + * serial port enumeration now included as ``serial.tools.list_ports`` + * URL handers for ``serial_for_url`` are now imported dynamically. + This allows to add protocols w/o editing files. The list + ``serial.protocol_handler_packages`` can be used to add or remove + user packages with protocol handlers (see docs for details). + * new URL type: hwgrep:// uses list_ports module to search + for ports by their description + * serveral internal changes to improve Python 3.x compatibility + (setup.py, use of absolute imports and more) + * [Bug 3093882] calling open() on an already open port now + raises an exception + * [Bug 3245627] connection-lost let rfc2217 hangs in closed loop + * [Patch 3147043] readlines() to support multi-character eol + * [Patch 3316943] Avoid unneeded termios.tcsetattr calls in serialposix.py + * [Patch 2912349] Serial Scan as a Module with Mac Support \ No newline at end of file diff --git a/python3-pyserial.spec b/python3-pyserial.spec new file mode 100644 index 0000000..6cd2452 --- /dev/null +++ b/python3-pyserial.spec @@ -0,0 +1,58 @@ +# +# spec file for package python3-pyserial +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python3-pyserial +Version: 2.6 +Release: 0 +Url: http://pyserial.sourceforge.net/ +Summary: Python Serial Port Extension +License: Python-2.0 +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3 +BuildRequires: python3-2to3 +BuildRequires: python3-Sphinx +BuildRequires: python3-devel +BuildArch: noarch + +%description +Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython + +%prep +%setup -q -n pyserial-%{version} +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 + +%build +python3 setup.py build +sed -i "s/sphinx-build/sphinx-build-%{py3_ver}/g" -i documentation/Makefile +make -C documentation html && rm documentation/_build/html/.buildinfo # Build HTML documentation + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm-%{py3_ver}.py + +%files +%defattr(-,root,root,-) +%doc CHANGES.txt LICENSE.txt README.txt examples documentation/_build/* +%{_bindir}/miniterm-%{py3_ver}.py +%{python3_sitelib}/serial/ +%{python3_sitelib}/pyserial_py3k-%{version}-py%{py3_ver}.egg-info + +%changelog