14
0

Accepting request 174797 from devel:languages:python

python3 package added
update to 2.6 version
spec file cleaned from old TODO comments (forwarded request 174583 from HighwayStar)

OBS-URL: https://build.opensuse.org/request/show/174797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=6
This commit is contained in:
Stephan Kulow
2013-05-13 13:26:09 +00:00
committed by Git OBS Bridge
6 changed files with 114 additions and 11 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eddd22280e0dac0888c6cddd8906ebd902fa42467fee151c43ecde4196bbf511
size 106278

3
pyserial-2.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:049dbcda0cd475d3be903e721d60889ee2cc4ec3b62892a81ecef144196413ed
size 116289

View File

@@ -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://<regexp> 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

View File

@@ -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

22
python3-pyserial.changes Normal file
View File

@@ -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://<regexp> 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

58
python3-pyserial.spec Normal file
View File

@@ -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